NetworkGroupCollection.CreateOrUpdate Method

Definition

Overloads

Name Description
CreateOrUpdate(WaitUntil, String, NetworkGroupData, Nullable<ETag>, CancellationToken)

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. : 2025-07-01.
CreateOrUpdate(WaitUntil, String, NetworkGroupData, String, CancellationToken)

Invokes the CreateOrUpdate compatibility operation.

CreateOrUpdate(WaitUntil, String, NetworkGroupData, Nullable<ETag>, CancellationToken)

Source:
NetworkGroupCollection.cs

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. : 2025-07-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string networkGroupName, Azure.ResourceManager.Network.NetworkGroupData data, Azure.ETag? ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkGroupData * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkGroupData * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, networkGroupName As String, data As NetworkGroupData, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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
Nullable<ETag>

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 or data is null.

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

Applies to

CreateOrUpdate(WaitUntil, String, NetworkGroupData, String, CancellationToken)

Source:
NetworkGroupCollection.OperationCompatibility.cs
Source:
NetworkGroupCollection.cs

Invokes the CreateOrUpdate compatibility operation.

public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string networkGroupName, Azure.ResourceManager.Network.NetworkGroupData data, string ifMatch, System.Threading.CancellationToken cancellationToken);
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string networkGroupName, Azure.ResourceManager.Network.NetworkGroupData data, string ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkGroupData * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkGroupData * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.NetworkGroupResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, networkGroupName As String, data As NetworkGroupData, ifMatch As String, cancellationToken As CancellationToken) As ArmOperation(Of NetworkGroupResource)
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, networkGroupName As String, data As NetworkGroupData, Optional ifMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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