Skip to content

Commit e5bf7c4

Browse files
unknownunknown
authored andcommitted
Fix CreateVirtualMachineUsingVMImageWithDataDisks test
1 parent 74f87b2 commit e5bf7c4

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/VMTemplateTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ public void CreateVirtualMachineUsingVMImageWithDataDisks()
581581
{
582582
// Try to get VM image with data disks
583583
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();
585586

586587
// New-AzureService and verify with Get-AzureService
587588
vmPowershellCmdlets.NewAzureService(serviceName, serviceName, locationName);

0 commit comments

Comments
 (0)