StorageAccountResource.CustomerInitiatedMigrationAsync 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.
Account Migration request can be triggered for a storage account to change its redundancy level. The migration updates the non-zonal redundant storage account to a zonal redundant account or vice-versa in order to have better reliability and availability. Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration
- Operation Id: StorageAccounts_CustomerInitiatedMigration
- Default Api Version: 2023-05-01
- Resource: StorageAccountResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> CustomerInitiatedMigrationAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Storage.StorageAccountMigrationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CustomerInitiatedMigrationAsync : Azure.WaitUntil * Azure.ResourceManager.Storage.StorageAccountMigrationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.CustomerInitiatedMigrationAsync : Azure.WaitUntil * Azure.ResourceManager.Storage.StorageAccountMigrationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function CustomerInitiatedMigrationAsync (waitUntil As WaitUntil, data As StorageAccountMigrationData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)
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.
The request parameters required to perform storage account migration.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
data
is null.