Description
When the Bicep VSC extension is enabled, saving a nested_roleAssignments.bicep file results in adding a space between the parameters of the subscriptionResourceId() function used to calculate the roleID in the builtInRoleNames object variable.
Updating the list of roles with the Update-RoleAssignmentList utility, does not consider that space and changes the format back to subscriptionResourceId('Microsoft.Authorization/roleDefinitions','<roleID>')
Update the utility, in particular the Get-RoleAssignmentList utility, to comply with the right formatting and avoid unintended changes on files.
Description
When the Bicep VSC extension is enabled, saving a
nested_roleAssignments.bicepfile results in adding a space between the parameters of thesubscriptionResourceId()function used to calculate the roleID in thebuiltInRoleNamesobject variable.Updating the list of roles with the
Update-RoleAssignmentListutility, does not consider that space and changes the format back tosubscriptionResourceId('Microsoft.Authorization/roleDefinitions','<roleID>')Update the utility, in particular the
Get-RoleAssignmentListutility, to comply with the right formatting and avoid unintended changes on files.