次の方法で共有


ComputeFleetCollection.CreateOrUpdateAsync Method

Definition

Create a Fleet

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureFleet/fleets/{fleetName}
  • Operation Id: Fleet_CreateOrUpdate
  • Default Api Version: 2024-11-01
  • Resource: ComputeFleetResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeFleet.ComputeFleetResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string fleetName, Azure.ResourceManager.ComputeFleet.ComputeFleetData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ComputeFleet.ComputeFleetData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeFleet.ComputeFleetResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ComputeFleet.ComputeFleetData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ComputeFleet.ComputeFleetResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, fleetName As String, data As ComputeFleetData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ComputeFleetResource))

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.

fleetName
String

The name of the Compute Fleet.

data
ComputeFleetData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

fleetName or data is null.

Applies to