New-AzureRmAvailabilitySet cmdlet
Cmdlet(s)
PowerShell Version
5.1.15063.413
Module Version
OS Version
10.0.15063.413
Description
Hi, I was using New-AzureRmAvailabilitySet cmdlets to create a new Availability Set. The Sku default value appears to be set to "Managed" which translates to "Aligned" upon execution. However, I am aware that there is a Classic "Sku" as well which is unmanaged. There isn't a lot of information available in MS documentations to specify what the exact difference between managed and unmanaged is. I am assuming this has something to do with managed disks and unmanaged disks. Which value should I use if I need to use "unmanaged" disks. "unmanaged" parameter does not get accepted and neither does "Classic". I checked CLI to create a new availability set and there seems to be a parameter "unmanaged". Also the same can be done via the portal. Could you let me know if "Aligned" is the default for the "Sku" parameter using PowerShell or is it possible to replace "managed" with say "unmanaged" or "Classic" during the execution?
Script/Steps for Reproduction
Run the New-AzureRmAvailabilitySet command as described in https://docs.microsoft.com/en-us/powershell/module/azurerm.compute/new-azurermavailabilityset?view=azurermps-4.1.0. It does not take any value apart from "Managed" for sku.
@singhkays Can you take a look?
@Lanwin2010 You are correct, classic is for unmanaged disks.
@hyonholee Can you take a look why Classic doesn't get accepted?
@hyonholee Any updates on this?
It should be New-AzureRmAvailabilitySet -Sku 'Classic'