EdgeDeviceJobCollection.CreateOrUpdate Method

Definition

Create a EdgeDeviceJob

  • Request Path. : /{resourceUri}/providers/Microsoft.AzureStackHCI/edgeDevices/{edgeDeviceName}/jobs/{jobsName}.
  • Operation Id. : EdgeDeviceJobs_CreateOrUpdate.
  • Default Api Version. : 2026-04-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.EdgeDeviceJobResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string jobsName, Azure.ResourceManager.Hci.EdgeDeviceJobData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.EdgeDeviceJobData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.EdgeDeviceJobResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.EdgeDeviceJobData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.EdgeDeviceJobResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, jobsName As String, data As EdgeDeviceJobData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of EdgeDeviceJobResource)

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.

jobsName
String

Name of EdgeDevice Job.

data
EdgeDeviceJobData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

jobsName or data is null.

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

Applies to