From aba97977309b038b88e24c94784fd2cf2b732a83 Mon Sep 17 00:00:00 2001 From: vijayrajah Date: Fri, 3 Apr 2020 13:48:02 +0530 Subject: [PATCH] Fix :: allow Managed data disks to be used with azure shared image gallery image Sources (#8912) --- builder/azure/arm/template_factory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/azure/arm/template_factory.go b/builder/azure/arm/template_factory.go index 0d5bc47f3..85d489b49 100644 --- a/builder/azure/arm/template_factory.go +++ b/builder/azure/arm/template_factory.go @@ -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) }