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/azure-app-configuration/quickstart-container-apps.md
+14-17Lines changed: 14 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "Quickstart: Connect a container app to App Configuration"
2
+
title: "Quickstart: Use Azure App Configuration in Azure Container Apps"
3
3
description: Learn how to connect a containerized application to Azure App Configuration, using Service Connector.
4
4
services: azure-app-configuration
5
5
author: maud-lv
@@ -10,16 +10,16 @@ ms.author: malev
10
10
11
11
---
12
12
13
-
# Connect an ASP.NET Core app to App Configuration using Service Connector
13
+
# Quickstart: Use Azure App Configuration in Azure Container Apps
14
14
15
-
In this quickstart, learn how to connect a container app to Azure App Configuration using Service Connector. This quickstart leverages the ASP.NET application created in [Quickstart: Create an ASP.NET Core app with App Configuration](./quickstart-aspnet-core-app.md). Complete this quickstart before you continue.
15
+
In this quickstart, you will use Azure App Configuration in an ASP.NET Core app running in Azure Container Apps. This way, you can centralize the storage and management of your Container Apps configuration. This quickstart leverages the ASP.NET Core app created in [Quickstart: Create an ASP.NET Core app with App Configuration](./quickstart-aspnet-core-app.md). You will containerize the app and deploy it to Azure Container Apps. Complete the quickstart before you continue.
16
16
17
17
> [!TIP]
18
18
> While following this quickstart, preferably register all new resources within a single resource group, so that you can regroup them all in a single place and delete them faster later on if you don't need them anymore.
19
19
20
20
## Prerequisites
21
21
22
-
-This quickstart assumes that you've completed the quickstart [Create an ASP.NET Core app with App Configuration](./quickstart-aspnet-core-app.md).
22
+
-The App Configuration store and the ASP.NET Core App that you created in the [Quickstart: Create an ASP.NET Core app with App Configuration](./quickstart-aspnet-core-app.md).
@@ -41,7 +41,7 @@ To create the container app and container apps environment using the Azure CLI,
41
41
42
42
## Connect Azure Container Apps to Azure App Configuration
43
43
44
-
In the next step, connect the container app to Azure App Configuration using [Service Connector](../service-connector/overview.md). Service Connector helps you connect several Azure services together in a few steps without having to manage the configuration of the network settings and connection information yourself.
44
+
In the next step, you will add the connection string of your App Configuration store to the secret of your Container App and add an environment variable to your container to reference the secret. You use the [Service Connector](../service-connector/overview.md) to do this in a few steps without managing the connection information yourself.
45
45
46
46
#### [Portal](#tab/azure-portal)
47
47
@@ -58,6 +58,8 @@ Connect the container app to Azure App Configuration following the [Service Conn
58
58
- expand the **Advanced** menu, edit the environment variable name "AZURE_APPCONFIGURATION_CONNECTIONSTRING" by changing it to "ConnectionStrings__AppConfig" and select **Done**
59
59
- Use default values for everything else.
60
60
61
+
Once done, an environment variable named **ConnectionStrings__AppConfig** will be added to the container of your Container App. Its value is a reference of the Container App secret, the connection string of your App Configuration store. The _ConnectionStrings__AppConfig_ is the environment variable your app built from the quickstart will look for.
62
+
61
63
#### [Azure CLI](#tab/azure-cli)
62
64
63
65
Run the Azure CLI command `az containerapp connection connection create` to create a service connection from the container app, using a connection string.
@@ -87,7 +89,7 @@ Connect the container app to Azure App Configuration following the [Service Conn
87
89
88
90
1. Run the [dotnet publish](/dotnet/core/tools/dotnet-publish) command to build the app in release mode and create the assets in the *published* folder.
89
91
90
-
```csharp
92
+
```dotnet
91
93
dotnet publish -c Release -o published
92
94
```
93
95
@@ -131,16 +133,16 @@ Push the Docker image to the ACR created earlier.
131
133
132
134
1. Run the [az acr login](/cli/azure/acr#az-acr-login) command to log in to the registry.
133
135
134
-
```docker
136
+
```azurecli
135
137
az acr login --name myregistry
136
138
```
137
139
138
140
The command returns `Login Succeeded` once login is successful.
139
141
140
-
1. 1. Use [dockertag](https://docs.docker.com/engine/reference/commandline/tag/) to tag the image with the ACR name
142
+
1. Use [docker tag](https://docs.docker.com/engine/reference/commandline/tag/) to tag the image with the ACR name
0 commit comments