On 18 November 2026, at Ignite, Microsoft made network egress controls generally available for hosted agents in Foundry Agent Service. Security teams can now list the hosts an agent is allowed to reach, and Foundry enforces that list outside the agent's own sandbox. Several related features shipped at the same time, some finished and some still in preview.
What changed
A hosted agent is your own agent code running on infrastructure that Foundry manages. Teams outside the preview had to rely mainly on the surrounding virtual network to decide where that code could connect. Egress controls add a rule list attached to the agent itself.
How the rules work. Rules are read from top to bottom and the first match wins. Each one can allow a host, deny it, or reroute the request. If nothing matches, a default action applies, and Microsoft recommends making that default "deny". If the policy cannot be evaluated at all, the request is refused. A policy holds up to 480 rules.
Audit, then enforce. In Audit mode, requests that would be refused are logged and still go through. In Enforce mode they are blocked, and the agent sees an HTTP 403.
Also generally available. Sessions now share IP addresses in your subnet, so a /24 is planned for roughly 60,000 concurrent sessions where it previously ran out at about 250. Default regional quotas of 1,000 or 2,000 sessions per subscription become the real limit. Long jobs can recover after a crash or redeployment, and idle timeouts can be set anywhere from two minutes to four hours.
Still in preview. Azure Policy checks on egress settings begin in Canada Central, Spain Central and Korea Central. Trust for certificates issued by your own internal authority is in preview, as are memory snapshots and rules that modify request headers. Running agents on your own Azure Kubernetes Service cluster is due in public preview in early December.
Why it matters
A tool list tells an agent what it should use. It does not stop the code from doing something else. A library can follow a redirect, generated code can open a socket, and a poisoned document can persuade the model to send a file to an address nobody reviewed. That last case is the one that worries security reviewers most, and it is why many pilots sit in a queue waiting for sign-off.
A default-deny list changes the conversation. The reviewer reads twelve host names instead of a thousand lines of Python. If the agent is tricked, the damage is limited to places you already approved.
It is not a complete answer. An approved host can still be misused: an agent allowed to call a file-sharing service can upload the wrong file to it. Egress rules also sit alongside Azure Firewall and private networking, and Microsoft says plainly that they do not replace them. You still need narrow permissions on data and a person approving anything that moves money or changes a customer record.
Cost is worth a look too. Microsoft bills the CPU and memory allocated to each active session, whether or not the code uses it, and idle time before suspension counts. A four-hour timeout is convenient for a slow approval process. Across hundreds of sessions it is also expensive. Model and tool use are billed on top.
The details that will catch people out
- Running sessions keep the old policy. After you tighten the rules, deploy a new agent version and start or resume a session. Otherwise you are testing yesterday's policy.
- A wrong policy ID can fail quietly. Microsoft's documentation warns that on many subscriptions an agent pointing at a policy that does not exist still deploys and reports as active, with no content filtering applied. Test it with a request that ought to be blocked.
- The invocations protocol needs extra settings. Without them, content screening does nothing and the agent still returns a normal response. The WebSocket version has no content moderation.
- Exported templates can lose your rules. An older API version drops the egress section. Use 2026-09-01 in your infrastructure code.
- Audit mode is not passive. Rewrites and header changes take effect even while auditing, so begin in a test environment.
What this means for organisations in the Gulf, India, Africa and Canada
Microsoft's current list of hosted agent regions includes UAE North, South India, South Africa North, Canada Central and Canada East. That matters for banks, insurers and public bodies that need the agent's compute in a known country. Check the list again before you commit, because it changes, and check the model separately. An agent running in UAE North can still call a model served from elsewhere, depending on the deployment type you choose.
Egress logs are useful evidence. Under the UAE's data protection law, Saudi Arabia's PDPL and India's DPDP Act, a company can be asked to explain where personal data goes. "Here is the list of hosts this agent can reach, and here is what was refused last month" is a far better reply than a network diagram from 2023.
Canadian teams get the Azure Policy preview first, so a bank preparing for OSFI's E-23 model risk guideline can try central enforcement now. In the Gulf, India and South Africa, plan to run the same check by hand for the time being: a short pipeline step that fails any agent version without Enforce mode and a deny default.
For most teams, our advice is to leave the AKS option until it has been in preview for a while. Choose it if you already run AKS well and have a residency or isolation rule that the managed service cannot meet. Otherwise you take on patching, capacity and networking for little gain.
What to do next
- List every hosted agent you run, with its owner, the data it reads and the hosts it needs. If nobody can name the hosts, that is your first finding.
- Attach a policy in Audit mode with a deny default in a test environment. Run a full set of realistic tasks, including month-end and error cases, then review what was logged.
- Avoid broad wildcards. Allow the exact API host where you can.
- Switch to Enforce, deploy a new version and prove it. Ask the agent to call an unapproved site and confirm that it receives a 403.
- Shorten idle timeouts, and stop sessions when the work finishes.
You can read how we work with the platform on our Microsoft Azure page, and our AI security team covers agent reviews and policy design.
Sources
- Microsoft Foundry Blog: Hosted agents in Foundry Agent Service at Ignite 2026 (2026-11-18)
- Microsoft Foundry Blog: What's new in Foundry Agent Service at Ignite 2026 (2026-11-18)
- Microsoft Learn: Add guardrails to a hosted agent (2026-11-23)
- Microsoft Learn: Hosted agents, billing and region availability (2026-11-24)