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{} {