Azure Private Link enables you to access Azure PaaS services (for example, Azure Storage, Azure SQL Database, Azure Key Vault) and your own services over a private endpoint in your virtual network. This eliminates exposure to the public internet and simplifies network architecture.
Follow these steps to create a Private Endpoint for an Azure Storage account:
Below is a Bicep snippet that deploys a private endpoint for an Azure Storage account.
param location string = resourceGroup().location param storageAccountName string param vnetName string param subnetName string resource storage 'Microsoft.Storage/storageAccounts@2022-09-01' existing = { name: storageAccountName } resource vnet 'Microsoft.Network/virtualNetworks@2022-07-01' existing = { name: vnetName } resource subnet 'Microsoft.Network/virtualNetworks/subnets@2022-07-01' existing = { parent: vnet name: subnetName } resource pe 'Microsoft.Network/privateEndpoints@2022-07-01' = { name: '${storageAccountName}-pe' location: location properties: { subnet: { id: subnet.id } privateLinkServiceConnections: [ { name: 'storage-connection' properties: { privateLinkServiceId: storage.id groupIds: [ 'blob' ] } } ] } }
Private Endpoint DNS integration
to simplify name resolution.Private DNS zones
to avoid public DNS queries.