Replace Azure CDN with direct custom domain support and migrate to Azure Verified Modules patterns#14
Draft
Replace Azure CDN with direct custom domain support and migrate to Azure Verified Modules patterns#14
Conversation
Co-authored-by: jhueppauff <20532954+jhueppauff@users.noreply.github.com>
Co-authored-by: jhueppauff <20532954+jhueppauff@users.noreply.github.com>
Co-authored-by: jhueppauff <20532954+jhueppauff@users.noreply.github.com>
Co-authored-by: jhueppauff <20532954+jhueppauff@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Replace Azure CDN with domain name in Azure Frontend Function
Replace Azure CDN with direct custom domain support and migrate to Azure Verified Modules patterns
Oct 12, 2025
Owner
|
@copilot can you update the actions so that we are only need to use bicep, not arm? |
Co-authored-by: jhueppauff <20532954+jhueppauff@users.noreply.github.com>
Author
Updated the deployment workflows to use Bicep directly: Azure DevOps Pipeline (
README.md:
The pipeline now deploys the Bicep file natively without needing to compile to ARM template first. The resources.json is still generated during local bicep builds but is no longer required for deployment workflows. Commit: 37ed5b7 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR removes Azure CDN from the infrastructure and replaces it with direct custom domain support on the Azure Function Frontend, while also migrating the entire Bicep template to follow Azure Verified Modules (AVM) best practices.
Changes Made
🗑️ Removed Azure CDN
microsoft.cdn/profiles) and Endpoint resourcesprofilePropertiesandendpointPropertiesparameters from the template✨ Added Direct Custom Domain Support
customDomainNameparameter for custom domain configurationhostNameBindingsresource for the frontend function*.azurewebsites.netdomain when no custom domain is specified🏗️ Migrated to Azure Verified Modules Patterns
@descriptiondecorators to all 10 parameters_varsuffixes🔒 Security Enhancements
httpsOnly: trueto Function Frontend to enforce HTTPSauthsettingsto modernauthsettingsV2minimumTlsVersion: '1.2'requirement to Service BusallowBlobPublicAccess: falseon storage accounts🚀 Updated Deployment Workflows
az deployment group createwith--template-file resources.bicepdirectly📖 Documentation
Templates/MIGRATION_NOTES.mdwith:Benefits
Migration Path
For existing deployments:
customDomainNameparameter (or leave empty for default domain)See
Templates/MIGRATION_NOTES.mdfor detailed step-by-step instructions.Validation
✅ Bicep compilation successful with no errors or warnings
✅ All CDN references removed from template
✅ Custom domain resource correctly configured with conditional deployment
✅ All API versions updated to stable releases
✅ Parameter validation passed
✅ Deployment workflows updated to use Bicep natively
Breaking Changes
The custom domain is optional - deployments without a custom domain will continue to work using the default
*.azurewebsites.netURL.Fixes #13
Original prompt
Fixes #13
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.