HubVirtualNetworkConnectionsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates a hub virtual network connection if it doesn't exist else updates the existing one.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.IHubVirtualNetworkConnectionsOperations operations, string resourceGroupName, string virtualHubName, string connectionName, Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection hubVirtualNetworkConnectionParameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.IHubVirtualNetworkConnectionsOperations * string * string * string * Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.HubVirtualNetworkConnection>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IHubVirtualNetworkConnectionsOperations, resourceGroupName As String, virtualHubName As String, connectionName As String, hubVirtualNetworkConnectionParameters As HubVirtualNetworkConnection, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HubVirtualNetworkConnection)

Parameters

operations
IHubVirtualNetworkConnectionsOperations

The operations group for this extension method.

resourceGroupName
String

The resource group name of the HubVirtualNetworkConnection.

virtualHubName
String

The name of the VirtualHub.

connectionName
String

The name of the HubVirtualNetworkConnection.

hubVirtualNetworkConnectionParameters
HubVirtualNetworkConnection

Parameters supplied to create or update a hub virtual network connection.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to