Share via


StorageAccountResource.CustomerInitiatedMigration Method

Definition

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 Azure.ResourceManager.ArmOperation CustomerInitiatedMigration (Azure.WaitUntil waitUntil, Azure.ResourceManager.Storage.StorageAccountMigrationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CustomerInitiatedMigration : Azure.WaitUntil * Azure.ResourceManager.Storage.StorageAccountMigrationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.CustomerInitiatedMigration : Azure.WaitUntil * Azure.ResourceManager.Storage.StorageAccountMigrationData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function CustomerInitiatedMigration (waitUntil As WaitUntil, data As StorageAccountMigrationData, Optional cancellationToken As CancellationToken = Nothing) As 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.

data
StorageAccountMigrationData

The request parameters required to perform storage account migration.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to