Udostępnij za pośrednictwem


StorageAccountResource.EnableHierarchicalNamespace 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 Azure.ResourceManager.ArmOperation EnableHierarchicalNamespace (Azure.WaitUntil waitUntil, string requestType, System.Threading.CancellationToken cancellationToken = default);
abstract member EnableHierarchicalNamespace : Azure.WaitUntil * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
override this.EnableHierarchicalNamespace : Azure.WaitUntil * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation
Public Overridable Function EnableHierarchicalNamespace (waitUntil As WaitUntil, requestType As String, 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.

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