HI, I have an issue with an update to an Azure vir...
# general
c
HI, I have an issue with an update to an Azure virtual machine that I am hoping someone can help me with. 1. Create a new stack with the following new resources: a) Network Security Group b) Security Rule c) Public IP d) Route Table e) Network Interfaces f) Virtual Machine 2. Update the stack created in #1: a) Add new network interface b) Attach to the VM we encountering a challenge: In the compute package ("github.com/pulumi/pulumi-azure-native/sdk/go/azure/compute"), we cannot find a method to update an existing VM to attach a new interface. While there is "compute.NewVirtualMachine" to create a new VM, there is no "compute.UpdateVirtualMachine" to update an existing VM. Suggestions Needed: I'm looking for ways to update the existing VM that is part of the stack without deleting and recreating it.
m
Pulumi takes a declarative approach here. You simply update the VirtualMachine object (https://www.pulumi.com/registry/packages/azure-native/api-docs/compute/virtualmachine/#networkprofile_nodejs) in your program, then
pulumi up
will see that it changed and perform the necessary changes.