I'm trying to provision an Azure VM programmatically and I got this:
An unhandled exception of type 'Microsoft.Rest.Azure.CloudException' occurred in mscorlib.dll Additional information: Addition of a VM with managed disks to non-managed Availability Set or addition of a VM with blob based disks to managed Availability Set is not supported. Please create an Availability Set with 'managed' property set in order to add a VM with managed disks to it.
Unfortunately I don't understand the distinction its talking about with managed and non-managed availability sets. The API I am using for creating availability sets doesn't even obviously have such a flag/property. What conceptual background info am I missing here?
I'm afraid it says what it should. And that state is clear.
You can't mix managed and unmanaged resources and availability sets. So if you want to have managed disk, VM it has to be created in managed availability set. Please follow this link to see more descriptive explanation at their help center.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With