Skip to content

[CLOUD-728] Wrong azure CLI parameter in the documentation when creat… #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/setup_installation/azure/aks_acr_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ aksidentity=$(az aks create --resource-group $RESOURCE_GROUP --name hopsworks-ak
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.

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

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

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


Expand Down
2 changes: 1 addition & 1 deletion docs/setup_installation/azure/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ az role definition create --role-definition instance-role.json
Finally assign the role to the managed identity by running the following command, replacing *$RESOURCE_GROUP* with the name of your resource group.

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

!!!note
Expand Down