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
Run `az login` to sign in to and follow these steps to create an App Service and deploy the sample app. Make sure you have the Subscription Contributor role.
52
51
53
52
### [SMI](#tab/smi)
@@ -70,7 +69,7 @@ Start by creating your Azure resources.
| Location | Choose a location near you. Use `az account list-locations --output table` to list locations. |*eastus*|
73
-
| Resource group name | You will use this resource group to organize all the Azure resources needed to complete this tutorial. |*service-connector-tutorial-rg*|
72
+
| Resource group name | You'll use this resource group to organize all the Azure resources needed to complete this tutorial. | *service-connector-tutorial-rg* |
74
73
| App service name | The app service name is used as the name of the resource in Azure and to form the fully qualified domain name for your app, in the form of the server endpoint `https://<app-service-name>.azurewebsites.com`. This name must be unique across all Azure and the only allowed characters are `A`-`Z`, `0`-`9`, and `-`. | *webapp-appconfig-smi* |
75
74
76
75
### [UMI](#tab/umi)
@@ -93,10 +92,10 @@ Start by creating your Azure resources.
| Location | Choose a location near you. Use `az account list-locations --output table` to list locations. | *eastus* |
96
-
| Resource group name | You will use this resource group to organize all the Azure resources needed to complete this tutorial. |*service-connector-tutorial-rg*|
95
+
| Resource group name | You'll use this resource group to organize all the Azure resources needed to complete this tutorial. |*service-connector-tutorial-rg*|
97
96
| App service name | The app service name is used as the name of the resource in Azure and to form the fully qualified domain name foryour app,in the form of the server endpoint `https://<app-service-name>.azurewebsites.com`. This name must be unique across all Azure and the only allowed characters are `A`-`Z`, `0`-`9`, and `-`. |*webapp-appconfig-umi*|
98
97
99
-
Create a user-assigned managed idendity. Save the output into a temporary notepad.
98
+
Create a user-assigned managed identity. Save the output into a temporary notepad.
100
99
```azurecli
101
100
az identity create --resource-group $RESOURCE_GROUP_NAME -n "myIdentity"
102
101
```
@@ -121,18 +120,18 @@ Start by creating your Azure resources.
| Location | Choose a location near you. Use `az account list-locations --output table` to list locations. |*eastus*|
124
-
| Resource group name | You will use this resource group to organize all the Azure resources needed to complete this tutorial. |*service-connector-tutorial-rg*|
123
+
| Resource group name | You'll use this resource group to organize all the Azure resources needed to complete this tutorial. | *service-connector-tutorial-rg* |
125
124
| App service name | The app service name is used as the name of the resource in Azure and to form the fully qualified domain name for your app, in the form of the server endpoint `https://<app-service-name>.azurewebsites.com`. This name must be unique across all Azure and the only allowed characters are `A`-`Z`, `0`-`9`, and `-`. | *webapp-appconfig-sp* |
126
125
127
-
Create a service pricipal, make sure replace the `yourSubscriptionID` with your actual subscription ID. Save the output into a temporary notepad.
126
+
Create a service principal, make sure to replace the `yourSubscriptionID` with your actual subscription ID. Save the output into a temporary notepad.
128
127
129
128
```azurecli
130
129
az ad sp create-for-rbac --name myServicePrincipal --role Contributor --scopes /subscriptions/{yourSubscriptionID}/resourceGroups/$RESOURCE_GROUP_NAME
131
130
```
132
131
133
132
### [Connection string](#tab/connectionstring)
134
133
135
-
Create an app service and deploy the sample app that uses connection string to interact with App Config..
134
+
Create an app service and deploy the sample app that uses connection string to interact with App Config.
136
135
137
136
```azurecli
138
137
# Change directory to the service principal sample
@@ -150,10 +149,10 @@ Start by creating your Azure resources.
| Location | Choose a location near you. Use `az account list-locations --output table` to list locations. | *eastus* |
153
-
| Resource group name | You will use this resource group to organize all the Azure resources needed to complete this tutorial. |*service-connector-tutorial-rg*|
152
+
| Resource group name | You'll use this resource group to organize all the Azure resources needed to complete this tutorial. |*service-connector-tutorial-rg*|
154
153
| App service name | The app service name is used as the name of the resource in Azure and to form the fully qualified domain name foryour app,in the form of the server endpoint `https://<app-service-name>.azurewebsites.com`. This name must be unique across all Azure and the only allowed characters are `A`-`Z`, `0`-`9`, and `-`. |*webapp-appconfig-cs*|
155
154
156
-
---
155
+
---
157
156
158
157
1. Create an Azure App Configuration store
159
158
@@ -209,7 +208,7 @@ Start by creating your Azure resources.
@@ -281,7 +280,7 @@ Service Connector manages the connection configuration for you:
281
280
282
281
Service Connector manages the connection configuration for you:
283
282
284
-
- Setup the web app's `AZURE_APPCONFIGURATION_ENDPOINT`, `AZURE_APPCONFIGURATION_CLIENTID`
283
+
- Set up the web app's `AZURE_APPCONFIGURATION_ENDPOINT`, `AZURE_APPCONFIGURATION_CLIENTID`
285
284
to let the application access it and get app configuration endpoint in [code](https://github.com/Azure-Samples/serviceconnector-webapp-appconfig-dotnet/blob/main/user-assigned-managed-identity/ServiceConnectorSample/Program.cs#L10-L12);
286
285
- Activate the web app's user-assigned managed authentication and grant App Configuration a Data Reader role to let the application authenticate to the App Configuration using DefaultAzureCredential from Azure.Identity. Access [sample code](https://github.com/Azure-Samples/serviceconnector-webapp-appconfig-dotnet/blob/main/user-assigned-managed-identity/ServiceConnectorSample/Program.cs#L16).
0 commit comments