Skip to content

Commit 2f7d5e3

Browse files
default location
1 parent 254f7c1 commit 2f7d5e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ResourceManager/Compute/Commands.Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ public void StrategyExecuteCmdlet()
174174
.GetAwaiter()
175175
.GetResult();
176176
var location = state.GetLocation(virtualMachine);
177+
if (location == null)
178+
{
179+
location = "eastus";
180+
}
177181
var target = virtualMachine.GetTargetState(client.SubscriptionId, location);
178182
var result = virtualMachine
179183
.CreateOrUpdateAsync(client, state, target, new CancellationToken())

0 commit comments

Comments
 (0)