Share via


RouteMapsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates a RouteMap if it doesn't exist else updates the existing one.

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

Parameters

operations
IRouteMapsOperations

The operations group for this extension method.

resourceGroupName
String

The resource group name of the RouteMap's resource group.

virtualHubName
String

The name of the VirtualHub containing the RouteMap.

routeMapName
String

The name of the RouteMap.

routeMapParameters
RouteMap

Parameters supplied to create or update a RouteMap.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to