-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Hyphens not allowed in Azure Bastion ip configuration name #4807
Comments
Pretty similar issue #4759 that related to bastion host name was resolved by PR #4766 Seems like we have bastion ip configuration name constraints as well according to https://github.com/terraform-providers/terraform-provider-azurerm/blob/94cf18b287d634ee16aa5e37d3a73d3e8a356fa4/azurerm/resource_arm_bastion_host.go#L211 Unfortunately I didn't find info about bastion ip configuration name constraints neither in |
This comment has been minimized.
This comment has been minimized.
@tombuildsstuff Seems like issue reported in #4762 and #4759 was related to bastion name itself and it was fixed by #4766 in function validateAzureRMBastionHostName in https://github.com/terraform-providers/terraform-provider-azurerm/blob/94cf18b287d634ee16aa5e37d3a73d3e8a356fa4/azurerm/resource_arm_bastion_host.go#L194 I've reported issue related to bastion ip configuration name constraints that related to https://github.com/terraform-providers/terraform-provider-azurerm/blob/94cf18b287d634ee16aa5e37d3a73d3e8a356fa4/azurerm/resource_arm_bastion_host.go#L211 and function validateAzureRMBastionIPConfigName and was not covered by #4766 |
🤦♂ sorry @arestarh missed that critical ("ip configuration") - reopening |
This has been released in version 1.37.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 1.37.0"
}
# ... other configuration ... |
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! |
Community Note
Terraform (and AzureRM Provider) Version
1.36.1
Affected Resource(s)
azurerm_bastion_host
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Resource ip configuration name should be myname-bastion-myenvironment-configuration.
Actual Behavior
This error is generated: Error: lowercase letters, highercase letters numbers only are allowed in "ip_configuration.0.name": "myname-bastion-myenvironment-configuration"
Steps to Reproduce
Create a bastion that contains hyphens as part of the ip configuration name
Important Factoids
References
The text was updated successfully, but these errors were encountered: