An Azure service endpoint is a subnet configuration that enables access to a supported Azure service through the provider backbone. It strengthens network isolation by allowing resource firewalls to recognize traffic from selected virtual networks and subnets. section 5.1.1 section 5.2.3
A service endpoint does not grant authorization by itself. Resource permissions remain separate: Azure Storage uses network rules alongside control- and data-plane authorization, while Key Vault uses Azure RBAC or access policies. section 5.1.1 section 5.2.3
Configure the endpoint and its corresponding resource firewall rule in sequence:
- Enable Microsoft.Storage or Microsoft.KeyVault on the application subnet with az network vnet subnet update. section 5.1.1 section 5.2.3
- Add the subnet to the storage account or Key Vault network rules using its resource ID. section 5.1.1 section 5.2.3
- Set the resource firewall default action to Deny when the allow rules are ready. section 5.1.1 section 5.2.3
Application subnet reaching Azure Storage
For VNET1 and VMSubnet, enable Microsoft.Storage, then add that subnet to storage012. The resulting network rule set shows defaultAction Deny and an allowed virtualNetworkRule with state Succeeded. section 5.1.1
Listing 5.3 Enabling a service endpoint for Azure Storage on VNet and subnet
az network vnet subnet update #1 --resource-group myResourceGroup #2 --vnet-name VNET1 #3 --name VMSubnet #4 --service-endpoints Microsoft.Storage #5 #1 The Azure CLI command to update the VNet subnet #2 The resource group name #3 The existing VNet name #4 The existing subnet name #5 The service endpoint you want to enable. To enable a service endpoint for Azure Storage, the value needs to be Microsoft.Storage.
Inspect the Azure CLI command and argument meanings for enabling Microsoft.Storage on an existing subnet. section 5.1.1
