@@ -453,7 +453,7 @@ function Test-VirtualMachineSizeAndUsage
453
453
454
454
# Image Reference;
455
455
$p.StorageProfile.SourceImage = $null ;
456
- $imgRef = Get-DefaultCRPImage ;
456
+ $imgRef = Get-DefaultCRPImage - loc $loc ;
457
457
$p = Set-AzureVMSourceImage - VM $p - PublisherName $imgRef.PublisherName - Offer $imgRef.Offer - Skus $imgRef.Skus - Version $imgRef.Version ;
458
458
Assert-NotNull $p.StorageProfile.ImageReference ;
459
459
Assert-Null $p.StorageProfile.SourceImageId ;
@@ -619,7 +619,7 @@ function Test-VirtualMachinePIRv2
619
619
620
620
# Image Reference;
621
621
$p.StorageProfile.SourceImage = $null ;
622
- $imgRef = Get-DefaultCRPImage ;
622
+ $imgRef = Get-DefaultCRPImage - loc $loc ;
623
623
$p = ($imgRef | Set-AzureVMSourceImage - VM $p );
624
624
Assert-NotNull $p.StorageProfile.ImageReference ;
625
625
Assert-Null $p.StorageProfile.SourceImageId ;
@@ -729,7 +729,7 @@ function Test-VirtualMachineCapture
729
729
730
730
# Image Reference;
731
731
$p.StorageProfile.SourceImage = $null ;
732
- $imgRef = Get-DefaultCRPImage ;
732
+ $imgRef = Get-DefaultCRPImage - loc $loc ;
733
733
$p = ($imgRef | Set-AzureVMSourceImage - VM $p );
734
734
735
735
# TODO: Remove Data Disks for now
@@ -824,7 +824,7 @@ function Test-VirtualMachineDataDisk
824
824
825
825
# Image Reference;
826
826
$p.StorageProfile.SourceImage = $null ;
827
- $imgRef = Get-DefaultCRPImage ;
827
+ $imgRef = Get-DefaultCRPImage - loc $loc ;
828
828
$p = ($imgRef | Set-AzureVMSourceImage - VM $p );
829
829
830
830
# Negative Tests on A0 Size + 2 Data Disks
@@ -900,7 +900,7 @@ function Test-VirtualMachinePlan
900
900
901
901
# Image Reference;
902
902
$p.StorageProfile.SourceImage = $null ;
903
- $imgRef = Get-DefaultCRPImage ;
903
+ $imgRef = Get-DefaultCRPImage - loc $loc ;
904
904
$p = ($imgRef | Set-AzureVMSourceImage - VM $p );
905
905
906
906
$plan = Get-ComputeTestResourceName ;
@@ -1064,7 +1064,7 @@ function Test-VirtualMachineTags
1064
1064
1065
1065
# Image Reference;
1066
1066
$p.StorageProfile.SourceImage = $null ;
1067
- $imgRef = Get-DefaultCRPImage ;
1067
+ $imgRef = Get-DefaultCRPImage - loc $loc ;
1068
1068
$p = ($imgRef | Set-AzureVMSourceImage - VM $p );
1069
1069
1070
1070
# Test Tags
0 commit comments