CdnExtensions.MigrateProfileAsync Method

Definition

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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/migrate
  • Operation Id: Profiles_Migrate
  • Default Api Version: 2024-02-01
  • Resource: ProfileResource
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.Models.MigrateResult>> MigrateProfileAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.WaitUntil waitUntil, Azure.ResourceManager.Cdn.Models.MigrationContent content, System.Threading.CancellationToken cancellationToken = default);
static member MigrateProfileAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.MigrationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.Models.MigrateResult>>
<Extension()>
Public Function MigrateProfileAsync (resourceGroupResource As ResourceGroupResource, waitUntil As WaitUntil, content As MigrationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MigrateResult))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

content
MigrationContent

Properties needed to migrate the profile.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or content is null.

Applies to