I found in the azure virtual network deployment using automation-api that when I run the stack repeatedly, there is a phenomenon that the resources are rebuilt. In fact, I have not changed the network configuration.
My output is as follows:
Refreshing (network):
~ pulumi😛ulumi:Stack pulumi-prod-network refreshing
pulumi😛ulumi:Stack pulumi-prod-network running
~ azure-native:resources:ResourceGroup cnn3-pulumi-network-rg refreshing
~ azure-native:network:RouteTable cnn3-pulumi-prod-app-rb01 refreshing
~ azure-native:network:VirtualNetwork cnn3-pulumi-prod-vnet01 refreshing
~ azure-native:network:Subnet app-subnet refreshing
~ azure-native:network:RouteTable cnn3-pulumi-prod-db-rb01 refreshing
~ azure-native:network:Subnet db-subnet refreshing
~ azure-native:network:NetworkSecurityGroup cnn3-pulumi-prod-app-nsg01 refreshing
~ azure-native:network:NetworkSecurityGroup cnn3-pulumi-prod-db-nsg01 refreshing
azure-native:resources:ResourceGroup cnn3-pulumi-network-rg
~ azure-native:network:RouteTable cnn3-pulumi-prod-app-rb01 updated [diff: +subnets~etag]
azure-native:network:Subnet app-subnet
~ azure-native:network:VirtualNetwork cnn3-pulumi-prod-vnet01 updated [diff: ~etag,subnets]
~ azure-native:network:NetworkSecurityGroup cnn3-pulumi-prod-db-nsg01 updated [diff: +subnets~defaultSecurityRules,etag]
~ azure-native:network:NetworkSecurityGroup cnn3-pulumi-prod-app-nsg01 updated [diff: +subnets~defaultSecurityRules,etag]
~ azure-native:network:RouteTable cnn3-pulumi-prod-db-rb01 updated [diff: +subnets~etag]
azure-native:network:Subnet db-subnet
pulumi😛ulumi:Stack pulumi-prod-network
Resources:
~ 5 updated
4 unchanged
Duration: 5s
Refreshing (resources):
~ pulumi😛ulumi:Stack pulumi-prod-resources refreshing
pulumi😛ulumi:Stack pulumi-prod-resources running
pulumi😛ulumi:Stack pulumi-prod-resources
Resources:
1 unchanged
Duration: 1s
E0516 01:20:10.189403400 5621
socket_utils_common_posix.cc:223] check for SO_REUSEPORT: {"created":"@1652635210.189353600","description":"Protocol not available","errno":92,"file":"src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":202,"os_error":"Protocol not available","syscall":"getsockopt(SO_REUSEPORT)"}
E0516 01:20:10.193124300 5621
fork_posix.cc:76] Other threads are currently calling into gRPC, skipping fork() handlers
Updating (network):
pulumi😛ulumi:Stack pulumi-prod-network running
azure-native:resources:ResourceGroup cnn3-pulumi-network-rg
~ azure-native:network:VirtualNetwork cnn3-pulumi-prod-vnet01 updating [diff: -subnets]
~ azure-native:network:VirtualNetwork cnn3-pulumi-prod-vnet01 updated [diff: -subnets]
azure-native:network:NetworkSecurityGroup cnn3-pulumi-prod-app-nsg01
azure-native:network:RouteTable cnn3-pulumi-prod-app-rb01
azure-native:network:NetworkSecurityGroup cnn3-pulumi-prod-db-nsg01
azure-native:network:RouteTable cnn3-pulumi-prod-db-rb01
azure-native:network:Subnet app-subnet
azure-native:network:Subnet db-subnet
pulumi😛ulumi:Stack pulumi-prod-network
Resources:
~ 1 updated
8 unchanged
Duration: 10s
E0516 01:20:26.896494800 5621
fork_posix.cc:76] Other threads are currently calling into gRPC, skipping fork() handlers
E0516 01:20:28.804288700 5621
fork_posix.cc:76] Other threads are currently calling into gRPC, skipping fork() handlers
E0516 01:20:30.265914000 5621
fork_posix.cc:76] Other threads are currently calling into gRPC, skipping fork() handlers
network update summary:
{
"same": 8,
"update": 1
}