Skip to main content

Configure Network Controls

Preview
What you'll build

A VNet-integrated agent with outbound traffic routed through your network, managed path toggles configured for your environment, and verified connectivity to private endpoints. Learn more → Network Controls.

Prerequisites

  • An SRE Agent in Running state
  • An Azure Virtual Network with a subnet that is /28 or larger
  • The subnet must be delegated to Microsoft.App/environments
  • Network Contributor role (or equivalent with Microsoft.Network/virtualNetworks/subnets/join/action) on the target subnet
  • You must have the SRE Agent Administrator role on the agent resource

Step 1: Open workspace configuration

  1. Open your agent in the Azure portal.
  2. In the left navigation, select Settings > Workspace configuration.
  3. Select the Networking tab.

Step 2: Select an egress mode

Choose the mode that matches your security requirements:

  • Unrestricted — Allow all outbound traffic (default)
  • Limited — Deny all, allow listed hosts
  • Azure VNet — Private egress via your VNet

Select Azure VNet to route agent traffic through your network.

Mode lock-in

Once a VNet is connected, the Unrestricted and Limited mode cards are disabled. To switch egress modes, you must disconnect the VNet first.

Step 3: Connect your VNet

  1. Select Browse subnets... to open the subnet picker dialog.
  2. In the dialog, select your Subscription, Resource group, Virtual network, and Subnet from the cascading dropdowns. The subnet must be /28 or larger and delegated to Microsoft.App/environments.
  3. Select Connect. The Use VNet's private DNS option is enabled automatically — this lets the agent resolve private endpoint hostnames (e.g., Log Analytics workspaces behind AMPLS).
Private DNS zones

For private endpoint resolution to work, link the relevant Azure Private DNS zones to your VNet (e.g., privatelink.ods.opinsights.azure.com for Log Analytics, privatelink.vaultcore.azure.net for Key Vault). If DNS is not configured, the agent may fall back to public endpoints or fail to connect.

Subnet is fixed after connect

Once connected, you cannot change the subnet without disconnecting and reconnecting the VNet.

Step 4: Configure managed path toggles

Under On the infra network, decide which public service categories route through the managed path instead of your VNet.

ToggleWhat it controls
Remote MCP server accessMCP server traffic
Package registriesPyPI, npmjs, NuGet.org, Ubuntu apt (each is an independent toggle)
Code repositoriesGitHub, GitHub Enterprise, Azure DevOps (each is an independent toggle)
Additional hostsCustom hostnames or wildcard patterns

Start with the categories your agent needs enabled on the managed path. You can tighten these later as your network adopts FQDN-based egress filtering.

Step 5: Save and verify

  1. Select Save.
  2. The Azure VNet card displays a Connected badge confirming the agent is routed through your VNet.
Workspace configuration page showing Azure VNet mode with Connected badge
  1. Test by asking the agent to query a resource behind a private endpoint (for example, a Log Analytics workspace with public access disabled). If the query succeeds, VNet routing is working.

Next steps

Was this page helpful?