You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I can't provide this due to company policy. And it's irrelevant; I already found the issue. Please see the "important factoids" section.
Panic Output
No panics! 🍺 🍻
Expected Behavior
The terraform plan command should output a plan where the name of the azurerm_databricks_workspace resource is x-example-dbw. The use case here is that my organization wants to prefix the resources with single-letter codes.
Actual Behavior
Error: "name" first, second, and last characters must be a letter or number
on REDACTED.tf line 42, in resource "azurerm_databricks_workspace" "dbw":
42: resource "azurerm_databricks_workspace" "dbw" {
Steps to Reproduce
terraform apply the configuration code given above.
Important Factoids
The Azure Portal shows the following validation criteria:
The workspace name is required
The value must have a length of at least 3.
The value must have a length of at most 30.
Only alphanumeric characters, underscores, and hyphens are allowed, and the name must be 1-30 characters long.
However, the current ValidateDatabricksWorkspaceName implementation has a regex that requires the first two characters to be
alphanumeric. This is not a restriction in Azure, at least not at the time of writing this. Additionally, Azure does not
disallow consecutive hyphens, but there is a second regex that disallows this.
I can very easily fix this and provide a PR, but I need to get clearance from my employer. I'm working on that; I'll follow up.
References
The text was updated successfully, but these errors were encountered:
Fixes#8924 . I also shored up the relevant unit test a bit. Code was written in a style to closely match the Azure Portal's validation prompts to keep it as simple as possible.
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
locked as resolved and limited conversation to collaborators
Nov 23, 2020
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.13.4
Affected Resource(s)
azurerm_databricks_workspace
Terraform Configuration Files
Debug Output
Sorry, I can't provide this due to company policy. And it's irrelevant; I already found the issue. Please see the "important factoids" section.
Panic Output
No panics! 🍺 🍻
Expected Behavior
The
terraform plan
command should output a plan where the name of theazurerm_databricks_workspace
resource isx-example-dbw
. The use case here is that my organization wants to prefix the resources with single-letter codes.Actual Behavior
Steps to Reproduce
terraform apply
the configuration code given above.Important Factoids
The Azure Portal shows the following validation criteria:
However, the current
ValidateDatabricksWorkspaceName
implementation has a regex that requires the first two characters to bealphanumeric. This is not a restriction in Azure, at least not at the time of writing this. Additionally, Azure does not
disallow consecutive hyphens, but there is a second regex that disallows this.
I can very easily fix this and provide a PR, but I need to get clearance from my employer. I'm working on that; I'll follow up.
References
The text was updated successfully, but these errors were encountered: