DiskPoolCollection.CreateOrUpdate Method

Definition

Create or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected service behavior.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}
  • Operation Id: DiskPools_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StoragePool.DiskPoolResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string diskPoolName, Azure.ResourceManager.StoragePool.Models.DiskPoolCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StoragePool.Models.DiskPoolCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StoragePool.DiskPoolResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StoragePool.Models.DiskPoolCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StoragePool.DiskPoolResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, diskPoolName As String, content As DiskPoolCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DiskPoolResource)

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.

diskPoolName
String

The name of the Disk Pool.

content
DiskPoolCreateOrUpdateContent

Request payload for Disk Pool create operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

diskPoolName is an empty string, and was expected to be non-empty.

diskPoolName or content is null.

Applies to