Skip to content

Commit 0a87bec

Browse files
committed
Review initial set-up
1 parent 1248b97 commit 0a87bec

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

articles/service-connector/quickstart-cli-app-service-connection.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: maud-lv
55
ms.author: malev
66
ms.service: service-connector
77
ms.topic: quickstart
8-
ms.date: 09/15/2022
8+
ms.date: 04/13/2023
99
ms.devlang: azurecli
1010
ms.custom: event-tier1-build-2022
1111
---
@@ -22,18 +22,27 @@ The [Azure CLI](/cli/azure) is a set of commands used to create and manage Azure
2222

2323
- This quickstart assumes that you already have at least an App Service running on Azure. If you don't have an App Service, [create one](../app-service/quickstart-dotnetcore.md).
2424

25-
## View supported target service types
25+
## Initial set-up
2626

27-
Use the Azure CLI [az webapp connection list](/cli/azure/webapp/connection#az-webapp-connection-list) command to get a list of supported target services for App Service.
27+
1. Register the Service Connector resource provider by running the following command:
2828

29-
```azurecli-interactive
30-
az provider register -n Microsoft.ServiceLinker
31-
az webapp connection list-support-types --output table
32-
```
29+
```azurecli
30+
az provider register -n Microsoft.ServiceLinker
31+
```
32+
33+
> [!TIP]
34+
> You can check if you've already registered the resource provider with the command `az provider show -n "Microsoft.ServiceLinker" --query registrationState`. If the output is `Registered`, then Service Connector has already been registered.
35+
36+
37+
1. Optionally, use the Azure CLI [az webapp connection list](/cli/azure/webapp/connection#az-webapp-connection-list) command to get a list of supported target services for App Service.
3338
39+
```azurecli
40+
az webapp connection list-support-types --output table
41+
```
42+
3443
## Create a service connection
3544
36-
#### [Using Access Key](#tab/Using-access-key)
45+
#### [Using an access key](#tab/Using-access-key)
3746
3847
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:
3948
@@ -42,14 +51,14 @@ Use the Azure CLI [az webapp connection create](/cli/azure/webapp/connection/cre
4251
- **Target service resource group name:** the resource group name of the Blob Storage.
4352
- **Storage account name:** the account name of your Blob Storage.
4453
45-
```azurecli-interactive
54+
```azurecli
4655
az webapp connection create storage-blob --secret
4756
```
4857

4958
> [!NOTE]
5059
> If you don't have a Blob Storage, you can run `az webapp connection create storage-blob --new --secret` to provision a new one and directly get connected to your app service.
5160
52-
#### [Using Managed Identity](#tab/Using-Managed-Identity)
61+
#### [Using a managed identity](#tab/Using-Managed-Identity)
5362

5463
> [!IMPORTANT]
5564
> Using Managed Identity requires you have the permission to [Azure AD role assignment](../active-directory/managed-identities-azure-resources/howto-assign-access-portal.md). If you don't have the permission, your connection creation would fail. You can ask your subscription owner for the permission or using access key to create the connection.
@@ -61,7 +70,7 @@ Use the Azure CLI [az webapp connection](/cli/azure/webapp/connection) command t
6170
- **Target service resource group name:** the resource group name of the Blob Storage.
6271
- **Storage account name:** the account name of your Blob Storage.
6372

64-
```azurecli-interactive
73+
```azurecli
6574
az webapp connection create storage-blob --system-identity
6675
```
6776

@@ -77,7 +86,7 @@ Use the Azure CLI [az webapp connection](/cli/azure/webapp/connection) command t
7786
- **Source compute service resource group name:** the resource group name of the App Service.
7887
- **App Service name:** the name of your App Service that connects to the target service.
7988

80-
```azurecli-interactive
89+
```azurecli
8190
az webapp connection list -g "<your-app-service-resource-group>" -n "<your-app-service-name>" --output table
8291
```
8392

0 commit comments

Comments
 (0)