In Azure, if I want to give read-access for a resource group through RBAC, can I do that through an ARM template? I know it's possible through a VSTS build step or a PS script, but is there any way to give permissions through ARM templates?
相关问题
- running headless chrome in an microsoft azure web
- Docker task in Azure devops won't accept "$(pw
- Django check user group permissions
- Register MicroServices in Azure Active Directory (
- Removing VHD's from Azure Resource Manager aft
相关文章
- SQL Azure Reset autoincrement
- Flutter - http.get fails on macos build target: Co
- How to cast Azure DocumentDB Document class to my
- Can't get azure web role to run locally using
- Azure WebApp - Unable to auto-detect the runtime s
- How to change region for Azure WebSite
- Azure webjob vs cloud service
- Azure data transfer Identity Column Seed Jumped by
We can assign the permission on resource group and its resources.
Go to to this link for more Details - Role-Based Access Control(RBACK)
No, this is not posible due to the fact that REST call to apply permissions is something like this:You cannot replicate subscription "level" rest calls with an ARM template yet.
Welp, contrary to everything I know, this works:
This assigns contributor role to the user with provided guid (principalId) to the resource group where you deploy the template. to assign other role get its guid and replace the contributor guid (b24988ac-6180-42a0-ab88-20f7382dd24c - well known guid). You can also assign permissions to specific resource. Use
scope
to do that (change it to resourceId).Name
has to be a new guid.I have no idea why this works, i will get back to you when i find out why it works.