IFirewallRuleOperations.CreateAsync Method (String, FirewallRuleCreateParameters, CancellationToken)
Adds a new server-level Firewall Rule for an Azure SQL Database Server.
Namespace: Microsoft.WindowsAzure.Management.Sql
Assembly: Microsoft.WindowsAzure.Management.Sql (in Microsoft.WindowsAzure.Management.Sql.dll)
Syntax
Task<FirewallRuleCreateResponse> CreateAsync(
string serverName,
FirewallRuleCreateParameters parameters,
CancellationToken cancellationToken
)
Task<FirewallRuleCreateResponse^>^ CreateAsync(
String^ serverName,
FirewallRuleCreateParameters^ parameters,
CancellationToken cancellationToken
)
abstract CreateAsync :
serverName:string *
parameters:FirewallRuleCreateParameters *
cancellationToken:CancellationToken -> Task<FirewallRuleCreateResponse>
Function CreateAsync (
serverName As String,
parameters As FirewallRuleCreateParameters,
cancellationToken As CancellationToken
) As Task(Of FirewallRuleCreateResponse)
Parameters
serverName
Type: System.StringThe name of the Azure SQL Database Server to which this rule will be applied.
parameters
Type: Microsoft.WindowsAzure.Management.Sql.Models.FirewallRuleCreateParametersThe parameters for the Create Firewall Rule operation.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<FirewallRuleCreateResponse>
Contains the response to a Create Firewall Rule operation.
See Also
IFirewallRuleOperations Interface
Microsoft.WindowsAzure.Management.Sql Namespace
Return to top