Skip to content

Commit 3829955

Browse files
committedMay 24, 2024
[CLOUD-728] Wrong azure CLI parameter in the documentation when creating the role assignment (#387)
1 parent a4cae5c commit 3829955

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎docs/setup_installation/azure/aks_acr_integration.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ aksidentity=$(az aks create --resource-group $RESOURCE_GROUP --name hopsworks-ak
2626
You need to add permission to [the managed identity you will assign to your Hopsworks cluster](getting_started.md#step-4-create-a-managed-identity) to access the AKS cluster. To do it run the following command, replacing *\$RESOURCE_GROUP* with the resource group in which you will run your cluster and $identityId with the *id* of the identity you will assign to your Hopsworks cluster.
2727

2828
```bash
29-
az role assignment create --resource-group $RESOURCE_GROUP --role "Azure Kubernetes Service Cluster User Role" --assignee $identityId
29+
az role assignment create --scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP --role "Azure Kubernetes Service Cluster User Role" --assignee $identityId
3030
```
3131

3232
You also need to grant permission to pull images from the [ACR](getting_started.md#step-3-create-an-acr-container-registry) to the AKS nodes. To do it run the following command, replacing *\$RESOURCE_GROUP* with the resource group in which you will run your cluster
3333

3434
```bash
35-
az role assignment create --resource-group $RESOURCE_GROUP --role "AcrPull" --assignee $aksidentity
35+
az role assignment create --scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP --role "AcrPull" --assignee $aksidentity
3636
```
3737

3838

‎docs/setup_installation/azure/getting_started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ az role definition create --role-definition instance-role.json
170170
Finally assign the role to the managed identity by running the following command, replacing *$RESOURCE_GROUP* with the name of your resource group.
171171

172172
```bash
173-
az role assignment create --resource-group $RESOURCE_GROUP --role hopsworks-instance --assignee $identityId
173+
az role assignment create --scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP --role hopsworks-instance --assignee $identityId
174174
```
175175

176176
!!!note

0 commit comments

Comments
 (0)