You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for your identity to access your container registry, you must grant it a role assignment. Use to following command to grant the `acrpull` role to the identity you've just created, making sure to provide your registry's ID and the service principal we obtained earlier:
80
80
81
81
```azurecli-interactive
82
-
az role assignment create --assignee $spID --scope <registry-id> --role acrpull
82
+
az role assignment create --assignee $SPID --scope <registry-id> --role acrpull
83
83
```
84
84
85
85
## Deploy using an Azure Resource Manager (ARM) template
@@ -161,15 +161,15 @@ az deployment group create --resource-group myResourceGroup --template-file azur
161
161
To deploy a container group using managed identity to authenticate image pulls via the Azure CLI, use the following command, making sure that your `<dns-label>` is globally unique:
## Deploy in a virtual network using the Azure CLI
168
168
169
169
To deploy a container group to a virtual network using managed identity to authenticate image pulls from an ACR that runs behind a private endpoint via the Azure CLI, use the following command:
0 commit comments