Share via


ManagementGroupNetworkManagerConnectionCollection.CreateOrUpdate Method

Definition

Create a network manager connection on this management group.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Network/networkManagerConnections/{networkManagerConnectionName}
  • Operation Id: ManagementGroupNetworkManagerConnections_CreateOrUpdate
  • Default Api Version: 2024-03-01
  • Resource: ManagementGroupNetworkManagerConnectionResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string networkManagerConnectionName, Azure.ResourceManager.Network.NetworkManagerConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkManagerConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkManagerConnectionData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, networkManagerConnectionName As String, data As NetworkManagerConnectionData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ManagementGroupNetworkManagerConnectionResource)

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.

networkManagerConnectionName
String

Name for the network manager connection.

data
NetworkManagerConnectionData

Network manager connection to be created/updated.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

networkManagerConnectionName or data is null.

Applies to