Share via


NetworkGroupCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a network group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/networkGroups/{networkGroupName}
  • Operation Id: NetworkGroups_CreateOrUpdate
  • Default Api Version: 2023-09-01
  • Resource: NetworkGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string networkGroupName, Azure.ResourceManager.Network.NetworkGroupData data, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkGroupData * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkGroupData * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, networkGroupName As String, data As NetworkGroupData, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NetworkGroupResource))

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.

networkGroupName
String

The name of the network group.

data
NetworkGroupData

Parameters supplied to the specify which network group need to create.

ifMatch
String

The ETag of the transformation. Omit this value to always overwrite the current resource. Specify the last-seen ETag value to prevent accidentally overwriting concurrent changes.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkGroupName or data is null.

Applies to