Share via


DeviceUpdateInstanceCollection.CreateOrUpdateAsync Method

Definition

Creates or updates instance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances/{instanceName}
  • Operation Id: Instances_Create
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string instanceName, Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DeviceUpdate.DeviceUpdateInstanceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, instanceName As String, data As DeviceUpdateInstanceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DeviceUpdateInstanceResource))

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.

instanceName
String

Instance name.

data
DeviceUpdateInstanceData

Instance details.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

instanceName or data is null.

Applies to