Skip to content

Commit b843e54

Browse files
resolve build warning
1 parent ef1b8bf commit b843e54

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

articles/azure-app-configuration/quickstart-azure-kubernetes-service.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ In this quickstart, you will incorporate Azure App Configuration Kubernetes Prov
3232
>
3333
3434
## 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).
3636
### 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:
3838
``` dotnetcli
3939
dotnet new webapp --output MyWebApp --framework net6.0
4040
```
@@ -167,16 +167,19 @@ In this section, we present how to create an ASP.NET Core web application that c
167167
168168
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.
169169
170-
![Kubernetes Provider after using configMap ](./media/quickstarts/kubernetes-provider-app-launch-before.png)
170+
![Kubernetes Provider before using configMap ](./media/quickstarts/kubernetes-provider-app-launch-before.png)
171171
172172
## Use App Configuration Kubernetes Provider
173173
### 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+
176176
|**Key**|**Value**|
177177
|---|---|
178178
|Settings__FontColor|*Green*|
179179
|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.
180183
181184
1. Enable System Assigned Managed Identity of AKS NodePool
182185
@@ -238,15 +241,14 @@ In this section, we present how to create an ASP.NET Core web application that c
238241
name: demo-configmap
239242
```
240243
241-
1. Apply the updated *deployment.yaml* to the AKS cluster
244+
1. Apply the updated *deployment.yaml* to the AKS cluster.
242245
``` bash
243246
kubectl apply -f ./deployment.yaml -n quickstart-appconfig
244247
```
245248
246-
### Reload the application
247-
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.
248250
249-
![Kubernetes Provider after using configMap ](./media/quickstarts/kubernetes-provider-app-launch-after.png)
251+
![Kubernetes Provider after using configMap ](./media/quickstarts/kubernetes-provider-app-launch-after.png)
250252
251253
### Validation and troubleshooting
252254
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
265267
> ```
266268
>
267269
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 wait for up to 15 minutes for the permission to take effect.
271+
268272
## 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.
270274
``` bash
271275
kubectl delete -f ./AKS-AppConfiguration-Demo -n quickstart-appconfig
272276
kubectl delete namespace quickstart-appconfig
273277
```
274-
1. Uninstall the Azure App Configuration Kubernetes Provider
278+
1. Uninstall the Azure App Configuration Kubernetes Provider.
275279
``` bash
276280
helm uninstall azureappconfiguration.kubernetesprovider --namespace azappconfig-system
277281
```

0 commit comments

Comments
 (0)