Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
FirewallRule
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.Sql
Assembly: Pulumi.Azure.dll
Syntax
public class FirewallRule : CustomResource

Constructors

View Source

FirewallRule(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 Source

EndIpAddress

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>
View Source

Name

The name of the firewall rule.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.