Redigera

Dela via


New-AzSqlServerIpv6FirewallRule

Creates an IPv6 firewall rule for a SQL Database server.

Syntax

New-AzSqlServerIpv6FirewallRule
   -Ipv6FirewallRuleName <String>
   -StartIpv6Address <String>
   -EndIpv6Address <String>
   [-ServerName] <String>
   [-ResourceGroupName] <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.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EndIpv6Address

Specifies the end value of the IPv6 address range for this rule.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Ipv6FirewallRuleName

Specifies the name of the new IPv6 firewall rule.

Type:String
Aliases:Name
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Specifies the name of a resource group to which the server is assigned.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ServerName

Specifies the name of a server. Specify the server name, not the fully qualified DNS name.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-StartIpv6Address

Specifies the start value of the IPv6 address range for the IPv6 firewall rule.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Outputs

AzureSqlServerIpv6FirewallRuleModel