HOTSPOT - You need to implement Role1. Which command should you run before you create Role1? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
Addition:
Create customer azure role from Json
https://docs.microsoft.com/en-us/powershell/module/az.resources/new-azroledefinition?view=azps-6.2.0#example-2--create-using-json-file
Alright makes sense. We first need to get the basis of the RBAC "Reader" role. To do that we use the PowerShell/CLI command to first get the role definition. Once we have that, we can use the "New" commandlet to create a custom role based on the JSON definition.
To implement Role1, which is a custom Azure role based on the Reader role, you need to retrieve the definition of the Reader role first. The appropriate command to use for this purpose is:
Get-AzRoleDefinition -Name "Reader" and ConvertTo-Json
Has anyone actually ever tried this irl? The answer is technically correct, but ConvertTo-Json has a default object depth of 2. I wonder if there are information lost on just using the default depth rather than specifying it to go deeper with the -depth parameter.
https://learn.microsoft.com/en-us/azure/role-based-access-control/tutorial-custom-role-powershell
This also shows why we need to convert the output to JSON
Correct. As the requirement states "Create a custom Azure role named Role1 that is based on the Reader role"...
... then you first need to know what the Reader role implies.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Gromble_ziz
Highly Voted 3 years, 6 months agoGromble_ziz
3 years, 6 months agoPanapi
1 year, 10 months agoatilla
Highly Voted 2 years, 8 months agoSeMo0o0o0o
Most Recent 2 months, 2 weeks agoPMPft17
2 months, 3 weeks ago23169fd
7 months agoMatAlves
11 months agoRams786
1 year, 3 months agoDimsumDestroyer
1 year, 4 months agoiRish
1 year, 7 months agoCyberKelev
1 year, 10 months agomichaelmorar
2 years, 8 months agoajayasa
2 years, 10 months agoajayasa
2 years, 10 months agoajayasa
2 years, 10 months agobenvdw
2 years, 10 months agohusam421
2 years, 11 months agoFabioVi
2 years, 11 months ago