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/service-connector/quickstart-cli-app-service-connection.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
---
2
-
title: Quickstart - Create a service connection in App Service with the Azure CLI
3
-
description: Quickstart showing how to create a service connection in App Service with the Azure CLI
2
+
title: "Quickstart: Create a Service Connection in App Service with the Azure CLI"
3
+
description: In this quickstart, learn how to create a service connection in App Service with the Azure CLI.
4
4
author: maud-lv
5
5
ms.author: malev
6
6
ms.service: service-connector
7
7
ms.topic: quickstart
8
-
ms.date: 11/17/2023
8
+
ms.date: 07/25/2025
9
9
ms.devlang: azurecli
10
10
ms.custom: devx-track-azurecli, build-2024
11
+
#customer intent: As a developer who uses Azure App Service, I want to connect my clusters to other Cloud resources, with Service Connection managing authentication and networking settings.
11
12
---
12
13
# Quickstart: Create a service connection in App Service with the Azure CLI
13
14
14
-
This quickstart describes the steps for creating a service connection in Azure App Service with the Azure CLI.
15
+
In this quickstart, you create a service connection in Azure App Service with the Azure CLI.
@@ -22,16 +23,17 @@ This quickstart describes the steps for creating a service connection in Azure A
22
23
23
24
## Initial set-up
24
25
25
-
1. If you're using Service Connector for the first time, start by running the command [az provider register](/cli/azure/provider#az-provider-register) to register the Service Connector resource provider.
26
+
1. If you're using Service Connector for the first time, run the command [az provider register](/cli/azure/provider#az-provider-register) to register the Service Connector resource provider.
26
27
27
28
```azurecli
28
29
az provider register -n Microsoft.ServiceLinker
29
30
```
30
31
31
32
> [!TIP]
32
-
> You can check if the resource provider has already been registered by running the command `az provider show -n "Microsoft.ServiceLinker" --query registrationState`. If the output is `Registered`, then Service Connector has already been registered.
33
+
> You can check if the resource provider is already registered by running the command `az provider show --name "Microsoft.ServiceLinker" --query registrationState`. If the output is `Registered`, then Service Connector is registered.
33
34
>
34
-
2. Optionally, use the Azure CLI [az webapp connection list-support-types](/cli/azure/webapp/connection#az-webapp-connection-list-support-types) command to get a list of supported target services for App Service.
35
+
36
+
1. Optionally, use the Azure CLI [az webapp connection list-support-types](/cli/azure/webapp/connection#az-webapp-connection-list-support-types) command to get a list of supported target services for App Service.
35
37
36
38
```azurecli
37
39
az webapp connection list-support-types --output table
@@ -42,9 +44,9 @@ This quickstart describes the steps for creating a service connection in Azure A
42
44
#### [Using a managed identity](#tab/Using-Managed-Identity)
43
45
44
46
> [!IMPORTANT]
45
-
> Using Managed Identity requires you have the permission to [Microsoft Entra role assignment](/entra/identity/role-based-access-control/manage-roles-portal). Without this permission, creating a connection will fail. You can ask your subscription owner to grant you this permission or use an access key to create the connection.
47
+
> Using Managed Identity requires you have the permission to [Microsoft Entra role assignment](/entra/identity/role-based-access-control/manage-roles-portal). Without this permission, creating a connection fails. You can ask your subscription owner to grant you this permission or use an access key to create the connection.
46
48
47
-
Use the Azure CLI [az webapp connection](/cli/azure/webapp/connection) command to create a service connection to a Blob Storage with a system-assigned Managed Identity, providing the following information:
49
+
Use the Azure CLI [az webapp connection](/cli/azure/webapp/connection) command to create a service connection to a Blob Storage with a system-assigned Managed Identity. Provide the following information:
48
50
49
51
- The name of the resource group that contains the App Service
50
52
- The name of the App Service
@@ -56,14 +58,14 @@ az webapp connection create storage-blob
56
58
```
57
59
58
60
> [!NOTE]
59
-
> If you don't have a Blob Storage, you can run `az webapp connection create storage-blob --new --system-identity` to provision a new Blob Storage resource and directly connected it to your App Service instance.
61
+
> If you don't have a Blob Storage, run `az webapp connection create storage-blob --new --system-identity` to provision a new Blob Storage resource and directly connected it to your App Service instance.
60
62
61
63
#### [Using an access key](#tab/Using-access-key)
62
64
63
65
> [!WARNING]
64
-
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
66
+
> Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application. It carries risks that aren't present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
65
67
66
-
Use the Azure CLI [az webapp connection create](/cli/azure/webapp/connection/create) command to create a service connection to an Azure Blob Storage with an access key, providing the following information:
68
+
Use the Azure CLI [az webapp connection create](/cli/azure/webapp/connection/create) command to create a service connection to an Azure Blob Storage with an access key. Provide the following information:
67
69
68
70
-**Source compute service resource group name:** the resource group name of the App Service.
69
71
-**App Service name:** the name of your App Service that connects to the target service.
@@ -90,9 +92,9 @@ Run the Azure CLI [az webapp connection](/cli/azure/webapp/connection) command t
90
92
az webapp connection list -g "<your-app-service-resource-group>" -n "<your-app-service-name>" --output table
91
93
```
92
94
93
-
## Next steps
95
+
## Related content
94
96
95
-
Follow the tutorials below to start building your own application with Service Connector.
97
+
Build your own application with Service Connector.
96
98
97
99
> [!div class="nextstepaction"]
98
100
> [Tutorial: WebApp + Storage with Azure CLI](./tutorial-csharp-webapp-storage-cli.md)
0 commit comments