Udostępnij za pośrednictwem


NetworkWatchersOperationsExtensions.CheckConnectivityAsync Method

Definition

Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server.

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

Parameters

operations
INetworkWatchersOperations

The operations group for this extension method.

resourceGroupName
String

The name of the network watcher resource group.

networkWatcherName
String

The name of the network watcher resource.

parameters
ConnectivityParameters

Parameters that determine how the connectivity check will be performed.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to