Share via


ConnectionMonitorsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update a connection monitor.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.ConnectionMonitorResultInner> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.Fluent.IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, Microsoft.Azure.Management.Network.Fluent.Models.ConnectionMonitorInner parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.Fluent.IConnectionMonitorsOperations * string * string * string * Microsoft.Azure.Management.Network.Fluent.Models.ConnectionMonitorInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Fluent.Models.ConnectionMonitorResultInner>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IConnectionMonitorsOperations, resourceGroupName As String, networkWatcherName As String, connectionMonitorName As String, parameters As ConnectionMonitorInner, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConnectionMonitorResultInner)

Parameters

operations
IConnectionMonitorsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group containing Network Watcher.

networkWatcherName
String

The name of the Network Watcher resource.

connectionMonitorName
String

The name of the connection monitor.

parameters
ConnectionMonitorInner

Parameters that define the operation to create a connection monitor.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to