Rediger

Migrate Azure Front Door (classic) to Standard or Premium tier with Azure PowerShell

Applies to: ✔️ Front Door (classic)

Important

Azure Front Door (classic) retires on March 31, 2027. Because the service is retiring, it no longer supports profile creation, new domain onboarding, or managed certificates. To avoid service disruption, ⁠migrate to Azure Front Door Standard or Premium. For more information, see ⁠Azure Front Door (classic) retirement.

Azure Front Door Standard and Premium tier bring the latest cloud delivery network features to Azure. By using enhanced security features and an all-in-one service, you secure your application content and bring it closer to your end users through the Microsoft global network. This article guides you through the migration process to move your Azure Front Door (classic) profile to either a Standard or Premium tier profile with Azure PowerShell.

Prerequisites

  • Review the About Front Door tier migration article.
  • Ensure your Front Door (classic) profile can be migrated:
    • Azure Front Door Standard and Premium require all custom domains to use HTTPS. If you don't have your own certificate, use an Azure Front Door managed certificate. The certificate is free of charge and Azure manages it for you.
      • Session affinity is enabled in the origin group settings for an Azure Front Door Standard or Premium profile. In Azure Front Door (classic), set session affinity at the domain level. As part of the migration, session affinity is based on the Front Door (classic) profile settings. If you have two domains in your classic profile that share the same backend pool (origin group), session affinity must be consistent across both domains for migration validation to pass.
  • Latest Azure PowerShell module installed locally or Azure Cloud Shell. For more information, see Install and configure Azure PowerShell.

Note

You don't need to make any DNS changes before or during the migration process. However, once the migration finishes and traffic flows through your new Azure Front Door profile, you need to update your DNS records. For more information, see Post-migration endpoint cutover.

Validate compatibility

  1. Open Azure PowerShell and connect to your Azure account. For more information, see Connect to Azure PowerShell.

  2. Test your Azure Front Door (classic) profile to see if it's compatible for migration. Use the Test-AzFrontDoorCdnProfileMigration command to test your profile. Replace the values for the resource group name and resource ID with your own values. Use Get-AzFrontDoor to get the resource ID for your Front Door (classic) profile.

    Replace the following values in the command:

    • <subscriptionId>: Your subscription ID.
    • <resourceGroupName>: The resource group name of the Front Door (classic).
    • <frontdoorClassicName>: The name of the Front Door (classic) profile.
    Test-AzFrontDoorCdnProfileMigration -ResourceGroupName <resourceGroupName> -ClassicResourceReferenceId /subscriptions/<subscriptionId>/resourcegroups/<resourceGroupName>/providers/Microsoft.Network/frontdoors/<frontdoorClassicName>
    

    If the migration is compatible, you see the following output:

    CanMigrate DefaultSku
    ---------- ----------
    True       Standard_AzureFrontDoor or Premium_AzureFrontDoor
    

    If the migration isn't compatible, you see the following output:

    CanMigrate DefaultSku
    ---------- ----------
    False      
    

Prepare for migration

Note

  • Managed certificate isn't currently supported for Azure Front Door Standard or Premium in Azure Government Cloud. You need to use BYOC for Azure Front Door Standard or Premium in Azure Government Cloud or wait until this capability is available.

Run the Start-AzFrontDoorCdnProfilePrepareMigration command to prepare for migration. Replace the values for the resource group name, resource ID, and profile name with your own values. For SkuName, use either Standard_AzureFrontDoor or Premium_AzureFrontDoor. The SkuName is based on the output from the Test-AzFrontDoorCdnProfileMigration command.

Replace the following values in the command:

  • <subscriptionId>: Your subscription ID.
  • <resourceGroupName>: The resource group name of the Front Door (classic).
  • <frontdoorClassicName>: The name of the Front Door (classic) profile.
Start-AzFrontDoorCdnProfilePrepareMigration -ResourceGroupName <resourceGroupName> -ClassicResourceReferenceId /subscriptions/<subscriptionId>/resourcegroups/<resourceGroupName>/providers/Microsoft.Network/frontdoors/<frontdoorClassicName> -ProfileName myAzureFrontDoor -SkuName Premium_AzureFrontDoor

The output looks similar to the following:

Starting the parameter validation process.
The parameters are successfully validated.
Your new Front Door profile is being created. Wait until the process finishes. This process might take several minutes.

Your new Front Door profile with the configuration is successfully created.

Migrate

Run the Enable-AzFrontDoorCdnProfileMigration command to migrate your Front Door (classic).

Enable-AzFrontDoorCdnProfileMigration -ProfileName myAzureFrontDoor -ResourceGroupName myAFDResourceGroup

The output looks similar to the following:

Start to migrate.
This process disables your Front Door (classic) profile and moves all your traffic and configurations to the new Front Door profile.
Migrate succeeded.

Post-migration endpoint cutover

Azure Front Door (classic) uses a different fully qualified domain name (FQDN) than Azure Front Door Standard or Premium. For example, a classic endpoint might be contoso.azurefd.net, while a Standard or Premium endpoint might be contoso-mdjf2jfgjf82mnzx.z01.azurefd.net. For more information, see Endpoints in Azure Front Door.

Even though Azure Front Door automatically routes traffic from the classic endpoint to your new Standard or Premium profile without any configuration changes, you must complete the following post-migration action depending on your scenario:

  • Custom domains: Update the DNS record to point to the new Azure Front Door Standard/Premium endpoint.

  • Direct use of the classic default endpoint: Replace the classic hostname with the new endpoint hostname in your applications, clients, and integrations.

Both endpoints remain functional during the transition, so you can make and validate this change without downtime.

Warning

Complete the endpoint cutover to the new Azure Front Door Standard/Premium endpoint by March 31, 2028. Starting April 1, 2028, classic endpoints are no longer supported and might stop functioning. Custom domains, applications, or clients that still depend on a classic endpoint might stop receiving traffic.