Skip to content

Commit 3f4c9f3

Browse files
fixes some small issues
1 parent 013941c commit 3f4c9f3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

articles/container-apps/azure-arc-create-container-app.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Next, add the required Azure CLI extensions.
3434
3535
```azurecli-interactive
3636
az extension add --upgrade --yes --name customlocation
37-
az extension remove --name containerapps
37+
az extension remove --name containerapp
3838
az extension add -s https://download.microsoft.com/download/5/c/2/5c2ec3fc-bd2a-4615-a574-a1b7c8e22f40/containerapp-0.0.1-py2.py3-none-any.whl --yes
3939
```
4040

@@ -77,15 +77,17 @@ A connected environment is largely the same as a standard Container Apps environ
7777

7878
```azure-interactive
7979
myContainerApp="my-container-app"
80-
myConnectedEnvironment=$(az containerapp connected-env list --custom-location $customLocationId -o tsv --query '[].id')
80+
myConnectedEnvironmentName="<NAME_OF_CONNECTED_ENVIRONMENT>"
81+
myConnectedEnvironmentResourceGroup="<RESOURCE_GROUP_NAME_OF_CONNECTED_ENVIRONMENT>"
82+
myConnectedEnvironment=$(az containerapp connected-env show --resource-group $myConnectedEnvironmentResourceGroup --name $myConnectedEnvironmentName -o tsv --query id)
8183
```
8284

8385
## Create an app
8486

8587
The following example creates a Node.js app.
8688

8789
```azurecli-interactive
88-
az container app create \
90+
az containerapp create \
8991
--resource-group $myResourceGroup \
9092
--name $myContainerApp \
9193
--environment $myConnectedEnvironment \
@@ -94,8 +96,7 @@ The following example creates a Node.js app.
9496
--target-port 80 \
9597
--ingress 'external'
9698
97-
az containerapp browse --resource-group $myResourceGroup \
98-
--name $myContainerApp
99+
az containerapp browse --resource-group $myResourceGroup --name $myContainerApp
99100
```
100101

101102
## Get diagnostic logs using Log Analytics

0 commit comments

Comments
 (0)