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
title: Quickstart - Create a service connection in App Service from the Azure portal
3
3
description: Quickstart showing how to create a service connection in App Service from the Azure portal
4
-
author: shizn
5
-
ms.author: xshi
4
+
author: maud-lv
5
+
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.custom: event-tier1-build-2022
8
8
ms.topic: quickstart
9
-
ms.date: 05/03/2022
9
+
ms.date: 07/18/2022
10
10
#Customer intent: As an app developer, I want to connect several services together so that I can ensure I have the right connectivity to access my Azure resources.
11
11
---
12
12
@@ -25,36 +25,67 @@ Sign in to the Azure portal at [https://portal.azure.com/](https://portal.azure.
25
25
26
26
## Create a new service connection in App Service
27
27
28
-
You'll use Service Connector to create a new service connection in App Service.
28
+
1. To create a new service connection in App Service, select the **Search resources, services and docs (G +/)** search bar at the top of the Azure portal, type ***App Services***, and select **App Services**.
29
29
30
-
1. Select the **All resources** button on the left of the Azure portal. Type **App Service** in the filter and select the name of the App Service you want to use in the list.
31
-
2. Select **Service Connector** from the left table of contents. Then select **Create**.
32
-
3. Select or enter the following settings.
30
+
:::image type="content" source="./media/app-service-quickstart/select-app-services.png" alt-text="Screenshot of the Azure portal, selecting App Services.":::
|**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. |
37
-
|**Subscription**| One of your subscriptions | The subscription where your target service (the service you want to connect to) is located. The default value is the subscription that this App Service is in. |
38
-
|**Connection name**| Generated unique name | The connection name that identifies the connection between your App Service and target service |
39
-
|**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. |
40
-
|**Client type**| The same app stack on this App Service | Your application stack that works with the target service you selected. The default value comes from the App Service runtime stack. |
32
+
1. Select the Azure App Services resource you want to connect to a target resource.
33
+
1. Select **Service Connector** from the left table of contents. Then select **Create**.
41
34
42
-
4. Select **Next: Authentication** to select the authentication type. Then select**Connection string** to use access key to connect your Blob Storage account.
35
+
:::image type="content" source="./media/app-service-quickstart/select-service-connector.png" alt-text="Screenshot of the Azure portal, selecting Service Connector and creating new connection.":::
43
36
44
-
5. Then select **Next: Review + Create** to review the provided information. Then select **Create** to create the service connection. It might take 1 minute to complete the operation.
|**Service type**| Storage - Blob | The target service type. If you don't have a Microsoft Blob Storage, you can [create one](../storage/blobs/storage-quickstart-blobs-portal.md) or use another service type. |
42
+
|**Subscription**| My subscription | The subscription for your target service (the service you want to connect to). The default value is the subscription for this App Service resource. |
43
+
|**Connection name**|*my_connection*| The connection name that identifies the connection between your App Service and target service. Use the connection name provided by Service Connector or choose your own connection name. |
44
+
|**Storage account**|*my_storage_account*| The target storage account you want to connect to. Target service instances to choose from vary according to the selected service type. |
45
+
|**Client type**| The same app stack on this App Service | The default value comes from the App Service runtime stack. Select the app stack that's on this App Service instance. |
46
+
47
+
:::image type="content" source="./media/app-service-quickstart/basics-tab.png" alt-text="Screenshot of the Azure portal, filling out the Basics tab.":::
48
+
49
+
1. Select **Next: Authentication** to choose an authentication method.
50
+
51
+
### [System-assigned managed identity](#tab/SMI)
52
+
53
+
System-assigned managed identity is the recommended authentication option. Select **System-assigned managed identity** to connect through an identity that's generated in Azure Active Directory and tied to the lifecycle of the service instance.
54
+
55
+
### [User-assigned managed identity](#tab/UMI)
56
+
57
+
Select **User-assigned managed identity** to authenticate through a standalone identity assigned to one or more instances of an Azure service.
58
+
59
+
### [Connection string](#tab/CS)
60
+
61
+
Select **Connection string** to generate or configure one or multiple key-value pairs with pure secrets or tokens.
62
+
63
+
### [Service principal](#tab/SP)
64
+
65
+
Select **Service principal** to use a service principal that defines the access policy and permissions for the user/application in Azure Active Directory.
66
+
67
+
1. Select **Next: Networking** to configure the network access to your target service and select **Configure firewall rules to enable access to your target service**.
68
+
69
+
1. Select **Next: Review + Create** to review the provided information. Then select **Create** to create the service connection. This operation may take a minute to complete.
45
70
46
71
## View service connections in App Service
47
72
48
-
1.In**Service Connector**, you see an App Service connection to the target service.
73
+
1.The**Service Connector** tab displays existing App Service connections.
49
74
50
-
1. Select the **>** button to expand the list. You can see the environment variables required by your application code.
75
+
1. Select the **>** button to expand the list and see the environment variables required by your application code. Select **Hidden value** to view the hidden value.
51
76
52
-
1. Select the **...** button and select **Validate**. You can see the connection validation details in the pop-up panel on the right.
77
+
:::image type="content" source="./media/app-service-quickstart/show-values.png" alt-text="Screenshot of the Azure portal, viewing connection details.":::
78
+
79
+
1. Select **Validate** to check your connection. You can see the connection validation details in the panel on the right.
80
+
81
+
:::image type="content" source="./media/app-service-quickstart/validation.png" alt-text="Screenshot of the Azure portal, validating the connection.":::
53
82
54
83
## Next steps
55
84
56
85
Follow the tutorials listed below to start building your own application with Service Connector.
57
86
58
87
> [!div class="nextstepaction"]
59
-
> -[Tutorial: WebApp + Storage with Azure CLI](./tutorial-csharp-webapp-storage-cli.md)
60
-
> -[Tutorial: WebApp + PostgreSQL with Azure CLI](./tutorial-django-webapp-postgres-cli.md)
88
+
> [Tutorial: WebApp + Storage with Azure CLI](./tutorial-csharp-webapp-storage-cli.md)
89
+
90
+
> [!div class="nextstepaction"]
91
+
> [Tutorial: WebApp + PostgreSQL with Azure CLI](./tutorial-django-webapp-postgres-cli.md)
0 commit comments