ProfileResource.MigrateCdnToAfdAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. This step prepares the profile for migration and will be followed by Commit to finalize the migration.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/cdnMigrateToAfd
- Operation Id: Profiles_CdnMigrateToAfd
- Default Api Version: 2025-04-15
- Resource: ProfileResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.Models.MigrateResult>> MigrateCdnToAfdAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Cdn.Models.CdnMigrationToAfdContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member MigrateCdnToAfdAsync : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.CdnMigrationToAfdContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.Models.MigrateResult>>
override this.MigrateCdnToAfdAsync : Azure.WaitUntil * Azure.ResourceManager.Cdn.Models.CdnMigrationToAfdContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Cdn.Models.MigrateResult>>
Public Overridable Function MigrateCdnToAfdAsync (waitUntil As WaitUntil, content As CdnMigrationToAfdContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of MigrateResult))
Parameters
- 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
- CdnMigrationToAfdContent
Properties needed to migrate the profile.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
content
is null.