From 5dc4ff95da143fb5d12fa131b5643b1d6bb24596 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Tue, 9 Oct 2018 15:43:23 -0700 Subject: [PATCH] fix azure artifact so it works with managed images as well as VHDs --- builder/azure/arm/artifact.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builder/azure/arm/artifact.go b/builder/azure/arm/artifact.go index f7e63d6c4..8a234090d 100644 --- a/builder/azure/arm/artifact.go +++ b/builder/azure/arm/artifact.go @@ -133,7 +133,10 @@ func (*Artifact) Files() []string { } func (a *Artifact) Id() string { - return a.OSDiskUri + if a.OSDiskUri != "" { + return a.OSDiskUri + } + return a.ManagedImageId } func (a *Artifact) State(name string) interface{} {