Freigeben über


VirtualEnclaveWorkloadCollection.CreateOrUpdateAsync Method

Definition

Create a WorkloadResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads/{workloadName}
  • Operation Id: WorkloadResource_CreateOrUpdate
  • Default Api Version: 2025-05-01-preview
  • Resource: VirtualEnclaveWorkloadResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string workloadName, Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, workloadName As String, data As VirtualEnclaveWorkloadData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of VirtualEnclaveWorkloadResource))

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.

workloadName
String

The name of the workloadResource Resource.

data
VirtualEnclaveWorkloadData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

workloadName or data is null.

Applies to