From 764f99ec7b4509b4f483c614110c3f7019e788fd Mon Sep 17 00:00:00 2001 From: Feiyu Shi Date: Thu, 21 May 2020 11:19:59 -0700 Subject: [PATCH] add correct api-version --- builder/azure/common/template/template_builder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/azure/common/template/template_builder.go b/builder/azure/common/template/template_builder.go index a301f569a..60d1e5667 100644 --- a/builder/azure/common/template/template_builder.go +++ b/builder/azure/common/template/template_builder.go @@ -112,6 +112,7 @@ func (s *TemplateBuilder) SetIdentity(userAssignedManagedIdentities []string) er var id *Identity if len(userAssignedManagedIdentities) != 0 { + s.setVariable("apiVersion", "2018-06-01") // Required for user assigned managed identity id = &Identity{ Type: to.StringPtr("UserAssigned"), UserAssignedIdentities: make(map[string]*UserAssignedIdentitiesValue),