Fix :: allow Managed data disks to be used with azure shared image gallery image Sources
This commit is contained in:
parent
3dae5df6e4
commit
dd04108ac8
|
@ -95,7 +95,7 @@ func GetVirtualMachineDeployment(config *Config) (*resources.Deployment, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(config.AdditionalDiskSize) > 0 {
|
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)
|
builder.SetAdditionalDisks(config.AdditionalDiskSize, isManaged, config.diskCachingType)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue