Skip to content

Commit c695eb7

Browse files
author
unknown
committed
Fix CreateVirtualMachineUsingVMImageWithDataDisks test
1 parent 68f2ff3 commit c695eb7

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ 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.DataDiskConfigurations != null && t.DataDiskConfigurations.Any()).FirstOrDefault();
584+
var vmImage = vmImages.Where(t => t.OS == "Windows" && t.Category == "Public" && t.DataDiskConfigurations != null && t.DataDiskConfigurations.Any()).FirstOrDefault();
585585

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

0 commit comments

Comments
 (0)