你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Set-AzSqlServerIpv6FirewallRule
修改 Azure SQL 数据库服务器中的 IPv6 防火墙规则。
语法
Set-AzSqlServerIpv6FirewallRule
[-Ipv6FirewallRuleName] <String>
-StartIpv6Address <String>
-EndIpv6Address <String>
[-ServerName] <String>
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
Set-AzSqlServerIpv6FirewallRule cmdlet 修改 Azure SQL 数据库服务器中的 IPv6 防火墙规则。
示例
示例 1:修改 IPv6 防火墙规则
Set-AzSqlServerIpv6FirewallRule -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -Ipv6FirewallRuleName "Rule01" -StartIpv6Address "0000:0000:0000:0000:0000:ffff:c0a8:00c5" -EndIpv6Address "0000:0000:0000:0000:0000:ffff:c0a8:00c7"
ResourceGroupName : ResourceGroup01
ServerName : Server01
StartIpv6Address : 0000:0000:0000:0000:0000:ffff:c0a8:00c7
EndIpv6Address : 0000:0000:0000:0000:0000:ffff:c0a8:00c8
Ipv6FirewallRuleName : Rule01
此命令在名为 Server01 的服务器上修改名为 Rule01 的 IPv6 防火墙规则。 该命令修改开始和结束 IPv6 地址。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EndIpv6Address
指定此规则的 IPv6 地址范围的结束值。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Ipv6FirewallRuleName
指定此 cmdlet 修改的 IPv6 防火墙规则的名称。
类型: | String |
别名: | Name |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
指定为其分配服务器的资源组的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ServerName
指定服务器的名称。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-StartIpv6Address
指定 IPv6 防火墙规则的 IPv6 地址范围的起始值。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | False |
必需: | False |
接受管道输入: | False |
接受通配符: | False |