Forum Discussion
Resize VM within Availability set
Hi
Can I resize the VM in below different scenarios. ?
Yes with conditions
- VMs are in the same region
- VMs use managed disks when it is required (sku = aligned)
Is the scenarios valid? Will a availability set can contain different images under same group. ?
Yes check in the attached files you can see an availability set with both Windows and Linux VMs.
However i would not use this configuration in production i would use 2 windows + 2 Linux to ensure that the service in the Linux will not stop in case of planned or unplanned maintenance.
How would I change the size of the VM?
In fact in any case the only condition you need to meet is :
- The target VM size is available on the underlying hardware not only the region
To get all available sizes for virtual machines that you can deploy in the availability set you can use the Get-AzVMSize command
Example
Get-AzVMSize `
-ResourceGroupName "rg-dev-test" `
-AvailabilitySetName "avail-dev-test"
- devops2022Oct 14, 2021Copper Contributorthanks ibnmbodji
I agree for production we need to have at least 2 fault domain and 3 update domain so that (un)planned maintenance could be handled.
I couldn't see the attached file.
Resource group will sit on top of availability set.
or can i have multiple availability set within a resource group? which of the statement is correct- ibnmbodjiOct 15, 2021Steel Contributor
Resource group will sit on top of availability set.
or can i have multiple availability set within a resource group ?Yes you need to keep all (vms, resource groups and availability sets ) in the same region and that's it .
- devops2022Oct 17, 2021Copper ContributorTbanks again.
I was just thinking to post another question but got answer.
So, a resource group can be used to logically group the resource within a Region and
CANNOT BE USED across grouping resources across regions.