Hello @Will
Welcome to Microsoft QnA!
Let's get to the bottom of this
When you do that via Terrafrom, are you creating the Service Endpoint as well ?
Are you creating the Private DNS Zone ? Here is a sample that works
# Private DNS
resource "azurerm_private_dns_zone" "blobzone" {
name = "privatelink.blob.core.azure.com"
resource_group_name = azurerm_resource_group.rgdemo.name
}
resource "azurerm_private_endpoint" "blobprv" {
location = azurerm_resource_group.rgdemo.location
name = "spriv${random_string.str-name.result}"
resource_group_name = azurerm_resource_group.rgdemo.name
subnet_id = azurerm_subnet.snetdemo.id
private_dns_zone_group {
name = "default"
private_dns_zone_ids = [azurerm_private_dns_zone.blobzone.id]
}
private_service_connection {
is_manual_connection = false
name = "storpriv"
private_connection_resource_id = azurerm_storage_account.storage.id
subresource_names = ["blob"]
}
}
--
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards