Edit

Private endpoints for Durable Task Scheduler

A private endpoint is a network interface that connects you privately and securely to a service powered by Azure Private Link. You can use private endpoints with Durable Task Scheduler to allow apps in your virtual network to connect to the scheduler over a private connection, without exposing traffic to the public internet.

Private endpoint connections

By default, apps connect to the Durable Task Scheduler over a public endpoint address in the format {scheduler-name}-{suffix}.{region}.durabletask.io. When you create a private endpoint for your scheduler resource, the endpoint is mapped to a private IP address in your virtual network. This configuration allows your apps to communicate with the scheduler over the private network link instead of the public internet.

A private endpoint for Durable Task Scheduler targets the scheduler subresource on the Microsoft.DurableTask/schedulers resource type.

Clients connecting through the private endpoint use the same endpoint address and authentication mechanism as clients connecting to the public endpoint. With private DNS configured, the scheduler endpoint resolves to the private IP address when the request originates from within the virtual network.

Benefits

Private endpoints for Durable Task Scheduler enable you to:

  • Secure your scheduler by configuring the firewall to block all connections on the public endpoint.
  • Increase security for the virtual network by enabling you to block exfiltration of data from the virtual network.
  • Connect securely from on-premises networks that connect to the virtual network using VPN or ExpressRoute with private peering.

Network architecture

With a private endpoint, connectivity between the apps in the virtual network and the scheduler flows over the Microsoft backbone network. Traffic never traverses the public internet.

The following diagram illustrates the difference between public and private endpoint connectivity:

  • Without a private endpoint, your app sends gRPC traffic over the public internet to the scheduler's public endpoint.
  • With a private endpoint, your app sends gRPC traffic through the virtual network's private IP address, which routes through the Azure Private Link to the scheduler.

Both connection methods use TLS encryption and identity-based authentication via managed identity.

DNS configuration

When you create a private endpoint for a Durable Task Scheduler resource, the DNS resolution of the scheduler's endpoint must resolve to the private IP address assigned to the private endpoint. You can use one of the following approaches:

  • Azure Private DNS zones (recommended): Configure a private DNS zone, a virtual network link, and a private endpoint DNS zone group. The portal can configure this integration when you select it during endpoint creation. Creating a private endpoint through CLI or Bicep alone doesn't create these DNS resources.
  • Custom DNS server: If you use a custom DNS server, add a DNS record for the scheduler endpoint that points to the private IP address of the private endpoint.
  • Host file (for testing): You can modify the host file on a virtual machine to point the scheduler endpoint to the private IP address of the private endpoint.

Important

Without proper DNS configuration, your apps aren't able to resolve the scheduler endpoint to the private IP address, and the private endpoint connection fails.

In commercial Azure, the expected private DNS zone is privatelink.durabletask.io, with target subresource/group ID scheduler. The zone name differs in other clouds. Use the scheduler's returned requiredZoneNames values when configuring DNS, rather than the web app or SQL zone names in the general tutorials.

Get the scheduler-specific DNS zone names from its private link resources. In Bash, set SCHEDULER_RESOURCE_ID to your scheduler's full resource ID and run:

SCHEDULER_RESOURCE_ID="/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.DurableTask/schedulers/<scheduler-name>"

az rest \
    --method get \
    --uri "https://management.azure.com${SCHEDULER_RESOURCE_ID}/privateLinkResources?api-version=2026-02-01" \
    --query "value[?properties.groupId=='scheduler'].properties.requiredZoneNames[]" \
    --output tsv

Use each returned requiredZoneNames value as a private DNS zone name. If no names are returned, check the scheduler resource and API response before proceeding.

Public network access

Creating a private endpoint doesn't disable public network access. The scheduler's properties.publicNetworkAccess property supports these values:

  • Enabled (default): Public and private endpoint connections are allowed, subject to the applicable access controls.
  • Disabled: Only connections through private endpoints are allowed.

Only after the private endpoint connection is approved, private DNS resolves the scheduler hostname to the private endpoint IP address, and an application successfully performs an authenticated scheduler operation, optionally disable public access. See Verify DNS resolution and connectivity.

For an existing scheduler, use az durabletask scheduler update from the Azure CLI durabletask extension:

az durabletask scheduler update \
    --name "<scheduler-name>" \
    --resource-group "<resource-group>" \
    --public-network-access Disabled

Note

Disabling public network access also affects access to the Durable Task Scheduler dashboard. To continue using the dashboard with private endpoints, ensure the dashboard is accessed from within the virtual network or through a network path that routes to the private endpoint, with DNS resolution to its private IP address. Private networking doesn't replace identity and RBAC authorization.

Considerations

Keep the following considerations in mind when using private endpoints with Durable Task Scheduler:

  • Region: The private endpoint must be deployed in the same region as the virtual network. The scheduler resource can be in a different region, though placing them in the same region is recommended for optimal latency.
  • SKU availability: Private endpoints are supported on schedulers using both the Dedicated SKU and Consumption SKU.
  • Multiple private endpoints: You can create multiple private endpoints for the same scheduler resource in different virtual networks to enable access from multiple networks.
  • Identity and RBAC: Private endpoints secure the network path to the scheduler. You still need to configure identity-based access control to authenticate and authorize your apps.
  • Task hubs: A private endpoint connection on the scheduler applies to all task hubs within that scheduler. You can't create private endpoint connections for individual task hubs.
  • Emulator: The Durable Task Scheduler emulator runs locally and doesn't support private endpoints. Private endpoints apply only to scheduler resources deployed in Azure.

Configure a private endpoint

To create a private endpoint for your Durable Task Scheduler resource, follow the general private endpoint creation steps for your preferred method. Regardless of the method you choose, use the following Durable Task Scheduler-specific values when configuring the private endpoint:

Setting Value
Resource type Microsoft.DurableTask/schedulers
Target sub-resource scheduler

Connection approval

The connection can be automatically approved when the creating identity has sufficient permissions on the scheduler, such as Owner or Contributor, or an equivalent custom role with Microsoft.DurableTask/schedulers/PrivateEndpointConnectionsApproval/action. Permission to create the network endpoint alone isn't sufficient for scheduler-side approval.

If the connection is Pending, an authorized scheduler approver must approve it before it can carry application traffic. In the Azure portal, open Private Link Center > Pending connections, select the connection targeting your scheduler, and select Approve. For more information, see Manage a private endpoint connection.

  1. Follow the steps in Create a private endpoint using the Azure portal.
  2. On the Resource tab, select the resource type and target sub-resource values from the preceding table.
  3. On the DNS tab, enable private DNS integration and verify that the zone names match the scheduler's requiredZoneNames. Link the zones to the virtual network used by your clients.
  4. For the remaining virtual network and tags settings, follow the portal documentation.

Verify DNS resolution and connectivity

From a client in the linked virtual network (or a connected network with the appropriate DNS forwarding), resolve the scheduler's endpoint hostname:

nslookup <scheduler-endpoint-hostname>

Verify that the returned address matches the private IP address assigned to the private endpoint's network interface. Confirm that the private endpoint connection is approved, then test access using your application's configured identity. If the hostname still resolves publicly, correct the private DNS zone, virtual network link, DNS zone group, or custom DNS forwarding before disabling public network access.

Next steps