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
Copy file name to clipboardExpand all lines: articles/container-apps/managed-identity-image-pull.md
+23-49Lines changed: 23 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -619,6 +619,7 @@ This article describes how to use a Bicep template to configure your container a
619
619
- If you don't have one, you can [create one for free](https://azure.microsoft.com/free/).
620
620
- If using Azure CLI, [install the Azure CLI](/cli/azure/install-azure-cli) on your local machine.
621
621
- If using PowerShell, [install the Azure PowerShell](/powershell/azure/install-azure-powershell) on your local machine. Ensure that the latest version of the Az.App module is installed by running the command `Install-Module -Name Az.App`.
622
+
- A private Azure Container Registry containing an image you want to pull. To create a container registry and push an image to it, see [Quickstart: Create a private container registry using the Azure CLI](/container-registry/container-registry-get-started-azure-cli.md) or [Quickstart: Create a private container registry using Azure PowerShell](/container-registry/container-registry-get-started-powershell.md)
The [`AcrPull`](/azure/role-based-access-control/built-in-roles#acrpull) role grants your user-assigned managed identity permission to pull the image from the registry.
694
693
695
-
### Create a container registry
696
-
697
-
If you don't already have a container registry, you can create it with the following command.
698
-
699
-
# [Azure CLI](#tab/azure-cli)
700
-
701
-
```azurecli
702
-
az acr create \
703
-
--name "$CONTAINER_REGISTRY_NAME" \
704
-
--resource-group "$RESOURCE_GROUP" \
705
-
--location "$LOCATION" \
706
-
--sku Basic \
707
-
--admin-enabled true
708
-
```
709
-
710
-
# [Azure PowerShell](#tab/azure-powershell)
711
-
712
-
```azurepowershell
713
-
TODO1
714
-
```
715
-
716
-
---
717
-
718
-
### Push your image to the container registry
719
-
720
-
Push your image to the container registry with the following command.
0 commit comments