다음을 통해 공유


VirtualNetworkRulesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates the specified virtual network rule. During update, the virtual network rule with the specified name will be replaced with this new virtual network rule.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.VirtualNetworkRule> CreateOrUpdateAsync (this Microsoft.Azure.Management.DataLake.Store.IVirtualNetworkRulesOperations operations, string resourceGroupName, string accountName, string virtualNetworkRuleName, Microsoft.Azure.Management.DataLake.Store.Models.CreateOrUpdateVirtualNetworkRuleParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DataLake.Store.IVirtualNetworkRulesOperations * string * string * string * Microsoft.Azure.Management.DataLake.Store.Models.CreateOrUpdateVirtualNetworkRuleParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Store.Models.VirtualNetworkRule>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IVirtualNetworkRulesOperations, resourceGroupName As String, accountName As String, virtualNetworkRuleName As String, parameters As CreateOrUpdateVirtualNetworkRuleParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualNetworkRule)

Parameters

operations
IVirtualNetworkRulesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the Azure resource group.

accountName
String

The name of the Data Lake Store account.

virtualNetworkRuleName
String

The name of the virtual network rule to create or update.

parameters
CreateOrUpdateVirtualNetworkRuleParameters

Parameters supplied to create or update the virtual network rule.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to