azapi_resource to create postgresql virtual endpoint is not working #114488
Unanswered
upendrar79
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
I am using terraform azapi_resource to create postgresql virtual endpoint, but its giving error saying "id with same resource already exists" but postgresql virtual endpoint is not getting created.
Please refer the below link for postgresql virtual endpoint
https://techcommunity.microsoft.com/t5/azure-database-for-postgresql/multi-region-disaster-recovery-streamlined-with-new-features/ba-p/3980707
resource "azapi_resource" "postgresql_virtual_endpoint" {
type = "Microsoft.DBForPostgreSql/flexibleServers/virtualendpoints@2023-06-01-preview"
name = "mypostgresendpointrugh"
parent_id = azurerm_postgresql_flexible_server.Primary.id
body = jsonencode({
properties = {
endpointType = "ReadWrite"
members = ["orange"]
}
})
depends_on = [azurerm_postgresql_flexible_server.Primary, azurerm_postgresql_flexible_server.Replica]
}
Beta Was this translation helpful? Give feedback.
All reactions