MSDN Documentation

Azure Service Endpoints

Azure Virtual Network service endpoints provide a secure and direct connection to Azure services over an optimized route from your virtual network to the Azure service, without requiring a public IP address on the edge of the virtual network.

What are Service Endpoints?

Service endpoints extend the private IP address space of your VNet and the identity of your VNet to the Azure service. This enhances security by allowing you to lock down your Azure service resources to only your virtual network.

Benefits of Service Endpoints

How Service Endpoints Work

When you enable service endpoints for an Azure service on a subnet, the traffic destined for that service from that subnet is automatically routed over the Microsoft backbone network. This direct connection leverages the service's private IP address range and the identity of your VNet.

Tip: Service endpoints are enabled on a subnet basis. You can enable them for specific Azure services on a per-subnet configuration.

Supported Azure Services

Service endpoints are supported for various Azure services, including but not limited to:

Configuration Steps

To configure service endpoints for a subnet:

  1. Navigate to your Virtual Network in the Azure portal.
  2. Select the subnet you want to configure.
  3. In the subnet settings, under "Service endpoints," select the desired Azure services.
  4. Save the changes.

After enabling service endpoints, you can further secure your Azure service resources by configuring their access to allow traffic only from your virtual network's subnets.

Important: When service endpoints are enabled, ensure that any network security rules or service firewall configurations are updated to allow traffic from the correct VNet and subnet.

Example: Securing Azure Storage with Service Endpoints

To restrict access to an Azure Storage account to a specific VNet:

  1. Enable the Microsoft.Storage service endpoint on the desired subnet(s) of your VNet.
  2. Go to your Azure Storage account in the Azure portal.
  3. Under "Networking," configure the firewall settings to allow access from "Virtual networks."
  4. Select your VNet and the specific subnet(s) where the service endpoint is enabled.

This ensures that only traffic originating from the specified subnet within your VNet can access the Azure Storage account.

Considerations

For detailed command-line examples using Azure CLI or PowerShell, please refer to the official Azure documentation.