Freigeben über


VirtualEnclaveWorkloadCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string workloadName, Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, workloadName As String, data As VirtualEnclaveWorkloadData, Optional cancellationToken As CancellationToken = Nothing) As 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