Skip to content

Commit 44d157c

Browse files
Add connection string reference
1 parent b206d3a commit 44d157c

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

articles/azure-app-configuration/reference-kubernetes-provider.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ The following reference outlines the properties supported by the Azure App Confi
1616

1717
## Properties
1818

19-
An `AzureAppConfigurationProvider` resource has the following top-level child properties under the `spec`.
19+
An `AzureAppConfigurationProvider` resource has the following top-level child properties under the `spec`. Either `endpoint` or `connectionStringReference` has to be specified.
2020

2121
|Name|Description|Required|Type|
2222
|---|---|---|---|
23-
|endpoint|The endpoint of Azure App Configuration, which you would like to retrieve the key-values from|true|string|
23+
|endpoint|The endpoint of Azure App Configuration, which you would like to retrieve the key-values from|alternative|string|
24+
|connectionStringReference|The name of the Kubernetes Secret that contains Azure App Configuration connection string|alternative|string|
2425
|target|The destination of the retrieved key-values in Kubernetes|true|object|
2526
|auth|The authentication method to access Azure App Configuration|false|object|
2627
|keyValues|The settings for querying and processing key-values|false|object|
@@ -158,6 +159,22 @@ The `spec.keyValues.refresh.monitoring.keyValues` is an array of objects, which
158159
servicePrincipalReference: <your-service-principal-secret-name>
159160
```
160161

162+
#### Use Connection String
163+
164+
1. Create a Kubernetes Secret in the same namespace as the `AzureAppConfigurationProvider` resource and add Azure App Configuration connection string with key *azure_app_configuration_connection_string* in the Secret.
165+
2. Set the `spec.connectionStringReference` property to the name of the Secret in the following sample `AzureAppConfigurationProvider` resource and deploy it to the Kubernetes cluster.
166+
167+
``` yaml
168+
apiVersion: azconfig.io/v1beta1
169+
kind: AzureAppConfigurationProvider
170+
metadata:
171+
name: appconfigurationprovider-sample
172+
spec:
173+
connectionStringReference: <your-connection-string-secret-name>
174+
target:
175+
configMapName: configmap-created-by-appconfig-provider
176+
```
177+
161178
### Key-value selection
162179

163180
Use the `selectors` property to filter the key-values to be downloaded from Azure App Configuration.

0 commit comments

Comments
 (0)