hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.65k forks source link

Support for Azure App Configuration - Geo Replication #21634

Closed 4865783a5d closed 1 year ago

4865783a5d commented 1 year ago

Is there an existing issue for this?

Community Note

Description

Azure App Configuration supports geo-replication (https://learn.microsoft.com/en-us/azure/azure-app-configuration/howto-geo-replication) which is currently not supported by https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/app_configuration.html (V3.54)

Replicas API: https://learn.microsoft.com/en-us/rest/api/appconfiguration/stable/replicas/create?tabs=HTTP

New or Affected Resource(s)/Data Source(s)

azurerm_app_configuration

Potential Terraform Configuration

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_resource_group" "example1" {
  name     = "example-resources1"
  location = "North Europe"
}

resource "azurerm_resource_group" "example2" {
  name     = "example-resources2"
  location = "East US"
}

resource "azurerm_app_configuration" "appconf" {
  name                = "appConf1"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
}

resource "azurerm_app_configuration_replica" "replica1" {
  name = "appConfgReplica1"
  resource_group_name = azurerm_resource_group.example1.name
  location            = azurerm_resource_group.example1.location

  config_store_name = azurerm_app_configuration.appconf.name

  tags = {
    workload = "replica 1" 
  }
}

resource "azurerm_app_configuration_replica" "replica2" {
  name = "appConfgReplica2"
  resource_group_name = azurerm_resource_group.example2.name
  location            = azurerm_resource_group.example2.location

  config_store_name = azurerm_app_configuration.appconf.name

  tags = {
    workload = "replica 2"
  }
}

References

https://learn.microsoft.com/en-us/azure/azure-app-configuration/howto-geo-replication https://learn.microsoft.com/en-us/rest/api/appconfiguration/stable/replicas/create?tabs=HTTP

github-actions[bot] commented 6 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.