We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e84745 commit a85c974Copy full SHA for a85c974
src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Config/NewAzureVMConfigCommand.cs
@@ -56,7 +56,7 @@ public override void ExecuteCmdlet()
56
var vm = new PSVirtualMachine
57
{
58
Name = this.VMName,
59
- AvailabilitySetReference = new AvailabilitySetReference
+ AvailabilitySetReference = string.IsNullOrEmpty(this.AvailabilitySetId) ? null : new AvailabilitySetReference
60
61
ReferenceUri = this.AvailabilitySetId
62
}
0 commit comments