Skip to content

Commit fb9c84e

Browse files
committed
Fix Image Test
1 parent 97b91b3 commit fb9c84e

File tree

1 file changed

+2
-1
lines changed
  • src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests

1 file changed

+2
-1
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests/FunctionalTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,8 @@ public void AzurePlatformVMImageNegativeTest()
17521752
"Import-Module '.\\" + Utilities.AzurePowershellModuleServiceManagementPirModule + "';",
17531753
"$c1 = New-AzurePlatformComputeImageConfig -Offer test -Sku test -Version test;",
17541754
"$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;"
17561757
};
17571758

17581759
var imgName = Utilities.GetUniqueShortName("img");

0 commit comments

Comments
 (0)