Share via


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.String

    The name of the Azure SQL Database Server to which this rule will be applied.

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