FirewallRuleOperationsExtensions.CreateAsync Method
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)
Usage
'Usage
Dim operations As IFirewallRuleOperations
Dim serverName As String
Dim parameters As FirewallRuleCreateParameters
Dim returnValue As Task(Of FirewallRuleCreateResponse)
returnValue = FirewallRuleOperationsExtensions.CreateAsync(operations, serverName, parameters)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateAsync ( _
operations As IFirewallRuleOperations, _
serverName As String, _
parameters As FirewallRuleCreateParameters _
) As Task(Of FirewallRuleCreateResponse)
[ExtensionAttribute]
public static Task<FirewallRuleCreateResponse> CreateAsync (
IFirewallRuleOperations operations,
string serverName,
FirewallRuleCreateParameters parameters
)
[ExtensionAttribute]
public:
static Task<FirewallRuleCreateResponse^>^ CreateAsync (
IFirewallRuleOperations^ operations,
String^ serverName,
FirewallRuleCreateParameters^ parameters
)
/** @attribute ExtensionAttribute() */
public static Task<FirewallRuleCreateResponse> CreateAsync (
IFirewallRuleOperations operations,
String serverName,
FirewallRuleCreateParameters parameters
)
ExtensionAttribute
public static function CreateAsync (
operations : IFirewallRuleOperations,
serverName : String,
parameters : FirewallRuleCreateParameters
) : Task<FirewallRuleCreateResponse>
Parameters
- operations
Reference to the Microsoft.WindowsAzure.Management.Sql.IFirewallRuleOperations.
- serverName
Required. The name of the Azure SQL Database Server to which this rule will be applied.
- parameters
Required. The parameters for the Create Firewall Rule operation.
Return Value
Contains the response to a Create Firewall Rule operation.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
FirewallRuleOperationsExtensions Class
FirewallRuleOperationsExtensions Members
Microsoft.WindowsAzure.Management.Sql Namespace