chilly-caravan-8120
04/24/2024, 11:54 AMsalmon-guitar-84472
04/25/2024, 10:39 AMId = networkInterface.Id
<--- this part here will make it wait for the interface to be created before creating the VM
var networkInterface = new NetworkInterface(resourcePrefix + "daves-nic", new NetworkInterfaceArgs { stuff for nic });
var newVM= new VirtualMachine("vm" + resourcePrefix, new VirtualMachineArgs {
stuff for vm
NetworkProfile = new Pulumi.AzureNative.Compute.Inputs.NetworkProfileArgs
{
NetworkInterfaces = new new Pulumi.AzureNative.Compute.Inputs.NetworkInterfaceReferenceArgs {
Id = networkInterface.Id, //associate the network here
Primary = true,
}
},
});
salmon-guitar-84472
04/25/2024, 10:39 AMchilly-caravan-8120
04/25/2024, 10:42 AMchilly-caravan-8120
04/25/2024, 10:42 AMsalmon-guitar-84472
04/25/2024, 4:21 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by