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/how-to-connect-backing-service.md
+24-26Lines changed: 24 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
1
---
2
-
title: How to connect a Container Apps instance to a backing service
3
-
description: Quickstart showing how to connect a container app to a target Azure service using the Azure portal or the CLI.
2
+
title: Connect a container app to a cloud service with Service Connector
3
+
description: Learn to connect a container app to an Azure service using the Azure portal or the CLI.
4
4
author: maud-lv
5
5
ms.author: malev
6
-
ms.service: service-connector
6
+
ms.service: container-apps
7
7
ms.topic: how-to
8
-
ms.date: 05/24/2022
8
+
ms.date: 06/16/2022
9
9
# Customer intent: As an app developer, I want to connect a containerized app to a storage account in the Azure portal using Service Connector.
10
10
---
11
11
12
12
# How to connect a Container Apps instance to a backing service
13
13
14
-
Azure Container Apps now supports Service Connector. Service Connector is an Azure solution that helps you connect Azure compute services to backing services in just a few steps. Service Connector manages the configuration of the network settings and connection information between compute and target backing services, so you don't have to think about it. To view all supported target services, [learn more about Service Connector](../service-connector/overview.md#what-services-are-supported-in-service-connector).
14
+
Azure Container Apps allows you to use Service Connector to connect to cloud services in just a few steps. Service Connector manages the configuration of the network settings and connection information between different services. To view all supported services, [learn more about Service Connector](../service-connector/overview.md#what-services-are-supported-in-service-connector).
15
15
16
-
In the guide below, learn how to connect your container app to a target service using the Azure portal or the CLI. In this article, we're connecting Container Apps to Azure Blob Storage.
16
+
In this article, you learn to connect a container app to Azure Blob Storage.
17
17
18
18
> [!IMPORTANT]
19
19
> This feature in Container Apps is currently in preview.
@@ -23,59 +23,57 @@ In the guide below, learn how to connect your container app to a target service
23
23
24
24
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/dotnet).
25
25
- An application deployed to Container Apps in a [region supported by Service Connector](../service-connector/concept-region-support.md). If you don't have one yet, [create and deploy a container to Container Apps](quickstart-portal.md)
26
-
-A resource in a target service, such as Azure Blob Storage
26
+
-An Azure Blob Storage account
27
27
28
28
## Sign in to Azure
29
29
30
-
First, sign in to the Azure portal.
30
+
First, sign in to Azure.
31
31
32
32
### [Portal](#tab/azure-portal)
33
33
34
34
Sign in to the Azure portal at [https://portal.azure.com/](https://portal.azure.com/) with your Azure account.
35
35
36
36
### [Azure CLI](#tab/azure-cli)
37
37
38
-
Sign in to the Azure portal using the `az login` command in the [Azure CLI](/cli/azure/install-azure-cli).
39
38
40
39
```azurecli-interactive
41
40
az login
42
-
```
43
-
44
-
This command will prompt your web browser to launch and load an Azure sign-in page. If the browser fails to open, use device code flow with `az login --use-device-code`. For more sign in options, go to [sign in with the Azure CLI](/cli/azure/authenticate-azure-cli).
45
-
46
41
---
47
42
48
-
## Create a new service connection in Container Apps
43
+
## Create a new service connection
49
44
50
45
Use Service Connector to create a new service connection in Container Apps using the Azure portal or the CLI.
51
46
52
47
### [Portal](#tab/azure-portal)
53
48
54
-
1. Select **All resources** on the left of the Azure portal. Type **Container Apps** in the filter and select the name of the container app you want to use in the list.
55
-
1. Select **Service Connector** from the left table of contents. Then select **Create**.
49
+
1. Navigate to the Azure portal.
50
+
1. Select **All resources** on the left of the Azure portal.
51
+
1. Enter **Container Apps** in the filter and select the name of the container app you want to use in the list.
52
+
1. Select **Service Connector** from the left table of contents.
53
+
1. Select **Create**.
56
54
57
55
:::image type="content" source="media/connect-backing/connect-service-connector.png" alt-text="Screenshot of the Azure portal, selecting Service Connector within a container app" lightbox="media/connect-backing/connect-service-connector-expanded.png":::
|**Container**| Your container | Select your Container Apps. |
64
-
|**Service type**| Blob Storage |Target service type. If you don't have a Storage Blob container, you can [create one](../storage/blobs/storage-quickstart-blobs-portal.md) or use another service type. |
65
-
|**Subscription**| One of your subscriptions | The subscription containing your target service. The default value is the subscription for your Container App instance. |
66
-
|**Connection name**| Generated unique name | The connection name that identifies the connection between your container app and target service|
67
-
|**Storage account**| Your storage account | The target storage account you want to connect to. If you choose a different service type, select the corresponding target service instance. |
68
-
|**Client type**| The app stack in your selected container | Your application stack that works with the target service you selected. The default value is **none**, which will generate a list of configurations. If you know about the app stack or the client SDK in the container you selected, select the same app stack for the client type. |
59
+
| Setting | Suggested value | Description |
60
+
| --- | --- | --- |
61
+
| **Container** | Your container name | Select your Container Apps. |
62
+
| **Service type** | Blob Storage | This is the target service type. If you don't have a Storage Blob container, you can [create one](../storage/blobs/storage-quickstart-blobs-portal.md) or use another service type. |
63
+
| **Subscription** | One of your subscriptions | The subscription containing your target service. The default value is the subscription for your container app. |
64
+
| **Connection name** | Generated unique name | The connection name that identifies the connection between your container app and target service. |
65
+
| **Storage account** | Your storage account name | The target storage account to which you want to connect. If you choose a different service type, select the corresponding target service instance. |
66
+
| **Client type** | The app stack in your selected container | Your application stack that works with the target service you selected. The default value is **none**, which generates a list of configurations. If you know about the app stack or the client SDK in the container you selected, select the same app stack for the client type. |
69
67
70
68
1. Select **Next: Authentication** to select the authentication type. Then select **Connection string** to use access key to connect your Blob Storage account.
71
69
72
70
1. Select **Next: Network** to select the network configuration. Then select **Enable firewall settings** to update firewall allowlist in Blob Storage so that your container apps can reach the Blob Storage.
73
71
74
-
1. Then select **Next: Review + Create** to review the provided information. Running the final validation takes a few seconds. Then select **Create** to create the service connection. It might take one minute to complete the operation.
72
+
1. Then select **Next: Review + Create** to review the provided information. Running the final validation takes a few seconds. Then select **Create** to create the service connection. It might take a minute or so to complete the operation.
75
73
76
74
### [Azure CLI](#tab/azure-cli)
77
75
78
-
Go through the steps below to create a service connection using an access key or a system-assigned managed identity.
76
+
The following steps create a service connection using an access key or a system-assigned managed identity.
79
77
80
78
1. Use the Azure CLI command `az containerapp connection list-support-types` to view all supported target services.
0 commit comments