1. Packages
  2. Azure Native v2
  3. API Docs
  4. sql
  5. IPv6FirewallRule
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.sql.IPv6FirewallRule

Explore with Pulumi AI

An IPv6 server firewall rule. Azure REST API version: 2021-11-01. Prior API version in Azure Native 1.x: 2021-08-01-preview.

Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.

Example Usage

Create an IPv6 firewall rule max/min

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var iPv6FirewallRule = new AzureNative.Sql.IPv6FirewallRule("iPv6FirewallRule", new()
    {
        EndIPv6Address = "0000:0000:0000:0000:0000:ffff:0000:0003",
        FirewallRuleName = "firewallrulecrudtest-5370",
        ResourceGroupName = "firewallrulecrudtest-12",
        ServerName = "firewallrulecrudtest-6285",
        StartIPv6Address = "0000:0000:0000:0000:0000:ffff:0000:0003",
    });

});
Copy
package main

import (
	sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewIPv6FirewallRule(ctx, "iPv6FirewallRule", &sql.IPv6FirewallRuleArgs{
			EndIPv6Address:    pulumi.String("0000:0000:0000:0000:0000:ffff:0000:0003"),
			FirewallRuleName:  pulumi.String("firewallrulecrudtest-5370"),
			ResourceGroupName: pulumi.String("firewallrulecrudtest-12"),
			ServerName:        pulumi.String("firewallrulecrudtest-6285"),
			StartIPv6Address:  pulumi.String("0000:0000:0000:0000:0000:ffff:0000:0003"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.IPv6FirewallRule;
import com.pulumi.azurenative.sql.IPv6FirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var iPv6FirewallRule = new IPv6FirewallRule("iPv6FirewallRule", IPv6FirewallRuleArgs.builder()
            .endIPv6Address("0000:0000:0000:0000:0000:ffff:0000:0003")
            .firewallRuleName("firewallrulecrudtest-5370")
            .resourceGroupName("firewallrulecrudtest-12")
            .serverName("firewallrulecrudtest-6285")
            .startIPv6Address("0000:0000:0000:0000:0000:ffff:0000:0003")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const iPv6FirewallRule = new azure_native.sql.IPv6FirewallRule("iPv6FirewallRule", {
    endIPv6Address: "0000:0000:0000:0000:0000:ffff:0000:0003",
    firewallRuleName: "firewallrulecrudtest-5370",
    resourceGroupName: "firewallrulecrudtest-12",
    serverName: "firewallrulecrudtest-6285",
    startIPv6Address: "0000:0000:0000:0000:0000:ffff:0000:0003",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

i_pv6_firewall_rule = azure_native.sql.IPv6FirewallRule("iPv6FirewallRule",
    end_i_pv6_address="0000:0000:0000:0000:0000:ffff:0000:0003",
    firewall_rule_name="firewallrulecrudtest-5370",
    resource_group_name="firewallrulecrudtest-12",
    server_name="firewallrulecrudtest-6285",
    start_i_pv6_address="0000:0000:0000:0000:0000:ffff:0000:0003")
Copy
resources:
  iPv6FirewallRule:
    type: azure-native:sql:IPv6FirewallRule
    properties:
      endIPv6Address: 0000:0000:0000:0000:0000:ffff:0000:0003
      firewallRuleName: firewallrulecrudtest-5370
      resourceGroupName: firewallrulecrudtest-12
      serverName: firewallrulecrudtest-6285
      startIPv6Address: 0000:0000:0000:0000:0000:ffff:0000:0003
Copy

Update an IPv6 firewall rule max/min

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var iPv6FirewallRule = new AzureNative.Sql.IPv6FirewallRule("iPv6FirewallRule", new()
    {
        EndIPv6Address = "0000:0000:0000:0000:0000:ffff:0000:0001",
        FirewallRuleName = "firewallrulecrudtest-3927",
        ResourceGroupName = "firewallrulecrudtest-12",
        ServerName = "firewallrulecrudtest-6285",
        StartIPv6Address = "0000:0000:0000:0000:0000:ffff:0000:0001",
    });

});
Copy
package main

import (
	sql "github.com/pulumi/pulumi-azure-native-sdk/sql/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.NewIPv6FirewallRule(ctx, "iPv6FirewallRule", &sql.IPv6FirewallRuleArgs{
			EndIPv6Address:    pulumi.String("0000:0000:0000:0000:0000:ffff:0000:0001"),
			FirewallRuleName:  pulumi.String("firewallrulecrudtest-3927"),
			ResourceGroupName: pulumi.String("firewallrulecrudtest-12"),
			ServerName:        pulumi.String("firewallrulecrudtest-6285"),
			StartIPv6Address:  pulumi.String("0000:0000:0000:0000:0000:ffff:0000:0001"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.sql.IPv6FirewallRule;
import com.pulumi.azurenative.sql.IPv6FirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var iPv6FirewallRule = new IPv6FirewallRule("iPv6FirewallRule", IPv6FirewallRuleArgs.builder()
            .endIPv6Address("0000:0000:0000:0000:0000:ffff:0000:0001")
            .firewallRuleName("firewallrulecrudtest-3927")
            .resourceGroupName("firewallrulecrudtest-12")
            .serverName("firewallrulecrudtest-6285")
            .startIPv6Address("0000:0000:0000:0000:0000:ffff:0000:0001")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const iPv6FirewallRule = new azure_native.sql.IPv6FirewallRule("iPv6FirewallRule", {
    endIPv6Address: "0000:0000:0000:0000:0000:ffff:0000:0001",
    firewallRuleName: "firewallrulecrudtest-3927",
    resourceGroupName: "firewallrulecrudtest-12",
    serverName: "firewallrulecrudtest-6285",
    startIPv6Address: "0000:0000:0000:0000:0000:ffff:0000:0001",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

i_pv6_firewall_rule = azure_native.sql.IPv6FirewallRule("iPv6FirewallRule",
    end_i_pv6_address="0000:0000:0000:0000:0000:ffff:0000:0001",
    firewall_rule_name="firewallrulecrudtest-3927",
    resource_group_name="firewallrulecrudtest-12",
    server_name="firewallrulecrudtest-6285",
    start_i_pv6_address="0000:0000:0000:0000:0000:ffff:0000:0001")
Copy
resources:
  iPv6FirewallRule:
    type: azure-native:sql:IPv6FirewallRule
    properties:
      endIPv6Address: 0000:0000:0000:0000:0000:ffff:0000:0001
      firewallRuleName: firewallrulecrudtest-3927
      resourceGroupName: firewallrulecrudtest-12
      serverName: firewallrulecrudtest-6285
      startIPv6Address: 0000:0000:0000:0000:0000:ffff:0000:0001
Copy

Create IPv6FirewallRule Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IPv6FirewallRule(name: string, args: IPv6FirewallRuleArgs, opts?: CustomResourceOptions);
@overload
def IPv6FirewallRule(resource_name: str,
                     args: IPv6FirewallRuleArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def IPv6FirewallRule(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     resource_group_name: Optional[str] = None,
                     server_name: Optional[str] = None,
                     end_i_pv6_address: Optional[str] = None,
                     firewall_rule_name: Optional[str] = None,
                     name: Optional[str] = None,
                     start_i_pv6_address: Optional[str] = None)
func NewIPv6FirewallRule(ctx *Context, name string, args IPv6FirewallRuleArgs, opts ...ResourceOption) (*IPv6FirewallRule, error)
public IPv6FirewallRule(string name, IPv6FirewallRuleArgs args, CustomResourceOptions? opts = null)
public IPv6FirewallRule(String name, IPv6FirewallRuleArgs args)
public IPv6FirewallRule(String name, IPv6FirewallRuleArgs args, CustomResourceOptions options)
type: azure-native:sql:IPv6FirewallRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IPv6FirewallRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IPv6FirewallRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IPv6FirewallRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IPv6FirewallRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IPv6FirewallRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var ipv6FirewallRuleResource = new AzureNative.Sql.IPv6FirewallRule("ipv6FirewallRuleResource", new()
{
    ResourceGroupName = "string",
    ServerName = "string",
    EndIPv6Address = "string",
    FirewallRuleName = "string",
    Name = "string",
    StartIPv6Address = "string",
});
Copy
example, err := sql.NewIPv6FirewallRule(ctx, "ipv6FirewallRuleResource", &sql.IPv6FirewallRuleArgs{
	ResourceGroupName: "string",
	ServerName:        "string",
	EndIPv6Address:    "string",
	FirewallRuleName:  "string",
	Name:              "string",
	StartIPv6Address:  "string",
})
Copy
var ipv6FirewallRuleResource = new IPv6FirewallRule("ipv6FirewallRuleResource", IPv6FirewallRuleArgs.builder()
    .resourceGroupName("string")
    .serverName("string")
    .endIPv6Address("string")
    .firewallRuleName("string")
    .name("string")
    .startIPv6Address("string")
    .build());
Copy
ipv6_firewall_rule_resource = azure_native.sql.IPv6FirewallRule("ipv6FirewallRuleResource",
    resource_group_name=string,
    server_name=string,
    end_i_pv6_address=string,
    firewall_rule_name=string,
    name=string,
    start_i_pv6_address=string)
Copy
const ipv6FirewallRuleResource = new azure_native.sql.IPv6FirewallRule("ipv6FirewallRuleResource", {
    resourceGroupName: "string",
    serverName: "string",
    endIPv6Address: "string",
    firewallRuleName: "string",
    name: "string",
    startIPv6Address: "string",
});
Copy
type: azure-native:sql:IPv6FirewallRule
properties:
    endIPv6Address: string
    firewallRuleName: string
    name: string
    resourceGroupName: string
    serverName: string
    startIPv6Address: string
Copy

IPv6FirewallRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IPv6FirewallRule resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
EndIPv6Address string
The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.
FirewallRuleName Changes to this property will trigger replacement. string
The name of the firewall rule.
Name string
Resource name.
StartIPv6Address string
The start IP address of the firewall rule. Must be IPv6 format.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
ServerName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
EndIPv6Address string
The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.
FirewallRuleName Changes to this property will trigger replacement. string
The name of the firewall rule.
Name string
Resource name.
StartIPv6Address string
The start IP address of the firewall rule. Must be IPv6 format.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
endIPv6Address String
The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.
firewallRuleName Changes to this property will trigger replacement. String
The name of the firewall rule.
name String
Resource name.
startIPv6Address String
The start IP address of the firewall rule. Must be IPv6 format.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
string
The name of the server.
endIPv6Address string
The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.
firewallRuleName Changes to this property will trigger replacement. string
The name of the firewall rule.
name string
Resource name.
startIPv6Address string
The start IP address of the firewall rule. Must be IPv6 format.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
server_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the server.
end_i_pv6_address str
The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.
firewall_rule_name Changes to this property will trigger replacement. str
The name of the firewall rule.
name str
Resource name.
start_i_pv6_address str
The start IP address of the firewall rule. Must be IPv6 format.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
serverName
This property is required.
Changes to this property will trigger replacement.
String
The name of the server.
endIPv6Address String
The end IP address of the firewall rule. Must be IPv6 format. Must be greater than or equal to startIpAddress.
firewallRuleName Changes to this property will trigger replacement. String
The name of the firewall rule.
name String
Resource name.
startIPv6Address String
The start IP address of the firewall rule. Must be IPv6 format.

Outputs

All input properties are implicitly available as output properties. Additionally, the IPv6FirewallRule resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Type string
Resource type.
Id string
The provider-assigned unique ID for this managed resource.
Type string
Resource type.
id String
The provider-assigned unique ID for this managed resource.
type String
Resource type.
id string
The provider-assigned unique ID for this managed resource.
type string
Resource type.
id str
The provider-assigned unique ID for this managed resource.
type str
Resource type.
id String
The provider-assigned unique ID for this managed resource.
type String
Resource type.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:sql:IPv6FirewallRule firewallrulecrudtest-3927 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/ipv6FirewallRules/{firewallRuleName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0