Forum Discussion
TomWechsler
Jul 12, 2021MVP
Create a custom role (VM Reader) for a user using PowerShell in Azure!
Hi Azure friends,
This example is about this customer scenario. A specific user needs to be able to read the settings of all VMs (virtual machines) in a specific subscription, but no more. ...
Athithya
Jul 12, 2021Brass Contributor
TomWechsler
Thanks for the valuable sharing. I've a small clarification as below.
I understand that the example you explained covers "actions" under the permission.
Can we achieve "nonActions", "dataActions", "nonDataActions" as well via powershell?
I hope yes because I can see those objects when I read $role in powershell. Kindly share your thoughts.
Thanks for the valuable sharing. I've a small clarification as below.
I understand that the example you explained covers "actions" under the permission.
Can we achieve "nonActions", "dataActions", "nonDataActions" as well via powershell?
I hope yes because I can see those objects when I read $role in powershell. Kindly share your thoughts.
- TomWechslerJul 13, 2021MVPIt's a pleasure. Attached is a link to Microsoft Docs where you can get more information. I would work with a JSON template for notActions/notDataActions. Regards, Tom Wechsler
https://docs.microsoft.com/en-us/azure/role-based-access-control/custom-roles-powershell