Profiles - Can Migrate

Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/canMigrate?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.

Responses

Name Type Description
200 OK

CanMigrateResult

OK. The request has succeeded.

202 Accepted

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_CanMigrate

Sample Request

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

{
  "classicResourceReference": {
    "id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname"
  }
}

Sample Response

{
  "id": "/subscriptions/subid/resourcegroups/yaoshitest/providers/Microsoft.Cdn/operationresults/operationid/profileresults/DummyProfile/canmigrateresults/DummyProfile",
  "type": "Microsoft.Cdn/canmigrate",
  "properties": {
    "canMigrate": true,
    "defaultSku": "Standard_AzureFrontDoor",
    "errors": null
  }
}
azure-asyncoperation: https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2023-05-01

Definitions

Name Description
CanMigrateDefaultSku

Recommended sku for the migration

CanMigrateParameters

Request body for CanMigrate operation.

CanMigrateResult

Result for canMigrate operation.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

MigrationErrorType

Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.

ResourceReference

Reference to another resource.

CanMigrateDefaultSku

Recommended sku for the migration

Name Type Description
Premium_AzureFrontDoor

string

Standard_AzureFrontDoor

string

CanMigrateParameters

Request body for CanMigrate operation.

Name Type Description
classicResourceReference

ResourceReference

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

CanMigrateResult

Result for canMigrate operation.

Name Type Description
id

string

Resource ID.

properties.canMigrate

boolean

Flag that says if the profile can be migrated

properties.defaultSku

CanMigrateDefaultSku

Recommended sku for the migration

properties.errors

MigrationErrorType[]

List of migration errors

type

string

Resource type.

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.

MigrationErrorType

Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.

Name Type Description
code

string

Error code.

errorMessage

string

Error message indicating why the operation failed.

nextSteps

string

Describes what needs to be done to fix the problem

resourceName

string

Resource which has the problem.

ResourceReference

Reference to another resource.

Name Type Description
id

string

Resource ID.