Skip to content

Add GSA proxy bicep templates for private network agent setup#527

Draft
shyamshd wants to merge 4 commits intomicrosoft-foundry:mainfrom
shyamshd:add_gsa_bicep_templates
Draft

Add GSA proxy bicep templates for private network agent setup#527
shyamshd wants to merge 4 commits intomicrosoft-foundry:mainfrom
shyamshd:add_gsa_bicep_templates

Conversation

@shyamshd
Copy link
Copy Markdown

Add bicep modules to deploy a GSA AI Connector proxy VM into the existing agent VNet, enabling egress traffic inspection and authentication for network-secured AI Foundry agent deployments.

New files:

  • deploy-gsa-proxy.bicep: Orchestrator template for GSA proxy deployment
  • deploy-gsa-proxy.bicepparam: Parameter file with defaults
  • modules-network-secured/gsa-proxy.bicep: Core module deploying:
    • GSA proxy subnet with NSG (allows VirtualNetwork traffic)
    • VM from GSA AI Connector marketplace image with managed identity
    • NIC with IP forwarding enabled
    • UDR routing 0/0 from agent subnet to proxy, with exceptions for AzureActiveDirectory, AzureResourceManager, AzureMonitor, GuestAndHybridManagement, AzureContainerRegistry, AzureKeyVault, and Storage service tags
  • modules-network-secured/agent-subnet-udr-association.bicep: Associates the UDR with the agent subnet while preserving existing delegation and NSG configuration

@shyamshd shyamshd force-pushed the add_gsa_bicep_templates branch from afe6b09 to e009176 Compare February 12, 2026 01:33
Add bicep modules to deploy a GSA AI Connector proxy VM with a BYO VNet, enabling egress traffic inspection and authentication for standard AI Foundry agent deployments.

New files:

main.bicep: Orchestrator template for full end-to-end deployment including VNet, GSA proxy, AI account, project, and capability host

main.bicepparam / test-deploy.parameters.json: Parameter files with defaults

modules/vnet.bicep: Creates VNet with agent subnet (delegated to Microsoft.App/environments) and GSA proxy subnet

modules/gsa-proxy.bicep: Core module deploying:

  - GSA proxy subnet with NSG (allows VirtualNetwork traffic)

  - VM from GSA AI Connector marketplace image with managed identity

  - NIC with IP forwarding enabled

  - UDR routing 0/0 from agent subnet to proxy, with exceptions for AzureActiveDirectory, AzureResourceManager, AzureMonitor, GuestAndHybridManagement, AzureContainerRegistry, AzureKeyVault, and Storage service tags

modules/agent-subnet-udr-association.bicep: Associates the UDR with the agent subnet while preserving existing delegation and NSG configuration

modules/standard-dependent-resources.bicep: Creates Cosmos DB, AI Search, and Storage with cosmosDBZoneRedundant parameter for regions with AZ capacity constraints
@shyamshd shyamshd force-pushed the add_gsa_bicep_templates branch from e009176 to 594bb22 Compare March 23, 2026 18:06
- Remove account-level capability host from add-project-capability-host.bicep
  (platform auto-creates it; having both causes 'conflicting state' error)
- Rename default aiServices param from 'foundy' to 'foundry' across all files
- Remove accountCapHost param from main.bicep
- Successfully deployed and verified all 15 resources in rg-ai-agent-gsa-proxy-2
- Added AllowAzureFrontDoorFirstParty route to agent subnet UDR
- Routes Azure Front Door first-party traffic directly to Internet
  instead of through the GSA proxy
- Updated README with the new service tag
- Added AllowContainerAppsManagement route to agent subnet UDR
- Routes Container Apps management plane traffic directly to Internet
  instead of through the GSA proxy
- Also previously added AzureFrontDoor.FirstParty bypass
- Updated README with both new service tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant