Skip to content

Commit a85c974

Browse files
committed
fix
1 parent 0e84745 commit a85c974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Config/NewAzureVMConfigCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public override void ExecuteCmdlet()
5656
var vm = new PSVirtualMachine
5757
{
5858
Name = this.VMName,
59-
AvailabilitySetReference = new AvailabilitySetReference
59+
AvailabilitySetReference = string.IsNullOrEmpty(this.AvailabilitySetId) ? null : new AvailabilitySetReference
6060
{
6161
ReferenceUri = this.AvailabilitySetId
6262
}

0 commit comments

Comments
 (0)