Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to add a vm to an Availability Set in azure

I just created a standard vm inside Azure, and created a new Availability set. I created another vm, with the same specs, in the same region, but when I go to configurare the availability set I don't see it in the list. I'm missing something?

Luca

like image 982
Luca Morelli Avatar asked Apr 27 '14 08:04

Luca Morelli


People also ask

Is it possible to add an existing VM to an availability set in Azure?

You can't add an existing VM to an availability set after it's created. When you create a VM with New-AzVM, you use the -AvailabilitySetName parameter to specify the name of the availability set. Now create two VMs with New-AzVM in the availability set. It takes a few minutes to create and configure both VMs.

Is it possible to add a VM to an availability set?

A VM can only be added to an availability set when it is created. To change the availability set, you need to delete and then recreate the virtual machine.

Is it possible to add an existing VM to an availability set do scale sets work with Azure availability sets which service in Azure is used to manage resources in Azure?

No. If autoscale rules require more VM instances as part of a scale set, a new VM instance is created.


2 Answers

So... just posting this as an answer, to properly close the loop based on the comments under the question:

When setting up a Virtual Machine, you can choose which Cloud Service to place the Virtual Machine in. The Cloud Service is essentially a container which gets assigned a specific IP address, gets a cloudapp.net name (e.g. myservice.cloudapp.net), and gets assigned to a region (or affinity group, which is region-specific).

Availability Sets are specific to a given Cloud Service. You may place any of your Cloud Service's VMs in the same Availability Set (or even have multiple Availability Sets, with groups of VMs assigned to specific Availability Sets). However: An Availability Set does not span across Cloud Services.

So: When you went to set up your second Virtual Machine, and you didn't see your Availability Set, that is because you were attempting to deploy to a different Cloud Service.

like image 146
David Makogon Avatar answered Sep 30 '22 11:09

David Makogon


Below screenshot shows the wizard page where we can select existing cloud service to which we can associate a new VM

Below screenshot shows the wizard page where we can select existing cloud service to which we can associate a new VM

like image 24
Vineel Avatar answered Sep 30 '22 10:09

Vineel