Skip to content

Allow the Front Door profile and DNS zone to live in other subscriptions - #30

Merged
dsghi merged 1 commit into
mainfrom
feat/cross-subscription-front-door
Oct 5, 2026
Merged

dsghi merged 1 commit into
mainfrom
feat/cross-subscription-front-door

Conversation

@dsghi

@dsghi dsghi commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Summary

The Front Door option from #27 only reached a profile and DNS zone in DevBrain's own subscription. Shared edge and DNS resources often live in their own subscriptions, so this adds two optional azd values:

azd value Bicep parameter Default
FRONT_DOOR_SUBSCRIPTION_ID frontDoorSubscriptionId DevBrain's subscription
DNS_ZONE_SUBSCRIPTION_ID dnsZoneSubscriptionId The Front Door subscription

The defaults mirror how the resource-group values already cascade, so existing deployments and single-subscription setups are unchanged.

The README also gains a short cutover note for moving an existing deployment behind Front Door:

  • Register the new redirect URI first, and keep the old one until every client has moved.
  • Repoint each client at DEVBRAIN_MCP_URL.
  • Remove the old redirect URI afterward.

Validation

  • az bicep build --file infra/main.bicep succeeds.
  • Ran az deployment group what-if against an existing deployment whose Front Door profile and DNS zone each sit in a different subscription. The new Front Door resources, the WAF policy and both DNS records resolve into the correct subscription and resource group. The profile's existing endpoint and WAF policy show as Ignore (untouched).

🤖 Generated with Claude Code

Shared edge and DNS resources often sit in their own subscriptions, and the
template could only reach a profile and zone in DevBrain's own subscription.

- Add optional FRONT_DOOR_SUBSCRIPTION_ID and DNS_ZONE_SUBSCRIPTION_ID azd
  values (frontDoorSubscriptionId, dnsZoneSubscriptionId). The Front Door
  subscription defaults to DevBrain's, and the DNS zone's defaults to the
  Front Door profile's, matching how the resource groups already default.
- Document the cross-subscription values and the cutover steps for moving an
  existing deployment behind Front Door.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dsghi
dsghi merged commit 2ea0799 into main Oct 5, 2026
4 checks passed
@dsghi
dsghi deleted the feat/cross-subscription-front-door branch October 5, 2026 04:14
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