Share via


FirewallRulesOperationsExtensions.CreateOrUpdateAsync Method

Definition

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

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

Parameters

operations
IFirewallRulesOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the Azure resource group.

accountName
System.String

The name of the Data Lake Analytics account.

firewallRuleName
System.String

The name of the firewall rule to create or update.

parameters
CreateOrUpdateFirewallRuleParameters

Parameters supplied to create or update the firewall rule.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<FirewallRule>

Applies to