Share via


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