File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1752,7 +1752,8 @@ public void AzurePlatformVMImageNegativeTest()
1752
1752
"Import-Module '.\\ " + Utilities . AzurePowershellModuleServiceManagementPirModule + "';" ,
1753
1753
"$c1 = New-AzurePlatformComputeImageConfig -Offer test -Sku test -Version test;" ,
1754
1754
"$c2 = New-AzurePlatformMarketplaceImageConfig -PlanName test -Product test -Publisher test -PublisherId test;" ,
1755
- "Set-AzurePlatformVMImage -ImageName " + img + " -ReplicaLocations 'West US' -ComputeImageConfig $c1 -MarketplaceImageConfig $c2;"
1755
+ "$vmImgLoc = (Get-AzureLocation | where { $_.Name -like '*US*' } | select -ExpandProperty Name)[0];" ,
1756
+ "Set-AzurePlatformVMImage -ImageName " + img + " -ReplicaLocations $vmImgLoc -ComputeImageConfig $c1 -MarketplaceImageConfig $c2;"
1756
1757
} ;
1757
1758
1758
1759
var imgName = Utilities . GetUniqueShortName ( "img" ) ;
You can’t perform that action at this time.
0 commit comments