Skip to content

Commit ead7949

Browse files
committed
Feedback from review - Zhenlan
1 parent 852f61c commit ead7949

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

articles/azure-app-configuration/quickstart-container-apps.md

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,15 @@ Create an Azure Container Registry (ACR). ACR enables you to build, store, and m
8080
8181
#### [Azure CLI](#tab/azure-cli)
8282
83-
1. Create an ACR instance following the [Azure Container Registry quickstart](/azure/container-registry/container-registry-get-started-azure-cli).
83+
1. Create an ACR instance using the following command. It creates a basic tier registry named *myregistry* with admin user enabled that allows the container app to connect to the registry using admin user credentials. For more information, see [Azure Container Registry quickstart](/azure/container-registry/container-registry-get-started-azure-cli).
84+
85+
```azurecli
86+
az acr create
87+
--resource-group AppConfigTestResources \
88+
--name myregistry \
89+
--admin-enabled true \
90+
--sku Basic
91+
```
8492
1. In the command output, take note of the ACR login server value listed after `loginServer`.
8593
1. Retrieve the ACR username and password by running `az acr credential show --name myregistry`. You'll need these values later.
8694

@@ -129,9 +137,7 @@ Push the Docker image to the ACR created earlier.
129137
130138
Update your Container App to load the container image from your ACR.
131139
132-
#### [Portal](#tab/azure-portal)
133-
134-
1. Open your Azure Container Apps instance.
140+
1. In the Azure portal, open your Azure Container Apps instance.
135141
1. In the left menu, under **Application**, select **Containers**.
136142
1. Select **Edit and deploy**.
137143
1. Under **Container image**, click on the name of the existing container image.
@@ -147,27 +153,6 @@ Update your Container App to load the container image from your ACR.
147153
148154
1. Select **Save** and then **Create** to deploy the update to Azure Container App.
149155
150-
#### [Azure CLI](#tab/azure-cli)
151-
152-
When running the [az containerapp update](/cli/azure/containerapp#az-containerapp-update) command, refer to the following example:
153-
154-
```azurecli
155-
az containerapp update \
156-
--name mycontainerapp \
157-
--image myregistry.azurecr.io/aspnetapp:v1 \
158-
--resource-group AppConfigTestResources \
159-
--container-name mycontainer
160-
```
161-
162-
| Parameter | Suggested value | Description |
163-
|--------------------|--------------------------------------|-----------------------------------------------------------------------|
164-
| `--name` | `mycontainerapp` | Enter the name of the Azure Container Apps instance. |
165-
| `--image` | `myregistry.azurecr.io/aspnetapp:v1` | Point to the container image in the format publisher/image-name:tag. |
166-
| `--resource-group` | `myresourcegroup` | Enter the name of the resource group that contains the container app. |
167-
| `--container-name` | `mycontainer` | Enter the name of the container. |
168-
169-
---
170-
171156
## Browse to the URL of the Azure Container App
172157
173158
In the Azure portal, in the Azure Container Apps instance, go to the **Overview** tab and open the **Application Url**.
@@ -184,12 +169,11 @@ The web page looks like this:
184169
185170
In this quickstart, you:
186171
187-
- Created a basic Azure Container Apps instance
188-
- Connected Azure Container Apps to Azure App Configuration
172+
- Connected Azure App Configuration to Azure Container Apps
189173
- Used Docker to build a container image from an ASP.NET Core app with App Configuration settings
190174
- Created an Azure Container Registry instance
191175
- Pushed the image to the Azure Container Registry instance
192-
- Updated the Azure Container Apps instance with the image
176+
- Added the container image to Azure Container Apps
193177
- Browsed to the URL of the Azure Container Apps instance updated with the settings you configured in your App Configuration store.
194178
195179
To learn how to configure your ASP.NET Core web app to dynamically refresh configuration settings, continue to the next tutorial.

0 commit comments

Comments
 (0)