Condividi tramite


ServiceGroupCollection.CreateOrUpdateAsync Method

Definition

Create or Update a serviceGroup

  • Request Path: /providers/Microsoft.Management/serviceGroups/{serviceGroupName}
  • Operation Id: ServiceGroups_CreateOrUpdate
  • Default Api Version: 2024-02-01-preview
  • Resource: ServiceGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serviceGroupName, Azure.ResourceManager.ServiceGroups.ServiceGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ServiceGroups.ServiceGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ServiceGroups.ServiceGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ServiceGroups.ServiceGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, serviceGroupName As String, data As ServiceGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ServiceGroupResource))

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.

serviceGroupName
String

ServiceGroup Name.

data
ServiceGroupData

ServiceGroup creation parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

serviceGroupName or data is null.

Applies to