add correct api-version

This commit is contained in:
Feiyu Shi 2020-05-21 11:19:59 -07:00
parent f7f033a7fd
commit 764f99ec7b
1 changed files with 1 additions and 0 deletions

View File

@ -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),