Share via


RoutingIntentOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates a RoutingIntent resource if it doesn't exist else updates the existing RoutingIntent.

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

Parameters

operations
IRoutingIntentOperations

The operations group for this extension method.

resourceGroupName
String

The resource group name of the RoutingIntent.

virtualHubName
String

The name of the VirtualHub.

routingIntentName
String

The name of the per VirtualHub singleton Routing Intent resource.

routingIntentParameters
RoutingIntent

Parameters supplied to create or update RoutingIntent.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to