@Pierre Beauvois In my understanding, each Azure Storage Account can indeed have multiple private endpoints, but the Terraform provider for Azure (azurerm
) imposes certain limitations and requirements when defining these configurations.
The error you're encountering is due to Terraform's restriction on the azurerm_private_endpoint
resource, which allows only one private_service_connection
block per resource instance.
To attach multiple private endpoints to your Azure Storage Account using Terraform, you would need to define multiple instances of azurerm_private_endpoint
resources, each representing a separate private endpoint connection.
Each private endpoint configuration is treated as a separate instance of azurerm_private_endpoint
, avoiding the limitation of one private_service_connection
block per resource instance.