Class FirewallRule
Allows you to manage an Azure SQL Firewall Rule
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West US",
});
var exampleSqlServer = new Azure.Sql.SqlServer("exampleSqlServer", new Azure.Sql.SqlServerArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = "West US",
Version = "12.0",
AdministratorLogin = "4dm1n157r470r",
AdministratorLoginPassword = "4-v3ry-53cr37-p455w0rd",
});
var exampleFirewallRule = new Azure.Sql.FirewallRule("exampleFirewallRule", new Azure.Sql.FirewallRuleArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ServerName = exampleSqlServer.Name,
StartIpAddress = "10.0.17.62",
EndIpAddress = "10.0.17.62",
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Sql
Assembly: Pulumi.Azure.dll
Syntax
public class FirewallRule : CustomResource
Constructors
View SourceFirewallRule(String, FirewallRuleArgs, CustomResourceOptions)
Create a FirewallRule resource with the given unique name, arguments, and options.
Declaration
public FirewallRule(string name, FirewallRuleArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FirewallRuleArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceEndIpAddress
The ending IP address to allow through the firewall for this rule.
Declaration
public Output<string> EndIpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the firewall rule.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the sql server.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ServerName
The name of the SQL Server on which to create the Firewall Rule.
Declaration
public Output<string> ServerName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
StartIpAddress
The starting IP address to allow through the firewall for this rule.
Declaration
public Output<string> StartIpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, FirewallRuleState, CustomResourceOptions)
Get an existing FirewallRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FirewallRule Get(string name, Input<string> id, FirewallRuleState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FirewallRuleState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FirewallRule |