storage account with multiple private service connections (private endpoints)
![](https://techprofile.blob.core.windows.net/images/3NLYJZj5bEelLBUMsvmfkw.png?8DC654)
Hello Community,
I have storage accounts and I am trying to attach multiple private endpoints to them. Everything is deployed using Terraform.
What is currently blocking me is it seems that the private endpoint creation cannot contain more than once private_service_connection
block. In fact, if I define a dynamic bloc like
dynamic "private_service_connection" {
for_each = var.azurerm_private_endpoint_private_service_connection_resource_id
content {
name = var.azurerm_private_endpoint_private_service_connection_name
private_connection_resource_id = private_service_connection.value
subresource_names = var.azurerm_private_endpoint_private_service_subresource_names
is_manual_connection = false
}
}
I am ending with an error stating no more than one block is allowed.
│ Error: Too many private_service_connection blocks
│
│ on .terraform/modules/databricks_catalog.azure_private_endpoint_catalog/private-endpoint.tf line 15, in resource "azurerm_private_endpoint" "databricks_storage_account":
│ 15: content {
│
│ No more than 1 "private_service_connection" blocks are allowed
I looked into the documentation but cannot find an answer to my blocker.
Am I missing something ? How can I link one storage account with multiple private endpoints ? Is it possible ?
Thank you in advance for the replies.