Skip to content

Commit 6c8aabd

Browse files
Merge pull request #216354 from zhenlan/kvr
Update the Key Vault reference example
2 parents 09953f4 + fc6e038 commit 6c8aabd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/azure-app-configuration/concept-config-file.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: zhenlan
55
ms.author: zhenlwa
66
ms.service: azure-app-configuration
77
ms.topic: conceptual
8-
ms.date: 04/01/2022
8+
ms.date: 10/28/2022
99
---
1010

1111
# Azure App Configuration support for configuration files
@@ -46,16 +46,16 @@ Key Vault references require a particular content type during importing, so you
4646

4747
```json
4848
{
49-
"Database": {
50-
"ConnectionString": "{\"uri\":\"https://<your-vault-name>.vault.azure.net/secrets/db-secret\"}"
51-
}
49+
"Database:ConnectionString": {
50+
"uri": "https://<your-vault-name>.vault.azure.net/secrets/db-secret"
51+
}
5252
}
5353
```
5454

55-
Run the following CLI command to import it with the `test` label, the colon (`:`) separator, and the Key Vault reference content type.
55+
Run the following CLI command to import it with the `test` label and the Key Vault reference content type.
5656

5757
```azurecli-interactive
58-
az appconfig kv import --label test --separator : --content-type application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8 --name <your store name> --source file --path keyvault-refs.json --format json
58+
az appconfig kv import --label test --content-type application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8 --name <your store name> --source file --path keyvault-refs.json --format json
5959
```
6060

6161
The following table shows all the imported data in your App Configuration store.
@@ -64,7 +64,7 @@ The following table shows all the imported data in your App Configuration store.
6464
|---------|---------|---------|---------|
6565
| .appconfig.featureflag/Beta | {"id":"Beta","description":"","enabled":false,"conditions":{"client_filters":[]}} | dev | application/vnd.microsoft.appconfig.ff+json;charset=utf-8 |
6666
| Logging:LogLevel:Default | Warning | dev | |
67-
| Database:ConnectionString | "{\"uri\":\"https://\<your-vault-name\>.vault.azure.net/secrets/db-secret\"}" | test | application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8 |
67+
| Database:ConnectionString | {\"uri\":\"https://\<your-vault-name\>.vault.azure.net/secrets/db-secret\"} | test | application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8 |
6868

6969
## File content profile: KVSet
7070

@@ -124,7 +124,7 @@ The following table shows all the imported data in your App Configuration store.
124124
|---------|---------|---------|---------|
125125
| .appconfig.featureflag/Beta | {"id":"Beta","description":"Beta feature","enabled":**true**,"conditions":{"client_filters":[]}} | dev | application/vnd.microsoft.appconfig.ff+json;charset=utf-8 |
126126
| Logging:LogLevel:Default | **Debug** | dev | |
127-
| Database:ConnectionString | "{\"uri\":\"https://\<your-vault-name\>.vault.azure.net/secrets/db-secret\"}" | test | application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8 |
127+
| Database:ConnectionString | {\"uri\":\"https://\<your-vault-name\>.vault.azure.net/secrets/db-secret\"} | test | application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8 |
128128

129129
## Next steps
130130

0 commit comments

Comments
 (0)