azure-quickstart-templates/subscription-deployments/create-rg-lock-role-assignment
Brian Moore da0cdd93d7
add urlFragment lint metadata ***NO_CI*** (#12591)
Co-authored-by: azure-quickstart-templates pipeline <azure-quickstart-templates@noreply.github.com>
2022-07-06 17:05:08 -05:00
..
README.md add urlFragment lint metadata ***NO_CI*** (#12591) 2022-07-06 17:05:08 -05:00
applylock.bicep Migrate bicep example: 101/create-rg-lock-role-assignment (#11116) 2021-06-18 09:36:36 -05:00
azuredeploy.json update to bicep v0.5.6 (#12409) 2022-04-27 17:20:49 -05:00
azuredeploy.parameters.json
main.bicep Migrate bicep example: 101/create-rg-lock-role-assignment (#11116) 2021-06-18 09:36:36 -05:00
metadata.json Migrate bicep example: 101/create-rg-lock-role-assignment (#11116) 2021-06-18 09:36:36 -05:00

README.md

description page_type products urlFragment languages
This template is a subscription level template that will create a resourceGroup, apply a lock the the resourceGroup and assign contributor permssions to the supplied principalId. Currently, this template cannot be deployed via the Azure Portal. sample
azure
azure-resource-manager
create-rg-lock-role-assignment
json
bicep

Create a resourceGroup, apply a lock and RBAC

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

Deploy To Azure Deploy To Azure US Gov Visualize

This template is a subscription level template that creates a resource group, applies a DoNotDelete lock to that group, and assigns the contributor role to a principal specified in a template parameters.

NOTE: Role Assigments use a GUID for the name, this must be unique for every role assignment on the group. The roleAssignmentName parameter is used to seed the guid() function with this value, change it for each deployment. You can supply a guid or any string, as long as it has not been used before when assigning the role to the resourceGroup.

Tags: Microsoft.Resources/resourceGroups, Microsoft.Resources/deployments, Microsoft.Authorization/locks, Microsoft.Authorization/roleAssignments