From dd04108ac88caf96a02a3813a432f2c99fa9329f Mon Sep 17 00:00:00 2001 From: Vijay Rajah Date: Thu, 19 Mar 2020 12:11:34 +0530 Subject: [PATCH] Fix :: allow Managed data disks to be used with azure shared image gallery image Sources --- 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) }