NetworkWatchersOperationsExtensions.CheckConnectivityAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.Models.ConnectivityInformation> CheckConnectivityAsync (this Microsoft.Azure.Management.Network.INetworkWatchersOperations operations, string resourceGroupName, string networkWatcherName, Microsoft.Azure.Management.Network.Models.ConnectivityParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CheckConnectivityAsync : Microsoft.Azure.Management.Network.INetworkWatchersOperations * string * string * Microsoft.Azure.Management.Network.Models.ConnectivityParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.ConnectivityInformation>
<Extension()>
Public Function CheckConnectivityAsync (operations As INetworkWatchersOperations, resourceGroupName As String, networkWatcherName As String, parameters As ConnectivityParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConnectivityInformation)
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
Azure SDK for .NET