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
╷
│ Error: creating/updating Bastion Host: (Name "my-bastion-host" / Resource Group "bastion-rg"): network.BastionHostsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BastionHostMustHaveAtleastOneHostIpConfiguration" Message="BastionHost /subscriptions/<subscription_id>/resourceGroups/bastion-rg/providers/Microsoft.Network/bastionHosts/my-bastion-host must contain at least 1 IP Configuration." Details=[]
│
│ with azurerm_bastion_host.main,
│ on main.tf line 38, in resource "azurerm_bastion_host""main":
│ 38: resource "azurerm_bastion_host""main" {
│
Expected Behaviour
Creating a bastion host without ip_configuration block will succeed as implied by the docs saying ip_configuration block is Optional.
(this is what current docs suggest)
Actual Behaviour
According to docs here the ip_configuration block is Optional this falsely implies that you can create a bastion host without that variable which is definitely not true as you can see the attempt above which fails.
Therefore, I suggest we update the docs to make ip_configuration block (Required)
Steps to Reproduce
terraform apply -auto-approve
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered:
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.
Is there an existing issue for this?
Community Note
Terraform Version
1.4.6
AzureRM Provider Version
3.61.0
Affected Resource(s)/Data Source(s)
azurerm_bastion_host
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Creating a bastion host without
ip_configuration
block will succeed as implied by the docs sayingip_configuration
block isOptional
.(this is what current docs suggest)
Actual Behaviour
According to docs here the
ip_configuration
block isOptional
this falsely implies that you can create a bastion host without that variable which is definitely not true as you can see the attempt above which fails.Therefore, I suggest we update the docs to make
ip_configuration
block(Required)
Steps to Reproduce
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: