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/azure-app-configuration/quickstart-azure-kubernetes-service.md
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ In this quickstart, you will incorporate Azure App Configuration Kubernetes Prov
32
32
>
33
33
34
34
## Create an application running in AKS
35
-
In this section, we present how to create an ASP.NET Core web application that consumes environment variables as configuration and run it in Azure Kubernetes Service. This part has nothing to do with Azure App Configuration or Azure App Configuration Kubernetes Provider, it just for demonstrating the end-to-end usage scenario of Azure App Configuration Kubernetes Provider later. If you already have an application that is consuming environment variables as configuration in Kubernetes, you can just skip this and go to [Use App Configuration Kubernetes Provider](#use-app-configuration-kubernetes-provider).
35
+
In this section, it creates an ASP.NET Core web application that consumes environment variables as configuration and run it in Azure Kubernetes Service. This section has nothing to do with Azure App Configuration or Azure App Configuration Kubernetes Provider, it just for demonstrating the end-to-end usage scenario of Azure App Configuration Kubernetes Provider later. If you already have an application that is consuming environment variables in Kubernetes, you can just skip it and go to [Use App Configuration Kubernetes Provider](#use-app-configuration-kubernetes-provider).
36
36
### Create an application
37
-
1. Use the .NET Core command-line interface (CLI) to create a new ASP.NET Core web app project. Run the following command to create an ASP.NET Core web app in a new TestAppConfig folder:
37
+
1. Use the .NET Core command-line interface (CLI) to create a new ASP.NET Core web app project. Run the following command to create an ASP.NET Core web app in a new MyWebApp folder:
38
38
```dotnetcli
39
39
dotnet new webapp --output MyWebApp --framework net6.0
40
40
```
@@ -167,16 +167,19 @@ In this section, we present how to create an ASP.NET Core web application that c
167
167
168
168
1. Open a browser window, use the External IP of the service you get in previous step to visit the app. Your browser should display a page similar to the image below.
169
169
170
-

170
+

171
171
172
172
## Use App Configuration Kubernetes Provider
173
173
### Configure the Azure App Configuration store
174
-
1. Add the key-values to your Azure App Configuration that should be consumed as environment variables by your application. We're just using key-values that be consumed by `MyWebApp` as an example, add following key-values to the App Configuration store and leave **Label** and **Content Type** with their default values. For more information about how to add key-values to a store using the Azure portal or the CLI, go to [Create a key-value](./quickstart-azure-app-configuration-create.md#create-a-key-value).
175
-
174
+
1. Add following key-values to the App Configuration store and leave **Label** and **Content Type** with their default values. For more information about how to add key-values to a store using the Azure portal or the CLI, go to [Create a key-value](./quickstart-azure-app-configuration-create.md#create-a-key-value).
175
+
176
176
|**Key**|**Value**|
177
177
|---|---|
178
178
|Settings__FontColor|*Green*|
179
179
|Settings__Message|*Hello from Azure App Configuration*|
180
+
181
+
> [!TIP]
182
+
> This step adds the key-values to Azure App Configuration that is supposed to be consumed by the application. We're just using application `MyWebApp` as an example. If you are using your own application, you can add the key-values that are required by your application accordingly.
180
183
181
184
1. Enable System Assigned Managed Identity of AKS NodePool
182
185
@@ -238,15 +241,14 @@ In this section, we present how to create an ASP.NET Core web application that c
238
241
name: demo-configmap
239
242
```
240
243
241
-
1. Apply the updated *deployment.yaml* to the AKS cluster
244
+
1. Apply the updated *deployment.yaml* to the AKS cluster.
Refresh the browser, the page shows with updated content.
249
+
1. Refresh the browser, can see the page has been updated based on the configuration from App Configuration.
248
250
249
-

251
+

250
252
251
253
### Validation and troubleshooting
252
254
A configMap *demo-configmap* is supposed to be created in the *quickstart-appconfig* namespace by the Azure App Configuration Kubernetes Provider.
@@ -265,13 +267,15 @@ kubectl get AppConfigurationProvider appconfigurationprovider-sample -n quicksta
265
267
>```
266
268
>
267
269
270
+
If you see the error message in log with information *RESPONSE 403: 403 Forbidden*, it means that the system-assigned managed identity of AKS node pool does not have the permission to access the App Configuration store. You need to grant the permission to the managed identity by following the instructions in this [doc](/azure/azure-app-configuration/howto-integrate-azure-managed-service-identity?tabs=core5x&pivots=framework-dotnet#grant-access-to-app-configuration). If you have assigned the permission, you can waitfor up to 15 minutes for the permission to take effect.
271
+
268
272
## Clean up resources
269
-
1. Remove the resources that have been deployed to AKS
273
+
1. Remove the resources that have been deployed to AKS.
0 commit comments