NetworkInterfacesOperationsExtensions.CreateOrUpdateAsync(INetworkInterfacesOperations, String, String, NetworkInterface, CancellationToken) Method

Definition

Creates or updates a network interface.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.NetworkInterface> CreateOrUpdateAsync (this Microsoft.Azure.Management.Network.INetworkInterfacesOperations operations, string resourceGroupName, string networkInterfaceName, Microsoft.Azure.Management.Network.Models.NetworkInterface parameters, System.Threading.CancellationToken cancellationToken = null);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Network.INetworkInterfacesOperations * string * string * Microsoft.Azure.Management.Network.Models.NetworkInterface * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Network.Models.NetworkInterface>

Parameters

operations
INetworkInterfacesOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the resource group.

networkInterfaceName
System.String

The name of the network interface.

parameters
NetworkInterface

Parameters supplied to the create or update network interface operation.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<NetworkInterface>

Applies to