This message was deleted.
# azure
s
This message was deleted.
b
that is friggin scary.. running a diff shows this:
Copy code
~ azure-native:network:VirtualNetwork: (update)
        [id=/subscriptions/yyyy/resourceGroups/rgName/providers/Microsoft.Network/virtualNetworks/VnetName]
        [urn=urn:pulumi:newthing::modularity::azure-native:network:VirtualNetwork::VnetName]
        [provider=urn:pulumi:newthing::modularity::pulumi:providers:azure-native::default_0_7_1::aa842b3f-7bf5-4401-b0eb-a65d275ed25d]
      ~ tags: {
          ~ ProjectNumber: 1.412601e+06 => "1412601"
        }
so.. without showing in the diff or the preview in any way - it wants to delete a subnet?!
running a pulumi refresh then another pulumi up --diff shows that in order to update the tag it wants to destroy all my subnets. haven't changed anything but the tag.. regardless, it's scary that
up
attempts to delete things that
preview
doesn't communicate that it plans on doing
The original run:
Copy code
λ pulumi up -y --suppress-outputs
Previewing update (newthing):
     Type                                             Name                      Plan       Info
     pulumi:pulumi:Stack                                      
 ~   ├─ azure-native:resources:ResourceGroup           (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:keyvault:Vault                    (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:containerregistry:Registry        (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:network:NetworkSecurityGroup      (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:network:VirtualNetwork            (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:network:NetworkSecurityGroup      (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:network:NetworkSecurityGroup      (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:compute:DiskEncryptionSet         (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:network:ApplicationGateway        (name goes here)         update     [diff: ~tags]
 ~   ├─ azure-native:authorization:RoleAssignment      (name goes here)         update     [diff: ~principalId]
 +   ├─ azure-native:containerservice:ManagedCluster   (name goes here)         create
 +   ├─ azure-native:containerservice:AgentPool        (name goes here)         create
 +   ├─ azure-native:containerservice:AgentPool        (name goes here)         create
 +   └─ azure-native:containerservice:AgentPool        (name goes here)         create
t
Subnets that are being deleted are not resources, they are properties of vnet, that’s why you don’t see them in preview
b
right - so ignore changes it is then.