Azure App Configuration App Configuration

This page shows how to write Terraform and Azure Resource Manager for App Configuration App Configuration and write them securely.

azurerm_app_configuration (Terraform)

The App Configuration in App Configuration can be configured in Terraform with the resource name azurerm_app_configuration. The following sections describe 10 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L6
resource "azurerm_app_configuration" "appconf" {
  name                = "safasfsdfsd"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  sku                 = "standard"

main.tf#L1
resource "azurerm_app_configuration" "module" {
  name                = var.app_config_name
  resource_group_name = var.rg_name
  location            = var.app_config_location

  sku  = var.app_config_sku
main.tf#L22
resource "azurerm_app_configuration" "appconf" {
  name                = "app-config-westus2"
  resource_group_name = azurerm_resource_group.rg.name
  location            = azurerm_resource_group.rg.location
  sku = "free"
}
main.tf#L5
resource "azurerm_app_configuration" "vh" {
  name                = var.resource_prefix
  resource_group_name = data.azurerm_resource_group.vh-core-infra.name
  location            = "uksouth"

  sku = local.sku
main.tf#L12
resource "azurerm_app_configuration" "halo" {
  name                = "haloproto"
  resource_group_name = azurerm_resource_group.halo.name
  location            = azurerm_resource_group.halo.location
  depends_on = [azurerm_resource_group.halo]
}
main.tf#L5
resource "azurerm_app_configuration" "vh" {
  name                = var.resource_prefix
  resource_group_name = data.azurerm_resource_group.vh-core-infra.name
  location            = "uksouth"

  sku = local.sku
main.tf#L6
resource "azurerm_app_configuration" "current" {
  name                    = var.name
  location                = data.azurerm_resource_group.current.location
  resource_group_name     = data.azurerm_resource_group.current.name
  tags                    = var.tags

main.tf#L7
resource "azurerm_app_configuration" "this" {
  location            = var.location
  name                = var.name
  resource_group_name = var.resource_group_name
  sku                 = var.sku
  tags                = var.tags
main.tf#L13
resource "azurerm_app_configuration" "this" {
  name                = local.resource_name
  resource_group_name = var.resource_group_name
  location            = var.region
  sku                 = var.sku
}
main.tf#L5
resource "azurerm_app_configuration" "vh" {
  name                = var.resource_group_name
  resource_group_name = data.azurerm_resource_group.vh-core-infra.name
  location            = var.location

  sku = "free"

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages an Azure App Configuration.

Microsoft.AppConfiguration/configurationStores (Azure Resource Manager)

The configurationStores in Microsoft.AppConfiguration can be configured in Azure Resource Manager with the resource name Microsoft.AppConfiguration/configurationStores. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
AzureInventory.json
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
        "workbookName": {
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
dash.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",
template.json
{
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workbookDisplayName": {
      "type": "string",

Parameters

  • apiVersion required - string
  • identity optional
      • type optional - string

        The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities.

      • userAssignedIdentities optional - undefined

        The list of user-assigned identities associated with the resource. The user-assigned identity dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

  • location required - string

    The location of the resource. This cannot be changed after the resource is created.

  • name required - string

    The name of the configuration store.

  • properties required
      • encryption optional
          • keyVaultProperties optional
              • identityClientId optional - string

                The client id of the identity which will be used to access key vault.

              • keyIdentifier optional - string

                The URI of the key vault key used to encrypt data.

      • publicNetworkAccess optional - string

        Control permission for data plane traffic coming from public networks while private endpoint is enabled.

  • sku required
      • name required - string

        The SKU name of the configuration store.

  • tags optional - string

    The tags of the resource.

  • type required - string

Frequently asked questions

What is Azure App Configuration App Configuration?

Azure App Configuration App Configuration is a resource for App Configuration of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure App Configuration App Configuration?

For Terraform, the timwebster9/azure-policy, jessewilk/terraform and TallesValiatti/AzureAppConfigIntro source code examples are useful. See the Terraform Example section for further details.

For Azure Resource Manager, the HasanIftakher/Azure-Monitor, tulpy/Azure and gaelor/SentinelAsCode source code examples are useful. See the Azure Resource Manager Example section for further details.