-
Notifications
You must be signed in to change notification settings - Fork 7
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
[BUG] ConflictingPublicNetworkAccessAndVirtualNetworkConfiguration #7
Comments
Also when I tried to deploy everything at once from zero ╷ |
Thanks for this opened issue, we will try to reproduce and fix the module in this context. |
I think this issue is the reason. |
Can you please test the 7.4.0 version of the module? |
Hello I just tested it and it's working fine :) thank you very much |
Community Note
When using the claranet/db-postgresql-flexible/azurerm module to deploy an Azure PostgreSQL Flexible Server with a virtual network configuration, a conflict arises due to the lack of an option to disable public network access.
The module requires the allowed_cidrs attribute to be specified, even when public access is not desired. Setting allowed_cidrs to an empty map {} does not resolve the issue, as the module still attempts to configure both public network access and virtual network integration, resulting in the following error:
Copy codeError: creating Flexible Server (Subscription: "28197c15-da6c-4e66-b241-cd23f9550102"
Resource Group Name: "rg-test-tsp1-acc"
Flexible Server Name: "psqlf-test-tsp1-gwc-acc"): performing Create: unexpected status 400 (400 Bad Request) with error: ConflictingPublicNetworkAccessAndVirtualNetworkConfiguration: Conflicting configuration is detected between Public Network Access and Virtual Network arguments. Public Network Access is not supported along with Virtual Network feature.
The documentation does not provide any information on how to disable public network access or resolve this conflict.
Please advise on how to resolve this issue or provide guidance on disabling public network access when using the claranet/db-postgresql-flexible/azurerm module with virtual network integration.
Terraform Version
1.7.2
AzureRM Provider Version
Affected Resource(s)/Data Source(s)
azurerm_postgresql_flexible_server.postgresql_flexible_server
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The module should allow for the creation of an Azure PostgreSQL Flexible Server with virtual network integration and public network access disabled.
Actual Behaviour
The module encounters a conflict between the public network access and virtual network configuration, preventing the successful creation of the Azure PostgreSQL Flexible Server.
Steps to Reproduce
I mainly just used yor example deployment. https://github.com/claranet/terraform-azurerm-db-postgresql-flexible/tree/master/examples/delegated_subnet
terraform plan is no problem.
2. terraform apply --> the error will come up.
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: