Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,161 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
In my C# code i create some Azure Virtual Machines. I want my program to invoke the creation of VMs (using IVirtualMachine interface), but then I want it to wait VMs until all of them are in Running state before return to main. How can I implement this?
After awaiting on CreateOrUpdateAsync on your VMs, you can await on StartAsync which should return once the VM is started.