ManagementGroupNetworkManagerConnectionCollection.CreateOrUpdateAsync 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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string networkManagerConnectionName, Azure.ResourceManager.Network.NetworkManagerConnectionData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkManagerConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Network.NetworkManagerConnectionData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.ManagementGroupNetworkManagerConnectionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, networkManagerConnectionName As String, data As NetworkManagerConnectionData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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