App Configuration Key-Values
This template creates an Azure App Configuration store, then creates two key-values inside the new store via a copy function. This can also deploy key-values that link to an Azure Key Vault.
Parameters
configStoreName
- type: string
- description: Specifies the name of the App Configuration store.
- required: true
location
- type: string
- description: Specifies the Azure location where the app configuration store should be created.
- required: false
keyData
- type: array
- description: Array of Objects that contain the key name, key value, label(s), tag(s) and contentType
- required: true
- breakdown:
- key: Name of the Key to be added to the App Configuration Store
- type: string
- required: true
- value: Value of the Key to be added to the App Configuration Store
- type: string
- required: false
- label: Label of of the Key to be added to the App Configuration Store. If multiple labels are wanted then an additional entry to the array is added.
- type: string
- required: false
- tag: Object containing the tag(s) of the Key to be added to the App Configuration Store.
- type: object
- required: false
- contentType: Content Type of the Key to be added to the App Configuration Store.
- type: string
- required: false
- key: Name of the Key to be added to the App Configuration Store
Notes
- Key Value Secret Key Entry
- keyData.key: This can be what you want it to be.
- keyData.value: Format should be https://{vault-name}.{vault-DNS-suffix}/secrets/{secret-name}/{secret-version}. Secret version is optional.
- keyData.contentType: Must be 'application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8'.
Reference Documentation
If you're new to App Configuration, see:
If you're new to template deployment, see:
- Azure Resource Manager documentation
- Quickstart: Create an Azure App Configuration store by using an ARM template
Tags: Azure4Student, AppConfiguration, Beginner, Microsoft.AppConfiguration/configurationStores, Microsoft.AppConfiguration/configurationStores/keyValues