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

Cant create azurerm_storage_share_directory with any upper-case #4165

Closed
gabrielmcf opened this issue Aug 27, 2019 · 2 comments · Fixed by #4178
Closed

Cant create azurerm_storage_share_directory with any upper-case #4165

gabrielmcf opened this issue Aug 27, 2019 · 2 comments · Fixed by #4178

Comments

@gabrielmcf
Copy link

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
Terraform v0.12.7
+ provider.azurerm v1.33.1

Affected Resource(s)

  • azurerm_storage_share_directory

Terraform Configuration Files

terraform {
  required_version = ">= 0.12.1"
}

provider "azurerm" {
  version = ">= 1.32.0"
}

variable "share_directories" {
  type = list(string)
  default = ["Behaviour"]
}

resource "azurerm_resource_group" "rg" {
  name     = "group-rg"
  location = "eastus"
}

resource "azurerm_storage_account" "storage-account" {
  name                     = "testomnidatabricks"
  resource_group_name      = "group-rg"
  location                 = "eastus"
  account_tier             = "Standard"
  account_replication_type = "LRS"
  account_kind = "StorageV2"
}

resource "azurerm_storage_share_directory" "omni-share-directory" {
  for_each             = toset(var.share_directories)
  name                 = "${each.value}"
  share_name           = "search"
  storage_account_name = "${azurerm_storage_account.storage-account.name}"
}

Panic Output

Error: name must contain only lowercase alphanumeric characters, numbers and hyphens. It must start and end with a letter and end only with a number or letter

  on main.tf line 29, in resource "azurerm_storage_share_directory" "omni-share-directory":
  29: resource "azurerm_storage_share_directory" "omni-share-directory" {

Expected Behavior

It should have created a resource group group-rg, a storage account test-omnidatabricks and a storage share named search and a directory of namd Behaviour

Actual Behavior

It says the directory can not have upper case. But in Azure portal it can have upper case without any problem.

Steps to Reproduce

  1. terraform init
  2. terraform plan
@nexxai
Copy link
Contributor

nexxai commented Aug 28, 2019

Submitted PR: #4178

@ghost
Copy link

ghost commented Sep 28, 2019

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants