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
At least in plan phase (validate is better) this should be catched like with name for the resource group
Error:"name" may only contain alphanumeric characters, dash, underscores, parentheses and periods
on main.tf line 3, in resource "azurerm_resource_group""test":3:resource"azurerm_resource_group""test" {
Actual Behavior
Plan is generated and apply fails.
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:+ create
Terraform will perform the following actions:# azurerm_resource_group.test will be created+resource"azurerm_resource_group""test" {
+id=(known after apply)
+name="test"+tags=(known after apply)
}
Plan:1 to add, 0 to change, 0 to destroy.------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
Steps to Reproduce
terraform init
terraform plan
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
This commit makes the NormalizeLocation field more strict - by introducing
a new method for the StateFunc. In addition this adds validation to the
`location` field which ensures this isn't an empty string for the Default
Schema which fixes#5594.
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 and limited conversation to collaborators
Apr 25, 2020
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.12.20
Affected Resource(s)
azurerm_resource_group
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
At least in plan phase (validate is better) this should be catched like with name for the resource group
Actual Behavior
Plan is generated and apply fails.
Steps to Reproduce
terraform init
terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: