New-AzSqlServerIpv6FirewallRule
Creates an IPv6 firewall rule for a SQL Database server.
Syntax
UserSpecifiedRuleSet
New-AzSqlServerIpv6FirewallRule
[-ServerName] <String>
[-ResourceGroupName] <String>
-Ipv6FirewallRuleName <String>
-StartIpv6Address <String>
-EndIpv6Address <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-AzSqlServerIpv6FirewallRule cmdlet creates an IPv6 firewall rule for the specified Azure SQL Database server.
Examples
Example 1: Create an IPv6 firewall rule
New-AzSqlServerIpv6FirewallRule -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -Ipv6FirewallRuleName "Rule01" -StartIpv6Address "0000:0000:0000:0000:0000:ffff:c0a8:00c6" -EndIpv6Address "0000:0000:0000:0000:0000:ffff:c0a8:00c7"
ResourceGroupName : ResourceGroup01
ServerName : Server01
StartIpv6Address : 0000:0000:0000:0000:0000:ffff:c0a8:00c6
EndIpv6Address : 0000:0000:0000:0000:0000:ffff:c0a8:00c7
Ipv6FirewallRuleName : Rule01
This command creates an IPv6 firewall rule named Rule01 on the server named Server01.
The rule includes the specified start and end IPv6 addresses.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: False
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Parameter properties
Type: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, AzureRmContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-EndIpv6Address
Specifies the end value of the IPv6 address range for this rule.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UserSpecifiedRuleSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Ipv6FirewallRuleName
Specifies the name of the new IPv6 firewall rule.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Aliases: Name
Parameter sets
UserSpecifiedRuleSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
Specifies the name of a resource group to which the server is assigned.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ServerName
Specifies the name of a server.
Specify the server name, not the fully qualified DNS name.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
(All)
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-StartIpv6Address
Specifies the start value of the IPv6 address range for the IPv6 firewall rule.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
UserSpecifiedRuleSet
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: False
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs