Compartir a través de


Microsoft.AppConfiguration configurationStores/keyValues 2023-08-01-preview

Bicep resource definition

The configurationStores/keyValues resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.AppConfiguration/configurationStores/keyValues resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.AppConfiguration/configurationStores/keyValues@2023-08-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    contentType: 'string'
    tags: {
      {customized property}: 'string'
    }
    value: 'string'
  }
}

Property values

KeyValueProperties

Name Description Value
contentType The content type of the key-value's value.
Providing a proper content-type can enable transformations of values when they are retrieved by applications.
string
tags A dictionary of tags that can help identify what a key-value may be applicable for. KeyValuePropertiesTags
value The value of the key-value. string

KeyValuePropertiesTags

Name Description Value

Microsoft.AppConfiguration/configurationStores/keyValues

Name Description Value
name The resource name string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: configurationStores
properties All key-value properties. KeyValueProperties

Quickstart samples

The following quickstart samples deploy this resource type.

Bicep File Description
Create an App Configuration Store with Feature Flag This template creates a new Azure App Configuration store with one feature flag.
Create an App Configuration Store with Feature Flag This template creates a new Azure App Configuration store with one Key Vault reference.
Create an App Configuration Store with Outputs This template creates a new Azure App Configuration store with two key-values.

ARM template resource definition

The configurationStores/keyValues resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.AppConfiguration/configurationStores/keyValues resource, add the following JSON to your template.

{
  "type": "Microsoft.AppConfiguration/configurationStores/keyValues",
  "apiVersion": "2023-08-01-preview",
  "name": "string",
  "properties": {
    "contentType": "string",
    "tags": {
      "{customized property}": "string"
    },
    "value": "string"
  }
}

Property values

KeyValueProperties

Name Description Value
contentType The content type of the key-value's value.
Providing a proper content-type can enable transformations of values when they are retrieved by applications.
string
tags A dictionary of tags that can help identify what a key-value may be applicable for. KeyValuePropertiesTags
value The value of the key-value. string

KeyValuePropertiesTags

Name Description Value

Microsoft.AppConfiguration/configurationStores/keyValues

Name Description Value
apiVersion The api version '2023-08-01-preview'
name The resource name string (required)
properties All key-value properties. KeyValueProperties
type The resource type 'Microsoft.AppConfiguration/configurationStores/keyValues'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
App Configuration Key-Values

Deploy to Azure
This template creates a new Azure App Configuration store with three key-values controlled by a copy function.
App Configuration with VM

Deploy to Azure
This template references existing key-value configurations from an existing config store and uses retrieved values to set properties of the resources the template creates.
Create an App Configuration Store with Feature Flag

Deploy to Azure
This template creates a new Azure App Configuration store with one feature flag.
Create an App Configuration Store with Feature Flag

Deploy to Azure
This template creates a new Azure App Configuration store with one Key Vault reference.
Create an App Configuration Store with Outputs

Deploy to Azure
This template creates a new Azure App Configuration store with two key-values.

Terraform (AzAPI provider) resource definition

The configurationStores/keyValues resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.AppConfiguration/configurationStores/keyValues resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AppConfiguration/configurationStores/keyValues@2023-08-01-preview"
  name = "string"
  body = jsonencode({
    properties = {
      contentType = "string"
      tags = {
        {customized property} = "string"
      }
      value = "string"
    }
  })
}

Property values

KeyValueProperties

Name Description Value
contentType The content type of the key-value's value.
Providing a proper content-type can enable transformations of values when they are retrieved by applications.
string
tags A dictionary of tags that can help identify what a key-value may be applicable for. KeyValuePropertiesTags
value The value of the key-value. string

KeyValuePropertiesTags

Name Description Value

Microsoft.AppConfiguration/configurationStores/keyValues

Name Description Value
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: configurationStores
properties All key-value properties. KeyValueProperties
type The resource type "Microsoft.AppConfiguration/configurationStores/keyValues@2023-08-01-preview"