Skip to content

Commit a490e31

Browse files
committed
Creating new Bicep quickstart - Azure App Configuration
1 parent 4a60fb7 commit a490e31

File tree

3 files changed

+111
-1
lines changed

3 files changed

+111
-1
lines changed

articles/azure-app-configuration/TOC.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,12 @@
3737
href: quickstart-feature-flag-azure-functions-csharp.md
3838
- name: Java Spring
3939
href: quickstart-feature-flag-spring-boot.md
40+
- name: Bicep
41+
href: quickstart-bicep.md
42+
displayName: ARM, Resource Manager, Template
4043
- name: ARM template
4144
href: quickstart-resource-manager.md
42-
displayName: ARM, azure resource manager template
45+
displayName: Resource Manager
4346
- name: .NET App in Visual Studio
4447
href: /visualstudio/azure/vs-azure-tools-connected-services-app-configuration
4548
- name: Tutorials
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
title: Create an Azure App Configuration store using Bicep
3+
titleSuffix: Azure App Configuration
4+
description: Learn how to create an Azure App Configuration store using Bicep.
5+
author: schaffererin
6+
ms.author: v-eschaffer
7+
ms.date: 03/31/2022
8+
ms.service: azure-app-configuration
9+
ms.topic: quickstart
10+
ms.custom: subject-armqs, devx-track-azurepowershell, mode-arm
11+
---
12+
13+
# Quickstart: Create an Azure App Configuration store using Bicep
14+
15+
This quickstart describes how you can use Bicep to:
16+
17+
- Deploy an App Configuration store.
18+
- Create key-values in an App Configuration store.
19+
- Read key-values in an App Configuration store.
20+
21+
[!INCLUDE [About Bicep](../../includes/resource-manager-quickstart-bicep-introduction.md)]
22+
23+
## Prerequisites
24+
25+
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
26+
27+
## Review the Bicep file
28+
29+
The Bicep file used in this quickstart is from [Azure Quickstart Templates](https://azure.microsoft.com/resources/templates/app-configuration-store-kv/).
30+
31+
:::code language="bicep" source="~/quickstart-templates/quickstarts/microsoft.appconfiguration/app-configuration-store-kv/main.bicep":::
32+
33+
Two Azure resources are defined in the Bicep file:
34+
35+
- [Microsoft.AppConfiguration/configurationStores](/azure/templates/microsoft.appconfiguration/2020-07-01-preview/configurationstores): create an App Configuration store.
36+
- [Microsoft.AppConfiguration/configurationStores/keyValues](/azure/templates/microsoft.appconfiguration/2020-07-01-preview/configurationstores/keyvalues): create a key-value inside the App Configuration store.
37+
38+
## Deploy the Bicep file
39+
40+
1. Save the Bicep file as **main.bicep** to your local computer.
41+
1. Deploy the Bicep file using either Azure CLI or Azure PowerShell.
42+
43+
# [CLI](#tab/CLI)
44+
45+
```azurecli
46+
az group create --name exampleRG --location eastus
47+
az deployment group create --resource-group exampleRG --template-file main.bicep --parameters configStoreName=<store-name>
48+
```
49+
50+
# [PowerShell](#tab/PowerShell)
51+
52+
```azurepowershell
53+
New-AzResourceGroup -Name exampleRG -Location eastus
54+
New-AzResourceGroupDeployment -ResourceGroupName exampleRG -TemplateFile ./main.bicep -configStoreName "<store-name>"
55+
```
56+
57+
---
58+
59+
> [!NOTE]
60+
> Replace **\<store-name\>** with the name of the App Configuration store.
61+
62+
When the deployment finishes, you should see a message indicating the deployment succeeded.
63+
64+
## Review deployed resources
65+
66+
Use the Azure portal, Azure CLI, or Azure PowerShell to list the deployed resources in the resource group.
67+
68+
# [CLI](#tab/CLI)
69+
70+
```azurecli-interactive
71+
az resource list --resource-group exampleRG
72+
```
73+
74+
# [PowerShell](#tab/PowerShell)
75+
76+
```azurepowershell-interactive
77+
Get-AzResource -ResourceGroupName exampleRG
78+
```
79+
80+
---
81+
82+
## Clean up resources
83+
84+
When no longer needed, use the Azure portal, Azure CLI, or Azure PowerShell to delete the resource group and its resources.
85+
86+
# [CLI](#tab/CLI)
87+
88+
```azurecli-interactive
89+
az group delete --name exampleRG
90+
```
91+
92+
# [PowerShell](#tab/PowerShell)
93+
94+
```azurepowershell-interactive
95+
Remove-AzResourceGroup -Name exampleRG
96+
```
97+
98+
---
99+
100+
## Next steps
101+
102+
To learn about adding feature flag and Key Vault reference to an App Configuration store, check out the ARM template examples.
103+
104+
- [app-configuration-store-ff](https://azure.microsoft.com/resources/templates/app-configuration-store-ff/)
105+
- [app-configuration-store-keyvaultref](https://azure.microsoft.com/resources/templates/app-configuration-store-keyvaultref/)

articles/azure-resource-manager/bicep/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@
6565
href: ../../container-instances/container-instances-quickstart-bicep.md?toc=/azure/azure-resource-manager/bicep/toc.json
6666
- name: DevOps
6767
items:
68+
- name: App Configuration
69+
href: ../../azure-app-configuration/quickstart-bicep.md?toc=/azure/azure-resource-manager/bicep/toc.json
6870
- name: DevTest Labs
6971
href: ../../devtest-labs/create-lab-windows-vm-bicep.md?toc=/azure/azure-resource-manager/bicep/toc.json
7072
- name: Networking

0 commit comments

Comments
 (0)