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

azurerm_storage_container: name does not support "$root" #8763

Closed
joaocc opened this issue Sep 10, 2016 · 1 comment · Fixed by #9813
Closed

azurerm_storage_container: name does not support "$root" #8763

joaocc opened this issue Sep 10, 2016 · 1 comment · Fixed by #9813

Comments

@joaocc
Copy link
Contributor

joaocc commented Sep 10, 2016

Terraform Version

Terraform v0.7.3

Affected Resource(s)

  • azurerm_storage_container

Terraform Configuration Files

resource "azurerm_resource_group" "this_rg" {
    name     = "my_rg_51BD"

    location = "North Europe"

    tags {
        environment = "dev"
    }
}
resource "azurerm_storage_account" "this_store" {

    name = "my_acct_StZbxW0k8eR"
    resource_group_name = "${azurerm_resource_group.this_rg.name}"

    location = "North Europe"
    account_type = "Standard_GRS"

    tags {
        environment = "dev"
    }
}
resource "azurerm_storage_container" "this_store_root" {
    name = "$root"
    resource_group_name  = "${azurerm_resource_group.this_rg.resource_group_name}"
    storage_account_name = "${azurerm_storage_account.this_store.name}"
    container_access_type = "blob"
}

Expected Behavior

A container with name "$root" should have been created, as per the link below
https://msdn.microsoft.com/en-us/library/azure/hh488356.aspx

Actual Behavior

terraform plan -detailed-exitcode /opt/src/tf/tf-jnISzGdN8Sjc0keGxtEm
There are warnings and/or errors related to your configuration. Please
fix these before continuing.

Errors:

  • azurerm_storage_container.this_store_root: only lowercase alphanumeric characters and hyphens allowed in "name": "$root"

Steps to Reproduce

terraform plan

pmcatominey pushed a commit to BedeGaming/terraform that referenced this issue Nov 2, 2016
Fixes hashicorp#8763

TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMStorageContainer -timeout 120m
=== RUN   TestAccAzureRMStorageContainer_basic
--- PASS: TestAccAzureRMStorageContainer_basic (131.40s)
=== RUN   TestAccAzureRMStorageContainer_disappears
--- PASS: TestAccAzureRMStorageContainer_disappears (126.20s)
=== RUN   TestAccAzureRMStorageContainer_root
--- PASS: TestAccAzureRMStorageContainer_root (125.98s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/azurerm	383.661s
stack72 pushed a commit that referenced this issue Nov 2, 2016
…9813)

Fixes #8763

TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMStorageContainer -timeout 120m
=== RUN   TestAccAzureRMStorageContainer_basic
--- PASS: TestAccAzureRMStorageContainer_basic (131.40s)
=== RUN   TestAccAzureRMStorageContainer_disappears
--- PASS: TestAccAzureRMStorageContainer_disappears (126.20s)
=== RUN   TestAccAzureRMStorageContainer_root
--- PASS: TestAccAzureRMStorageContainer_root (125.98s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/azurerm	383.661s
gusmat pushed a commit to gusmat/terraform that referenced this issue Dec 6, 2016
…ashicorp#9813)

Fixes hashicorp#8763

TF_ACC=1 go test ./builtin/providers/azurerm -v -run TestAccAzureRMStorageContainer -timeout 120m
=== RUN   TestAccAzureRMStorageContainer_basic
--- PASS: TestAccAzureRMStorageContainer_basic (131.40s)
=== RUN   TestAccAzureRMStorageContainer_disappears
--- PASS: TestAccAzureRMStorageContainer_disappears (126.20s)
=== RUN   TestAccAzureRMStorageContainer_root
--- PASS: TestAccAzureRMStorageContainer_root (125.98s)
PASS
ok  	github.com/hashicorp/terraform/builtin/providers/azurerm	383.661s
@ghost
Copy link

ghost commented Apr 20, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 20, 2020
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.

2 participants