Share via


StorageAccountResource.EnableHierarchicalNamespaceAsync Method

Definition

Live Migration of storage account to enable Hns

  • Request Path: /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/hnsonmigration
  • Operation Id: StorageAccounts_HierarchicalNamespaceMigration
  • Default Api Version: 2023-05-01
  • Resource: StorageAccountResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> EnableHierarchicalNamespaceAsync (Azure.WaitUntil waitUntil, string requestType, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableHierarchicalNamespaceAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.EnableHierarchicalNamespaceAsync : Azure.WaitUntil * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function EnableHierarchicalNamespaceAsync (waitUntil As WaitUntil, requestType As String, 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.

requestType
String

Required. Hierarchical namespace migration type can either be a hierarchical namespace validation request 'HnsOnValidationRequest' or a hydration request 'HnsOnHydrationRequest'. The validation request will validate the migration whereas the hydration request will migrate the account.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

requestType is null.

Applies to