Skip to content

Commit d1ba0ca

Browse files
committed
Incorporating feedback
1 parent 0b9c43e commit d1ba0ca

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/role-based-access-control/custom-roles-bicep.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ The resource defined in the Bicep file is:
5252
# [CLI](#tab/CLI)
5353

5454
```azurecli-interactive
55-
myActions ='("action-01", "action-02")'
55+
$myActions='("Microsoft.Resources/resources/read","Microsoft.Resources/subscriptions/resourceGroups/read")'
5656
5757
az deployment sub create --location eastus --name customRole --template-file main.bicep --parameters actions=$myActions
5858
```
5959
6060
# [PowerShell](#tab/PowerShell)
6161
6262
```azurepowershell-interactive
63-
$myActions = @("action-01", "action-02")
63+
$myActions = @("Microsoft.Resources/resources/read","Microsoft.Resources/subscriptions/resourceGroups/read")
6464
6565
New-AzSubscriptionDeployment -Location eastus -Name customRole -TemplateFile ./main.bicep -actions $myActions
6666
```
6767
6868
---
6969
7070
> [!NOTE]
71-
> Create a variable called **myActions** and then pass that variable. Replace the same actions with the actions for the roleDefinition.
71+
> Create a variable called **myActions** and then pass that variable. Replace the sample actions with the actions for the roleDefinition.
7272
7373
When the deployment finishes, you should see a message indicating the deployment succeeded.
7474
@@ -123,22 +123,22 @@ Here are the changes you would need to make to the previous Bicep file to update
123123
124124
---
125125
126-
4. Use Azure CLI or Azure PowerShell to deploy the updated Bicep file, replacing **<\name-id\>** with the roleDefName, and replacing the sample actions with the updated actions for the roleDefinition.
126+
4. Use Azure CLI or Azure PowerShell to deploy the updated Bicep file, replacing **\<name-id\>** with the roleDefName, and replacing the sample actions with the updated actions for the roleDefinition.
127127
128128
# [CLI](#tab/CLI)
129129
130130
```azurecli-interactive
131-
myActions ='("action-01", "action-02")'
131+
$myActions='("Microsoft.Resources/resources/read","Microsoft.Resources/subscriptions/resourceGroups/read")'
132132
133133
az deployment sub create --location eastus --name customrole --template-file main.bicep --parameters actions=$myActions roleDefName="name-id" roleName="Custom Role - RG Reader"
134134
```
135135
136136
# [PowerShell](#tab/PowerShell)
137137
138138
```azurepowershell-interactive
139-
$actions = @["action-01", "actions-02"]
139+
$myActions = @(""Microsoft.Resources/resources/read","Microsoft.Resources/subscriptions/resourceGroups/read"")
140140
141-
New-AzSubscriptionDeployment -Location eastus -Name customrole -TemplateFile ./main.bicep -actions $actions -roleDefName "name-id" -roleName "Custom Role - RG Reader"
141+
New-AzSubscriptionDeployment -Location eastus -Name customrole -TemplateFile ./main.bicep -actions $myActions -roleDefName "name-id" -roleName "Custom Role - RG Reader"
142142
```
143143
144144
---

0 commit comments

Comments
 (0)