Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"/" not allowed in the key for azurerm_app_configuration_key resource #13852

Closed
prdev89 opened this issue Oct 22, 2021 · 3 comments · Fixed by #13859
Closed

"/" not allowed in the key for azurerm_app_configuration_key resource #13852

prdev89 opened this issue Oct 22, 2021 · 3 comments · Fixed by #13859

Comments

@prdev89
Copy link

prdev89 commented Oct 22, 2021

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform (and AzureRM Provider) Version

Terraform version: 1.0.6
azurerm version: 2.82

Affected Resource(s)

  • azurerm_app_configuration_key

Terraform Configuration Files

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
    }
  }
}

provider "azurerm" {
  features {}
}

resource "azurerm_app_configuration" "appconf" {
  name                = "versonmap-automation"
  resource_group_name = "rg-version-map"
  location            = "westeurope"
  sku = "standard"
}

data "azurerm_client_config" "current" {}

resource "azurerm_role_assignment" "appconf_dataowner" {
  scope                = azurerm_app_configuration.appconf.id
  role_definition_name = "App Configuration Data Owner"
  principal_id         = data.azurerm_client_config.current.object_id
}

resource "azurerm_app_configuration_key" "test" {
  configuration_store_id = azurerm_app_configuration.appconf.id
  type  = "kv"
  key = "/addons/versionmaps/rdms/7.0.0"
  value = "1.0.0"

  depends_on = [azurerm_role_assignment.appconf_dataowner]
}

Debug Output

│ Error: the number of path segments is not divisible by 2 in "subscriptions/xx-xx-xx-xx/resourceGroups/rg-version-map/providers/Microsoft.AppConfiguration/configurationStores/versonmap-automation/AppConfigurationKey//addons/versionmaps/rdms/7.0.0/Label/\x00"

Panic Output

Expected Behaviour

From Azure portal I'm able to create a key in AppConfiguration with the forward slash "/". I would like to have similar feature in the resource azurerm_app_configuration_key

Actual Behaviour

Although the KV get created by the tf code, the apply fails with the error mentioned above. I thought terraform considers the forward slash as valid string and no need to escape it.

Steps to Reproduce

Apply the above the code.

@aristosvo
Copy link
Collaborator

hi @prdev89 I'll try some things out, will let you know soon!

@github-actions
Copy link

This functionality has been released in v2.83.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants