你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az network firewall policy

备注

此参考是 Azure CLI (版本 2.15.0 或更高版本) 的 azure 防火墙 扩展的一部分。 首次运行 az network firewall policy 命令时,该扩展将自动安装。 详细了解扩展。

管理和配置 Azure 防火墙策略。

命令

az network firewall policy create

创建 Azure 防火墙策略。

az network firewall policy delete

删除 Azure 防火墙策略。

az network firewall policy intrusion-detection

管理入侵签名规则和绕过规则。

az network firewall policy intrusion-detection add

添加覆盖的入侵签名或绕过规则或专用范围列表,以便进行入侵检测。

az network firewall policy intrusion-detection list

列出所有入侵检测配置。

az network firewall policy intrusion-detection remove

删除覆盖的入侵签名或绕过规则。

az network firewall policy list

列出所有 Azure 防火墙策略。

az network firewall policy rule-collection-group

管理和配置 Azure 防火墙策略规则收集组。

az network firewall policy rule-collection-group collection

在规则集合组中管理和配置 Azure 防火墙策略规则集合。

az network firewall policy rule-collection-group collection add-filter-collection

将筛选器集合添加到 Azure 防火墙策略规则收集组中。

az network firewall policy rule-collection-group collection add-nat-collection

将 NAT 集合添加到 Azure 防火墙策略规则集合组中。

az network firewall policy rule-collection-group collection list

列出 Azure 防火墙策略规则集合组的所有规则集合。

az network firewall policy rule-collection-group collection remove

从 Azure 防火墙策略规则收集组中删除规则集合。

az network firewall policy rule-collection-group collection rule

在 Azure 防火墙策略的规则集合组中管理和配置筛选器集合的规则。

az network firewall policy rule-collection-group collection rule add

将规则添加到 Azure 防火墙策略规则集合中。

az network firewall policy rule-collection-group collection rule remove

从 Azure 防火墙策略规则集合中删除规则。

az network firewall policy rule-collection-group collection rule update

更新 Azure 防火墙策略规则集合的规则。

az network firewall policy rule-collection-group create

创建 Azure 防火墙策略规则集合组。

az network firewall policy rule-collection-group delete

删除Azure 防火墙策略规则集合组。

az network firewall policy rule-collection-group list

列出所有 Azure 防火墙策略规则集合组。

az network firewall policy rule-collection-group show

显示 Azure 防火墙策略规则集合组。

az network firewall policy rule-collection-group update

更新 Azure 防火墙策略规则集合组。

az network firewall policy show

显示 Azure 防火墙策略。

az network firewall policy update

更新 Azure 防火墙策略。

az network firewall policy create

创建 Azure 防火墙策略。

az network firewall policy create --name
                                  --resource-group
                                  [--base-policy]
                                  [--cert-name]
                                  [--dns-servers]
                                  [--enable-dns-proxy {false, true}]
                                  [--fqdns]
                                  [--identity]
                                  [--idps-mode {Alert, Deny, Off}]
                                  [--ip-addresses]
                                  [--key-vault-secret-id]
                                  [--location]
                                  [--sku {Basic, Premium, Standard}]
                                  [--sql {false, true}]
                                  [--tags]
                                  [--threat-intel-mode {Alert, Deny, Off}]

必需参数

--name -n

防火墙策略的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

可选参数

--base-policy

继承规则的父防火墙策略的名称或 ID。

--cert-name

CA 证书的名称。

--dns-servers

DNS 服务器 IP 地址的空间分隔列表。

--enable-dns-proxy

启用 DNS 代理。

接受的值: false, true
--fqdns

FQDN 的空间分隔列表。

--identity

ManagedIdentity 资源的名称或 ID。

--idps-mode

IDPS 模式。

接受的值: Alert, Deny, Off
--ip-addresses

IPv4 地址的空间分隔列表。

--key-vault-secret-id

(base-64 编码的非加密 pfx 的机密 ID) KeyVault 中存储的机密或证书对象。

--location -l

位置。 az account list-locations 中的值。 可以使用 az configure --defaults location=<location> 配置默认位置。

--sku

防火墙策略的 SKU。

接受的值: Basic, Premium, Standard
--sql

一个标志,指示是否SQL重定向流量筛选已启用。

接受的值: false, true
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

--threat-intel-mode

威胁智能的操作模式。

接受的值: Alert, Deny, Off

az network firewall policy delete

删除 Azure 防火墙策略。

az network firewall policy delete --name
                                  --resource-group

必需参数

--name -n

防火墙策略的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

az network firewall policy list

列出所有 Azure 防火墙策略。

az network firewall policy list [--resource-group]

可选参数

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

az network firewall policy show

显示 Azure 防火墙策略。

az network firewall policy show --name
                                --resource-group
                                [--expand]

必需参数

--name -n

防火墙策略的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

可选参数

--expand

展开引用的资源。 默认值为 None。

az network firewall policy update

更新 Azure 防火墙策略。

az network firewall policy update --name
                                  --resource-group
                                  [--add]
                                  [--cert-name]
                                  [--dns-servers]
                                  [--enable-dns-proxy {false, true}]
                                  [--force-string]
                                  [--fqdns]
                                  [--identity]
                                  [--idps-mode {Alert, Deny, Off}]
                                  [--ip-addresses]
                                  [--key-vault-secret-id]
                                  [--remove]
                                  [--set]
                                  [--sku {Basic, Premium, Standard}]
                                  [--sql {false, true}]
                                  [--tags]
                                  [--threat-intel-mode {Alert, Deny, Off}]

必需参数

--name -n

防火墙策略的名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

可选参数

--add

通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value、string 或 JSON string>。

--cert-name

CA 证书的名称。

--dns-servers

DNS 服务器 IP 地址的空间分隔列表。

--enable-dns-proxy

启用 DNS 代理。

接受的值: false, true
--force-string

使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。

--fqdns

FQDN 的空间分隔列表。

--identity

ManagedIdentity 资源的名称或 ID。

--idps-mode

IDPS 模式。

接受的值: Alert, Deny, Off
--ip-addresses

IPv4 地址的空间分隔列表。

--key-vault-secret-id

(base-64 编码的非加密 pfx 的机密 ID) KeyVault 中存储的机密或证书对象。

--remove

从列表中删除属性或元素。 示例:--remove property.list OR --remove propertyToRemove。

--set

通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=.

--sku

防火墙策略的 SKU。

接受的值: Basic, Premium, Standard
--sql

一个标志,指示是否SQL重定向流量筛选已启用。

接受的值: false, true
--tags

空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。

--threat-intel-mode

威胁智能的操作模式。

接受的值: Alert, Deny, Off