az network firewall
Note
此参考是Azure CLI版本 2.75.0 或更高版本的 azure-firewall 扩展的一部分。 该扩展将在首次运行 az network firewall 命令时自动安装。 了解更多关于扩展的信息。
管理和配置Azure防火墙。
命令
az network firewall create
创建Azure 防火墙。
az network firewall create --name
--resource-group
[--acquire-policy-token]
[--allow-active-ftp {0, 1, f, false, n, no, t, true, y, yes}]
[--change-reference]
[--conf-name]
[--count --public-ip-count]
[--dns-servers]
[--dnstap-logging --enable-dnstap-logging {0, 1, f, false, n, no, t, true, y, yes}]
[--edge-zone]
[--enable-dns-proxy {0, 1, f, false, n, no, t, true, y, yes}]
[--enable-explicit-proxy {0, 1, f, false, n, no, t, true, y, yes}]
[--enable-fat-flow-logging --fat-flow-logging {0, 1, f, false, n, no, t, true, y, yes}]
[--enable-pac-file {0, 1, f, false, n, no, t, true, y, yes}]
[--enable-udp-log-optimization --udp-log-optimization {0, 1, f, false, n, no, t, true, y, yes}]
[--firewall-policy --policy]
[--http-port]
[--https-port {0, 1, f, false, n, no, t, true, y, yes}]
[--location]
[--m-conf-name]
[--m-public-ip]
[--max-capacity]
[--min-capacity]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--pac-file]
[--pac-file-port]
[--private-ranges]
[--public-ip]
[--route-server-id]
[--sku {AZFW_Hub, AZFW_VNet}]
[--tags]
[--threat-intel-mode {Alert, Deny, Off}]
[--tier {Basic, Premium, Standard}]
[--vhub --virtual-hub]
[--vnet-name]
[--zones]
示例
创建具有专用范围的Azure防火墙
az network firewall create -g MyResourceGroup -n MyFirewall --private-ranges 10.0.0.0 10.0.0.0/16 IANAPrivateRanges
创建虚拟 WAN安全中心防火墙
az network firewall create -g MyResourceGroup -n MyFirewall --sku AZFW_Hub --tier Standard --virtual-hub MyVirtualHub1 --public-ip-count 1
使用管理 IP 配置创建基本 SKU 防火墙
az network firewall create -g MyResourceGroup -n MyFirewall --sku AZFW_VNet --tier Basic --vnet-name MyVNet --conf-name MyIpConfig --m-conf-name MyManagementIpConfig --m-public-ip MyPublicIp
使用虚拟中心创建基本 SKU 防火墙
az network firewall create -g MyResourceGroup -n MyFirewall --sku AZFW_Hub --tier Basic --vhub MyVHub --public-ip-count 2
使用 AutoscaleConfiguration 创建Azure 防火墙
az network firewall create -g MyResourceGroup -n MyFirewall --min-capacity 4
az network firewall create -g MyResourceGroup -n MyFirewall --min-capacity 10 --max-capacity 10
必需参数
Azure 防火墙名称。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
允许活动 FTP。 默认情况下为 false。 它只允许虚拟网络上的 Azure 防火墙。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
IP 配置的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Data Traffic IP Configuration Arguments |
与 Azure 防火墙关联的公共 IP 地址数。 它用于将公共 IP 地址添加到此防火墙中。
| 属性 | 值 |
|---|---|
| 参数组: | Virtual Hub Public Ip Arguments |
DNS 服务器 IP 地址的空间分隔列表。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | DNS Arguments |
允许 dnstap 日志记录。 默认情况下为 false。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
边缘区域的名称。
启用 DNS 代理。
| 属性 | 值 |
|---|---|
| 参数组: | DNS Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
设置为 true 时,将启用显式代理模式。
| 属性 | 值 |
|---|---|
| 参数组: | Explicit Proxy Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
允许脂肪流日志记录。 默认情况下为 false。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
如果设置为 true,则需要提供 pac 文件端口和 URL。
| 属性 | 值 |
|---|---|
| 参数组: | Explicit Proxy Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
允许 UDP 日志优化。 默认情况下为 false。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
与此 Azure 防火墙关联的 firewallPolicy 的名称或 ID。
显式代理 http 协议的端口号不能大于 64000。
| 属性 | 值 |
|---|---|
| 参数组: | Explicit Proxy Arguments |
显式代理 https 协议的端口号不能大于 64000。
| 属性 | 值 |
|---|---|
| 参数组: | Explicit Proxy Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源位置。
管理 IP 配置的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Management IP Configuration Arguments |
用于管理 IP 配置的公共 IP 的名称或 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Management IP Configuration Arguments |
此 Azure 防火墙的最大容量单位数。 使用 null 将值重置为服务默认值。
| 属性 | 值 |
|---|---|
| 参数组: | AutoscaleConfiguration Arguments |
此 Azure 防火墙的最小容量单位数。 使用 null 将值重置为服务默认值。
| 属性 | 值 |
|---|---|
| 参数组: | AutoscaleConfiguration Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
PAC 文件的 SAS URL。
| 属性 | 值 |
|---|---|
| 参数组: | Explicit Proxy Arguments |
要为 PAC 文件提供服务的防火墙的端口号。
| 属性 | 值 |
|---|---|
| 参数组: | Explicit Proxy Arguments |
SNAT 专用范围的空间分隔列表。 验证值是单个 Ip、Ipprefixes 或单个特殊值“IANAPrivateRanges”。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
要使用的公共 IP 的名称或 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Data Traffic IP Configuration Arguments |
防火墙的路由服务器 ID。
Azure防火墙的 SKU。 创建后无法更新此字段。 服务器端的默认 SKU AZFW_VNet。 如果要将 Azure 防火墙附加到 vhub,应将 SKU 设置为 AZFW_Hub。
| 属性 | 值 |
|---|---|
| 接受的值: | AZFW_Hub, AZFW_VNet |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
威胁智能的操作模式。
| 属性 | 值 |
|---|---|
| 接受的值: | Alert, Deny, Off |
Azure 防火墙的层。 --tier 仅在设置 --sku 时生效。
| 属性 | 值 |
|---|---|
| 默认值: | Standard |
| 接受的值: | Basic, Premium, Standard |
防火墙所属的 virtualHub 的名称或 ID。
虚拟网络(VNet)名称。 它应包含一个名为“AzureFirewallSubnet”的子网。
| 属性 | 值 |
|---|---|
| 参数组: | Data Traffic IP Configuration Arguments |
要在其中预配资源的可用性区域的空间分隔列表。 允许的值:1、2、3。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall delete
删除Azure 防火墙。
az network firewall delete [--acquire-policy-token]
[--change-reference]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Azure 防火墙名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall learned-ip-prefix
此命令处于预览阶段,正在开发中。 参考和支持级别:https://aka.ms/CLI_refstatus
检索 Azure 防火墙已学习到的所有 IP 前缀的列表,而不是 SNAT。
az network firewall learned-ip-prefix [--acquire-policy-token]
[--change-reference]
[--ids]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--resource-group]
[--subscription]
示例
列出学习的 IP 前缀
az network firewall learned-ip-prefix -g MyResourceGroup -n MyFirewall
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Azure 防火墙名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall list
列出Azure防火墙。
az network firewall list [--max-items]
[--next-token]
[--resource-group]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall list-fqdn-tags
获取订阅中的所有Azure 防火墙 FQDN 标记。
az network firewall list-fqdn-tags [--acquire-policy-token]
[--change-reference]
[--max-items]
[--next-token]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。
| 属性 | 值 |
|---|---|
| 参数组: | Pagination Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall packet-capture-operation
在 AzureFirewall 上运行数据包捕获作。
az network firewall packet-capture-operation [--acquire-policy-token]
[--azure-firewall-name]
[--change-reference]
[--duration-in-seconds]
[--file-name]
[--filters]
[--flags]
[--ids]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--num-packets --number-of-packets-to-capture]
[--operation {Start, Status, Stop}]
[--protocol {Any, ICMP, TCP, UDP}]
[--resource-group]
[--sas-url]
[--subscription]
示例
AzureFirewallPacketCaptureOperation
az network firewall packet-capture-operation --resource-group rg1 --azure-firewall-name azureFirewall1 --duration-in-seconds 300 --number-of-packets-to-capture 5000 --sas-url someSASURL --file-name azureFirewallPacketCapture --protocol Any --flags "[{type:syn},{type:fin}]" --filters "[{sources:[20.1.1.0],destinations:[20.1.2.0],destination-ports:[4500]},{sources:[10.1.1.0,10.1.1.1],destinations:[10.1.2.0],destination-ports:[123,80]}]" --operation Start
az network firewall packet-capture-operation --resource-group rg1 --azure-firewall-name azureFirewall1 --operation Status
az network firewall packet-capture-operation --resource-group rg1 --azure-firewall-name azureFirewall1 --operation Stop
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
Azure 防火墙的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
数据包捕获的持续时间(以秒为单位)。 如果未提供该字段,则默认值为 60。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
| 默认值: | 60 |
要上传到 sasURL 的文件的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
过滤数据包捕获的规则。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
要捕获的 tcp 标志类型。 与协议 TCP 支持速记语法、json-file 和 yaml-file 一起使用。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
要捕获的数据包数。 如果未提供该字段,则默认值为 1000。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
| 默认值: | 1000 |
要执行的Azure 防火墙数据包捕获操作。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
| 默认值: | Start |
| 接受的值: | Start, Status, Stop |
要捕获的数据包的协议。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
| 接受的值: | Any, ICMP, TCP, UDP |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
将上传数据包捕获文件的目标 Blob 容器的 SAS URL。
| 属性 | 值 |
|---|---|
| 参数组: | Parameters Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall show
获取Azure 防火墙的详细信息。
az network firewall show [--ids]
[--name]
[--resource-group]
[--subscription]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Azure 防火墙名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall update
更新Azure 防火墙。
az network firewall update [--acquire-policy-token]
[--add]
[--allow-active-ftp {0, 1, f, false, n, no, t, true, y, yes}]
[--change-reference]
[--count --public-ip-count]
[--dns-servers]
[--dnstap-logging --enable-dnstap-logging {0, 1, f, false, n, no, t, true, y, yes}]
[--enable-dns-proxy {0, 1, f, false, n, no, t, true, y, yes}]
[--enable-fat-flow-logging --fat-flow-logging {0, 1, f, false, n, no, t, true, y, yes}]
[--enable-udp-log-optimization --udp-log-optimization {0, 1, f, false, n, no, t, true, y, yes}]
[--firewall-policy --policy]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--max-capacity]
[--min-capacity]
[--name]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
[--private-ranges]
[--public-ips]
[--remove]
[--resource-group]
[--route-server-id]
[--set]
[--subscription]
[--tags]
[--threat-intel-mode {Alert, Deny, Off}]
[--vhub --virtual-hub]
[--zones]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
允许活动 FTP。 默认情况下为 false。 它只允许虚拟网络上的 Azure 防火墙。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
与 Azure 防火墙关联的公共 IP 地址数。 它用于将公共 IP 地址添加到此防火墙中。
| 属性 | 值 |
|---|---|
| 参数组: | Virtual Hub Public Ip Arguments |
DNS 服务器 IP 地址的空间分隔列表。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | DNS Arguments |
允许 dnstap 日志记录。 默认情况下为 false。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
启用 DNS 代理。
| 属性 | 值 |
|---|---|
| 参数组: | DNS Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
允许脂肪流日志记录。 默认情况下为 false。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
允许 UDP 日志优化。 默认情况下为 false。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
与此 Azure 防火墙关联的 firewallPolicy 的名称或 ID。
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
此 Azure 防火墙的最大容量单位数。 使用 null 将值重置为服务默认值。
| 属性 | 值 |
|---|---|
| 参数组: | AutoscaleConfiguration Arguments |
此 Azure 防火墙的最小容量单位数。 使用 null 将值重置为服务默认值。
| 属性 | 值 |
|---|---|
| 参数组: | AutoscaleConfiguration Arguments |
Azure 防火墙名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
SNAT 专用范围的空格分隔列表。 有效值为单个 IP、IP 前缀或单个特殊值“IANAPrivateRanges”。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
与 Azure 防火墙关联的公共 IP 地址的空间分隔列表。 它用于从此防火墙中删除公共 IP 地址。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | Virtual Hub Public Ip Arguments |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
防火墙的路由服务器 ID。
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
威胁智能的操作模式。
| 属性 | 值 |
|---|---|
| 接受的值: | Alert, Deny, Off |
防火墙所属的 virtualHub 的名称或 ID。
要在其中预配资源的可用性区域的空间分隔列表。 允许的值:1、2、3。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az network firewall wait
将 CLI 置于等待状态,直到满足条件。
az network firewall wait [--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
为此资源操作自动获取Azure Policy令牌。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
此资源操作的相关更改引用 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Global Policy Arguments |
等待在“Succeeded”中使用“provisioningState”创建。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
等到删除为止。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
等待资源存在。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
轮询间隔(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 30 |
Azure 防火墙名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
最大等待(以秒为单位)。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | 3600 |
等到 provisioningState 更新为“Succeeded”。
| 属性 | 值 |
|---|---|
| 参数组: | Wait Condition Arguments |
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |