Skip to content

Commit f335646

Browse files
Introduce AZD template in K8s provider quickstart
1 parent 9a97bb6 commit f335646

File tree

1 file changed

+25
-6
lines changed

1 file changed

+25
-6
lines changed

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

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.service: azure-app-configuration
77
ms.devlang: csharp
88
ms.custom: devx-track-csharp, mode-other
99
ms.topic: quickstart
10-
ms.date: 02/20/2024
10+
ms.date: 04/24/2024
1111
ms.author: junbchen
1212
#Customer intent: As an Azure Kubernetes Service user, I want to manage all my app settings in one place using Azure App Configuration.
1313
---
@@ -20,6 +20,25 @@ A ConfigMap can be consumed as environment variables or a mounted file. In this
2020

2121
> [!TIP]
2222
> See [options](./howto-best-practices.md#azure-kubernetes-service-access-to-app-configuration) for workloads hosted in Kubernetes to access Azure App Configuration.
23+
>
24+
25+
> [!NOTE]
26+
> You could use [Azure Developer CLI](/azure/developer/azure-developer-cli/install-azd) to run the [azure-appconfig-aks](https://github.com/Azure-Samples/azure-appconfig-aks) template to quickly set up what this quickstart demonstrates from scratch:
27+
>
28+
> 1. Run the `azd init` command with the `azure-appconfig-aks` template:
29+
>
30+
> ``` azd
31+
> azd init -t azure-appconfig-aks
32+
> ```
33+
>
34+
> 2. Run the `azd up` command to deploy the resources:
35+
>
36+
> ``` azd
37+
> azd up
38+
> ```
39+
>
40+
> Going through the following detailed steps in this quickstart manually provides a better understanding of how the Azure App Configuration Kubernetes Provider works.
41+
>
2342
2443
## Prerequisites
2544
@@ -32,10 +51,6 @@ A ConfigMap can be consumed as environment variables or a mounted file. In this
3251
* [helm](https://helm.sh/docs/intro/install/)
3352
* [kubectl](https://kubernetes.io/docs/tasks/tools/)
3453
35-
> [!TIP]
36-
> The Azure Cloud Shell is a free, interactive shell that you can use to run the command line instructions in this article. It has common Azure tools preinstalled, including the .NET Core SDK. If you're logged in to your Azure subscription, launch your [Azure Cloud Shell](https://shell.azure.com) from shell.azure.com. You can learn more about Azure Cloud Shell by [reading our documentation](../cloud-shell/overview.md)
37-
>
38-
3954
## Create an application running in AKS
4055
4156
In this section, you will create a simple ASP.NET Core web application running in Azure Kubernetes Service (AKS). The application reads configuration from a local JSON file. In the next section, you will enable it to consume configuration from Azure App Configuration without changing the application code. If you already have an AKS application that reads configuration from a file, skip this section and go to [Use App Configuration Kubernetes Provider](#use-app-configuration-kubernetes-provider). You only need to ensure the configuration file generated by the provider matches the file path used by your application.
@@ -306,7 +321,7 @@ Add following key-values to the App Configuration store and leave **Label** and
306321
307322
![Screenshot showing Kubernetes Provider after using configMap.](./media/quickstarts/kubernetes-provider-app-launch-after.png)
308323
309-
### Troubleshooting
324+
## Troubleshooting
310325
311326
If you don't see your application picking up the data from your App Configuration store, run the following command to validate that the ConfigMap is created properly.
312327
@@ -353,6 +368,10 @@ helm uninstall azureappconfiguration.kubernetesprovider --namespace azappconfig-
353368

354369
[!INCLUDE[Azure App Configuration cleanup](../../includes/azure-app-configuration-cleanup.md)]
355370

371+
> [!NOTE]
372+
> If you use the Azure Developer CLI to set up the resources, you can run the `azd down` command to delete all resources created by the `azure-appconfig-aks` template.
373+
>
374+
356375
## Next steps
357376

358377
In this quickstart, you:

0 commit comments

Comments
 (0)