Skip to content

Commit

Permalink
Ensure user assigned identities are specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Rudduck authored and tombuildsstuff committed Nov 6, 2018
1 parent de1e2bd commit c29a33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azurerm/resource_arm_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ func expandAzureRmVirtualMachineIdentity(d *schema.ResourceData) *compute.Virtua
Type: identityType,
}

if vmIdentity.Type == compute.ResourceIdentityTypeUserAssigned {
if vmIdentity.Type == compute.ResourceIdentityTypeUserAssigned || vmIdentity.Type == compute.ResourceIdentityTypeSystemAssignedUserAssigned {
vmIdentity.UserAssignedIdentities = identityIds
}

Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_virtual_machine_scale_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,7 @@ func expandAzureRmVirtualMachineScaleSetIdentity(d *schema.ResourceData) *comput
Type: identityType,
}

if vmssIdentity.Type == compute.ResourceIdentityTypeUserAssigned {
if vmssIdentity.Type == compute.ResourceIdentityTypeUserAssigned || vmssIdentity.Type == compute.ResourceIdentityTypeSystemAssignedUserAssigned {
vmssIdentity.UserAssignedIdentities = identityIds
}

Expand Down

0 comments on commit c29a33b

Please sign in to comment.