StorageMoverCollection.CreateOrUpdate Method

Definition

Creates or updates a top-level Storage Mover resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}
  • Operation Id: StorageMovers_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: StorageMoverResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageMover.StorageMoverResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string storageMoverName, Azure.ResourceManager.StorageMover.StorageMoverData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StorageMover.StorageMoverData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageMover.StorageMoverResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.StorageMover.StorageMoverData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageMover.StorageMoverResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, storageMoverName As String, data As StorageMoverData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of StorageMoverResource)

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.

storageMoverName
String

The name of the Storage Mover resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

storageMoverName or data is null.

Applies to