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 |
---|---|---|---|---|
resource
|
path | True |
string |
Name of the Resource group within the Azure subscription. Regex pattern: |
subscription
|
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 |
Resource reference of the classic cdn profile or classic frontdoor that need to be migrated. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
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 |
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 |
---|---|
Can |
Recommended sku for the migration |
Can |
Request body for CanMigrate operation. |
Can |
Result for canMigrate operation. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Migration |
Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message. |
Resource |
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 |
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 |
Recommended sku for the migration |
|
properties.errors |
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 |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
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. |