@@ -246,7 +246,7 @@ This article describes how to configure your container app to use managed identi
246
246
247
247
[!INCLUDE [container-apps-create-cli-steps.md](../../includes/container-apps-create-cli-steps.md)]
248
248
249
- Next, set the following environment variables. Replace the *\<PLACEHOLDERS\>* with your own values.
249
+ Next, set the following environment variables. Replace the placeholders surrounded by `<>` with your values.
250
250
251
251
# [Azure CLI](#tab/azure-cli)
252
252
@@ -262,12 +262,12 @@ IMAGE_NAME="<YOUR_IMAGE_NAME>"
262
262
# [ Azure PowerShell] ( #tab/azure-powershell )
263
263
264
264
``` azurepowershell
265
- $ResourceGroupName = '<YOUR_RESOURCE_GROUP_NAME >'
266
- $Location = '<YOUR_LOCATION >'
267
- $ContainerAppsEnvironment = '<YOUR_ENVIRONMENT_NAME >'
268
- $RegistryName = '<YOUR_REGISTRY_NAME >'
269
- $ContainerAppName = '<YOUR_CONTAINERAPP_NAME >'
270
- $ImageName = '<YOUR_IMAGE_NAME >'
265
+ $ResourceGroupName = '<RESOURCE_GROUP_NAME >'
266
+ $Location = '<LOCATION >'
267
+ $ContainerAppsEnvironment = '<ENVIRONMENT_NAME >'
268
+ $RegistryName = '<REGISTRY_NAME >'
269
+ $ContainerAppName = '<CONTAINERAPP_NAME >'
270
+ $ImageName = '<IMAGE_NAME >'
271
271
```
272
272
273
273
---
@@ -353,7 +353,7 @@ Follow this procedure to configure user-assigned managed identity:
353
353
354
354
# [ Azure CLI] ( #tab/azure-cli )
355
355
356
- Create a user-assigned managed identity. Replace the * \< PLACEHOLDERS \> * with the name of your managed identity.
356
+ Create a user-assigned managed identity. Before you run the following command, replace placeholders surrounded by ` <> ` with the name of your managed identity.
357
357
358
358
``` azurecli
359
359
IDENTITY="<YOUR_IDENTITY_NAME>"
@@ -367,7 +367,7 @@ az identity create \
367
367
368
368
# [ Azure PowerShell] ( #tab/azure-powershell )
369
369
370
- Create a user-assigned managed identity. Replace the * \< Placeholders \> * with the name of your managed identity.
370
+ Create a user-assigned managed identity. Before you run the following command, replace placeholders surrounded by ` <> ` with the name of your managed identity.
371
371
372
372
``` azurepowershell
373
373
$IdentityName = '<YourIdentityName>'
@@ -399,7 +399,7 @@ $IdentityId = (Get-AzUserAssignedIdentity -Name $IdentityName -ResourceGroupName
399
399
$PrincipalId = (Get-AzUserAssignedIdentity -Name $IdentityName -ResourceGroupName $ResourceGroupName).PrincipalId
400
400
```
401
401
402
- Get the registry's resource ID. Replace the * \< placeholders\> * with the resource group name for your registry.
402
+ Get the registry's resource ID. Before you run the following command, replace placeholders surrounded by ` <> ` with the resource group name for your registry.
403
403
404
404
``` azurepowershell
405
405
$RegistryId = (Get-AzContainerRegistry -ResourceGroupName <RegistryResourceGroup> -Name $RegistryName).Id
@@ -648,43 +648,43 @@ You must manually install Bicep for any use other than Azure CLI. For more infor
648
648
649
649
### Set environment variables
650
650
651
- Next, set the following environment variables. Replace the * \< PLACEHOLDERS \> * with your own values.
651
+ Next, set the following environment variables. Replace placeholders surrounded by ` <> ` with your values.
652
652
653
653
# [ Azure CLI] ( #tab/azure-cli )
654
654
655
655
``` azurecli
656
- RESOURCE_GROUP="<YOUR_RESOURCE_GROUP_NAME >"
657
- LOCATION="<YOUR_LOCATION >"
658
- REGISTRY_NAME="<YOUR_REGISTRY_NAME >"
659
- IMAGE_NAME="<YOUR_IMAGE_NAME >"
660
- IMAGE_TAG="<YOUR_IMAGE_TAG >"
661
- IMAGE_URL="<YOUR_IMAGE_URL >"
662
- BICEP_TEMPLATE="<YOUR_BICEP_TEMPLATE >"
663
- CONTAINERAPPS_ENVIRONMENT="<YOUR_ENVIRONMENT_NAME >"
664
- CONTAINER_NAME="<YOUR_CONTAINER_NAME >"
665
- CONTAINERAPP_NAME="<YOUR_CONTAINERAPP_NAME >"
666
- USER_ASSIGNED_IDENTITY_NAME="<YOUR_USER_ASSIGNED_IDENTITY_NAME >"
667
- LOG_ANALYTICS_WORKSPACE_NAME="<YOUR_LOG_ANALYTICS_WORKSPACE_NAME >"
668
- APP_INSIGHTS_NAME="<YOUR_APP_INSIGHTS_NAME >"
656
+ RESOURCE_GROUP="<RESOURCE_GROUP_NAME >"
657
+ LOCATION="<LOCATION >"
658
+ REGISTRY_NAME="<REGISTRY_NAME >"
659
+ IMAGE_NAME="<IMAGE_NAME >"
660
+ IMAGE_TAG="<IMAGE_TAG >"
661
+ IMAGE_URL="<IMAGE_URL >"
662
+ BICEP_TEMPLATE="<BICEP_TEMPLATE >"
663
+ CONTAINERAPPS_ENVIRONMENT="<ENVIRONMENT_NAME >"
664
+ CONTAINER_NAME="<CONTAINER_NAME >"
665
+ CONTAINERAPP_NAME="<CONTAINERAPP_NAME >"
666
+ USER_ASSIGNED_IDENTITY_NAME="<USER_ASSIGNED_IDENTITY_NAME >"
667
+ LOG_ANALYTICS_WORKSPACE_NAME="<LOG_ANALYTICS_WORKSPACE_NAME >"
668
+ APP_INSIGHTS_NAME="<APP_INSIGHTS_NAME >"
669
669
ACR_PULL_DEFINITION_ID="7f951dda-4ed3-4680-a7ca-43fe172d538d"
670
670
```
671
671
672
672
# [ Azure PowerShell] ( #tab/azure-powershell )
673
673
674
674
``` azurepowershell
675
- $ResourceGroupName = '<YOUR_RESOURCE_GROUP_NAME >'
676
- $Location = '<YOUR_LOCATION >'
677
- $RegistryName = '<YOUR_REGISTRY_NAME >'
678
- $ImageName = '<YOUR_IMAGE_NAME >'
679
- $ImageTag = '<YOUR_IMAGE_TAG >'
680
- $ImageUrl = '<YOUR_IMAGE_URL >'
681
- $BicepTemplate = '<YOUR_BICEP_TEMPLATE >'
682
- $ContainerAppsEnvironment = '<YOUR_ENVIRONMENT_NAME >'
683
- $ContainerName = '<YOUR_CONTAINER_NAME >'
684
- $ContainerAppName = '<YOUR_CONTAINERAPP_NAME >'
685
- $UserAssignedIdentityName = '<YOUR_USER_ASSIGNED_IDENTITY_NAME >'
686
- $LogAnalyticsWorkspaceName = '<YOUR_LOG_ANALYTICS_WORKSPACE_NAME >'
687
- $AppInsightsName = '<YOUR_LOG_ANALYTICS_WORKSPACE_NAME >'
675
+ $ResourceGroupName = '<RESOURCE_GROUP_NAME >'
676
+ $Location = '<LOCATION >'
677
+ $RegistryName = '<REGISTRY_NAME >'
678
+ $ImageName = '<IMAGE_NAME >'
679
+ $ImageTag = '<IMAGE_TAG >'
680
+ $ImageUrl = '<IMAGE_URL >'
681
+ $BicepTemplate = '<BICEP_TEMPLATE >'
682
+ $ContainerAppsEnvironment = '<ENVIRONMENT_NAME >'
683
+ $ContainerName = '<CONTAINER_NAME >'
684
+ $ContainerAppName = '<CONTAINERAPP_NAME >'
685
+ $UserAssignedIdentityName = '<USER_ASSIGNED_IDENTITY_NAME >'
686
+ $LogAnalyticsWorkspaceName = '<LOG_ANALYTICS_WORKSPACE_NAME >'
687
+ $AppInsightsName = '<LOG_ANALYTICS_WORKSPACE_NAME >'
688
688
$AcrPullDefinitionId = '7f951dda-4ed3-4680-a7ca-43fe172d538d'
689
689
```
690
690
0 commit comments