Skip to content

Commit e953d64

Browse files
committed
Post-migration dev-ops experience article for AFD/CDN
1 parent 5fe9a47 commit e953d64

File tree

2 files changed

+98
-0
lines changed

2 files changed

+98
-0
lines changed

articles/frontdoor/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@
179179
href: migrate-cdn-to-front-door.md
180180
- name: AFD/CDN Classic migration FAQ
181181
href: afd-cdn-classic-migration-faq.md
182+
- name: Post migration Dev-Ops experience
183+
href: post-migration-dev-ops-experience.md
182184
- name: Upgrades
183185
items:
184186
- name: Upgrade from Standard to Premium tier - Portal
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
---
2+
title: Post migration Dev-Ops experience
3+
description: Guidance to update Terraform, ARM templates, Bicep, PowerShell, and Azure CLI pipelines after migrating from Azure Front Door (Classic) or CDN Classic to Azure Front Door Standard/Premium.
4+
author: jainsabal
5+
ms.author: jainsabal
6+
ms.service: azure-front-door
7+
ms.topic: overview
8+
ms.date: 2025-08-06
9+
10+
#CustomerIntent: As a <type of user>, I want <what?> so that <why?>.
11+
---
12+
# Post Migration Dev-Ops experience
13+
14+
After migrating from Azure Front Door (Classic) or CDN Classic to Azure Front Door Standard/Premium, update your DevOps pipeline scripts to deploy and manage the new Front Door Standard/Premium resources. Use the guidance below for various tools and pipeline types.
15+
16+
## Terraform
17+
18+
### Prerequisites
19+
20+
- Ensure the Terraform CLI is installed. See [Install Terraform](https://developer.hashicorp.com/terraform/tutorials/azure-get-started/install-cli).
21+
- Install the Azure Resource Manager Export extension for Terraform to export existing Azure resources to Terraform templates. See [Overview of Azure Export for Terraform](https://learn.microsoft.com/en-us/azure/developer/terraform/azure-export-for-terraform/export-terraform-overview).
22+
23+
### Steps
24+
25+
After migration, all classic AFD resources are migrated to AFD Standard and Premium. Then:
26+
27+
- **Export the new AFD Standard/Premium configuration**: Use Azure’s export tool to generate Terraform configurations for your new Front Door Standard/Premium resources. Follow [Quickstart: Export your first resources using Azure Export for Terraform](https://learn.microsoft.com/en-us/azure/developer/terraform/azure-export-for-terraform/export-first-resources?tabs=azure-cli) to export the Front Door Standard/Premium resources into Terraform files.
28+
- **Update Terraform templates in your pipeline**: Replace references to Front Door Classic resources with the exported Standard/Premium configuration.
29+
- For AFD Classic, the Terraform resource is [`azurerm_frontdoor`](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/frontdoor).
30+
- For CDN Classic, use the [`azurerm_cdn_*`](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_endpoint) resources.
31+
- For AFD Standard/Premium (AFDx), use the [`azurerm_cdn_frontdoor_*`](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/cdn_frontdoor_profile) resources.
32+
- Check in the updated Terraform code to your pipeline and run plan/apply to start managing the new Front Door via Terraform.
33+
34+
## ARM template
35+
36+
### Steps
37+
38+
After migration, all classic AFD resources are migrated to AFD Standard and Premium.
39+
40+
- **Export ARM templates for Front Door Standard/Premium** using any of the following:
41+
- **Azure portal**: [Export template in Azure portal](https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-portal).
42+
- **Azure CLI**: [Export template in Azure CLI](https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-cli).
43+
- **Azure PowerShell**: [Export template in Azure PowerShell](https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/export-template-powershell).
44+
- **Update ARM templates in your pipeline** to use the new Front Door Standard/Premium template instead of the Front Door (Classic) template. In Azure DevOps or GitHub Actions, update the template path and parameters in your deployment step, then deploy the new template.
45+
- **Validate**: Remove or archive references to the classic Front Door template to avoid confusion.
46+
47+
## Bicep
48+
49+
### Prerequisites
50+
51+
- Install the Bicep CLI and tools. See [Set up Bicep development and deployment environments](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/install).
52+
53+
### Steps
54+
55+
After migration, all classic AFD resources are migrated to AFD Standard and Premium.
56+
57+
- **Generate a Bicep template for Front Door Standard/Premium** by decompiling an exported ARM template. See [Decompile ARM template JSON to Bicep](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/decompile?tabs=azure-cli).
58+
- **Update Bicep files in your pipeline**: Replace Front Door Classic definitions with Standard/Premium. This may include updating resource types such as [`Microsoft.Cdn/profiles`](https://learn.microsoft.com/en-us/azure/templates/microsoft.cdn/profiles?pivots=deployment-language-bicep) and child resources (endpoints, routes, etc.).
59+
- **Test** a deployment (for example, `az deployment group create`) to verify provisioning of AFD Standard/Premium.
60+
61+
## PowerShell
62+
63+
### Prerequisites
64+
65+
Make sure you have the latest Azure PowerShell Az modules installed (Az.Cdn module version that supports AFD Standard/Premium). See [Install Azure PowerShell](https://learn.microsoft.com/en-us/powershell/azure/install-azps-windows?view=azps-14.2.0&tabs=powershell&pivots=windows-psgallery).
66+
67+
### Steps
68+
69+
- **Update PowerShell deployment scripts**: Replace any Front Door (Classic) cmdlets with AFD Standard/Premium cmdlets. For examples, see the [Azure Front Door PowerShell quickstart](https://learn.microsoft.com/azure/frontdoor/create-front-door-powershell).
70+
- **Incorporate new configuration and remove old references**: Ensure scripts configure required components (origins, origin groups, routes, rules, etc.). Remove or comment commands that manage Classic Front Door.
71+
- Command group mapping:
72+
- AzFrontDoorCdn commands under the [Az.Cdn module](https://learn.microsoft.com/en-us/powershell/module/az.cdn/?view=azps-14.2.0) are for AFD Standard/Premium.
73+
- AzCdn commands under the [Az.Cdn module](https://learn.microsoft.com/en-us/powershell/module/az.cdn/?view=azps-14.2.0) are for CDN Classic.
74+
- The [Az.FrontDoor module](https://learn.microsoft.com/en-us/powershell/module/az.frontdoor/?view=azps-14.2.0) is for AFD Classic.
75+
- **Test** your script (locally or in a test pipeline) to verify creation or updates to AFD Standard/Premium, then commit changes to your pipeline.
76+
77+
## CLI
78+
79+
### Prerequisites
80+
81+
- Ensure Azure CLI is installed and updated to a version that supports the `afd` command group (for example, 2.63.0 or later). See [Install Azure CLI](https://learn.microsoft.com/cli/azure/install-azure-cli).
82+
- Log in (`az login`) and set the correct subscription context.
83+
84+
### Steps
85+
86+
- **Update CLI commands in scripts**: Use the Azure Front Door Standard/Premium command group: [`az afd`](https://learn.microsoft.com/en-us/cli/azure/afd?view=azure-cli-latest).
87+
- **Replace or remove Front Door Classic CLI usage**:
88+
- CDN Classic commands: [`az cdn`](https://learn.microsoft.com/en-us/cli/azure/cdn?view=azure-cli-latest)
89+
- AFD Classic commands: [`az network front-door`](https://learn.microsoft.com/en-us/cli/azure/network/front-door?view=azure-cli-latest)
90+
- **Validate** the updated CLI script manually or in a staging pipeline to ensure successful configuration of Front Door Standard/Premium.
91+
92+
## Next step
93+
94+
* For more questions, refer to the [AFD/CDN Classic Migration FAQ](afd-cdn-classic-migration-faq.md).
95+
* Understand the [settings mapping between Azure Front Door tiers](tier-mapping.md).
96+

0 commit comments

Comments
 (0)