Fix :: allow Managed data disks to be used with azure shared image gallery image Sources

This commit is contained in:
Vijay Rajah 2020-03-19 12:11:34 +05:30
parent 3dae5df6e4
commit dd04108ac8
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ func GetVirtualMachineDeployment(config *Config) (*resources.Deployment, error)
}
if len(config.AdditionalDiskSize) > 0 {
isManaged := config.CustomManagedImageName != "" || (config.ManagedImageName != "" && config.ImagePublisher != "")
isManaged := config.CustomManagedImageName != "" || (config.ManagedImageName != "" && config.ImagePublisher != "") || config.SharedGallery.Subscription != ""
builder.SetAdditionalDisks(config.AdditionalDiskSize, isManaged, config.diskCachingType)
}