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 @@ -581,7 +581,8 @@ public void CreateVirtualMachineUsingVMImageWithDataDisks()
581
581
{
582
582
// Try to get VM image with data disks
583
583
var vmImages = vmPowershellCmdlets . GetAzureVMImageReturningVMImages ( ) ;
584
- var vmImage = vmImages . Where ( t => t . OS == "Windows" && t . Category == "Public" && t . DataDiskConfigurations != null && t . DataDiskConfigurations . Any ( ) ) . FirstOrDefault ( ) ;
584
+ var vmImage = vmImages . Where ( t => t . OS == "Windows" && t . Category == "Public" && t . DataDiskConfigurations != null
585
+ && t . Location . Contains ( locationName ) && t . DataDiskConfigurations . Any ( ) ) . FirstOrDefault ( ) ;
585
586
586
587
// New-AzureService and verify with Get-AzureService
587
588
vmPowershellCmdlets . NewAzureService ( serviceName , serviceName , locationName ) ;
You can’t perform that action at this time.
0 commit comments