Profiles - Migrate

Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. The change need to be committed after this.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/migrate?api-version=2023-05-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

Name of the Resource group within the Azure subscription.

Regex pattern: ^[-\w\._\(\)]+$

subscriptionId
path True

string

Azure Subscription ID.

api-version
query True

string

Version of the API to be used with the client request. Current version is 2023-05-01.

Request Body

Name Required Type Description
classicResourceReference True

ResourceReference

Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.

profileName True

string

Name of the new profile that need to be created.

sku True

Sku

Sku for the migration

migrationWebApplicationFirewallMappings

MigrationWebApplicationFirewallMapping[]

Waf mapping for the migrated profile

Responses

Name Type Description
200 OK

MigrateResult

OK. The request has succeeded.

202 Accepted

MigrateResult

Accepted. The request has been accepted for processing and the operation will complete asynchronously.

Headers

location: string

Other Status Codes

ErrorResponse

CDN error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Profiles_Migrate

Sample Request

POST https://management.azure.com/subscriptions/subid/resourceGroups/RG/providers/Microsoft.Cdn/migrate?api-version=2023-05-01

{
  "sku": {
    "name": "Standard_AzureFrontDoor"
  },
  "classicResourceReference": {
    "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname"
  },
  "profileName": "profile1"
}

Sample Response

{
  "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/operationresults/operationid/profileresults/profile1/migrateresults/profile1",
  "type": "Microsoft.Cdn/migrate",
  "properties": {
    "migratedProfileResourceId": {
      "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1"
    }
  }
}
azure-asyncoperation: https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2023-05-01
{
  "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/operationresults/operationid/profileresults/profile1/migrateresults/profile1",
  "type": "Microsoft.Cdn/migrate",
  "properties": {
    "migratedProfileResourceId": {
      "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1"
    }
  }
}

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

MigrateResult

Result for migrate operation.

MigrationParameters

Request body for Migrate operation.

MigrationWebApplicationFirewallMapping

Web Application Firewall Mapping

ResourceReference

Reference to another resource.

Sku

Standard_Verizon = The SKU name for a Standard Verizon CDN profile. Premium_Verizon = The SKU name for a Premium Verizon CDN profile. Custom_Verizon = The SKU name for a Custom Verizon CDN profile. Standard_Akamai = The SKU name for an Akamai CDN profile. Standard_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using GB based billing model. Standard_Microsoft = The SKU name for a Standard Microsoft CDN profile. Standard_AzureFrontDoor = The SKU name for an Azure Front Door Standard profile. Premium_AzureFrontDoor = The SKU name for an Azure Front Door Premium profile. Standard_955BandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using 95-5 peak bandwidth billing model. Standard_AvgBandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using monthly average peak bandwidth billing model. StandardPlus_ChinaCdn = The SKU name for a China CDN profile for live-streaming using GB based billing model. StandardPlus_955BandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using 95-5 peak bandwidth billing model. StandardPlus_AvgBandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using monthly average peak bandwidth billing model.

SkuName

Name of the pricing tier.

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

MigrateResult

Result for migrate operation.

Name Type Description
id

string

Resource ID.

properties.migratedProfileResourceId

ResourceReference

Arm resource id of the migrated profile

type

string

Resource type.

MigrationParameters

Request body for Migrate operation.

Name Type Description
classicResourceReference

ResourceReference

Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.

migrationWebApplicationFirewallMappings

MigrationWebApplicationFirewallMapping[]

Waf mapping for the migrated profile

profileName

string

Name of the new profile that need to be created.

sku

Sku

Sku for the migration

MigrationWebApplicationFirewallMapping

Web Application Firewall Mapping

Name Type Description
migratedFrom

ResourceReference

Migration From Waf policy

migratedTo

ResourceReference

Migration to Waf policy

ResourceReference

Reference to another resource.

Name Type Description
id

string

Resource ID.

Sku

Standard_Verizon = The SKU name for a Standard Verizon CDN profile. Premium_Verizon = The SKU name for a Premium Verizon CDN profile. Custom_Verizon = The SKU name for a Custom Verizon CDN profile. Standard_Akamai = The SKU name for an Akamai CDN profile. Standard_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using GB based billing model. Standard_Microsoft = The SKU name for a Standard Microsoft CDN profile. Standard_AzureFrontDoor = The SKU name for an Azure Front Door Standard profile. Premium_AzureFrontDoor = The SKU name for an Azure Front Door Premium profile. Standard_955BandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using 95-5 peak bandwidth billing model. Standard_AvgBandWidth_ChinaCdn = The SKU name for a China CDN profile for VOD, Web and download scenarios using monthly average peak bandwidth billing model. StandardPlus_ChinaCdn = The SKU name for a China CDN profile for live-streaming using GB based billing model. StandardPlus_955BandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using 95-5 peak bandwidth billing model. StandardPlus_AvgBandWidth_ChinaCdn = The SKU name for a China CDN live-streaming profile using monthly average peak bandwidth billing model.

Name Type Description
name

SkuName

Name of the pricing tier.

SkuName

Name of the pricing tier.

Name Type Description
Custom_Verizon

string

Premium_AzureFrontDoor

string

Premium_Verizon

string

StandardPlus_955BandWidth_ChinaCdn

string

StandardPlus_AvgBandWidth_ChinaCdn

string

StandardPlus_ChinaCdn

string

Standard_955BandWidth_ChinaCdn

string

Standard_Akamai

string

Standard_AvgBandWidth_ChinaCdn

string

Standard_AzureFrontDoor

string

Standard_ChinaCdn

string

Standard_Microsoft

string

Standard_Verizon

string