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

az acat report

注意

此参考是 Azure CLI(版本 2.61.0 或更高版本)acat 扩展的一部分。 该扩展将在首次运行 az acat report 命令时自动安装。 详细了解扩展

管理应用合规性自动化工具报告。

命令

名称 说明 类型 Status
az acat report create

创建新的 AppComplianceAutomation 报表或更新退出的 AppComplianceAutomation 报表。

外延 加语
az acat report delete

删除 AppComplianceAutomation 报表。

外延 加语
az acat report download

从快照下载符合性需求,例如:合规性报告、资源列表。

外延 加语
az acat report get-control-assessments

列出 AppComplianceAutomation 快照列表。

外延 加语
az acat report list

列出租户的 AppComplianceAutomation 报表列表。

外延 加语
az acat report show

获取 AppComplianceAutomation 报表及其属性。

外延 加语
az acat report snapshot

管理 ACAT 报表快照。

外延 加语
az acat report snapshot download

从快照下载符合性需求,例如:合规性报告、资源列表。

外延 加语
az acat report snapshot list

列出 AppComplianceAutomation 快照列表。

外延 加语
az acat report update

更新新的 AppComplianceAutomation 报表或更新退出的 AppComplianceAutomation 报表。

外延 加语
az acat report wait

将 CLI 置于等待状态,直到满足条件。

外延 加语
az acat report webhook

管理 ACAT 报表 Webhook。

外延 加语
az acat report webhook create

创建新的 AppComplianceAutomation Webhook 或更新退出的 AppComplianceAutomation Webhook。

外延 加语
az acat report webhook delete

删除 AppComplianceAutomation Webhook。

外延 加语
az acat report webhook list

列出 AppComplianceAutomation Webhook 列表。

外延 加语
az acat report webhook show

获取 AppComplianceAutomation Webhook 及其属性。

外延 加语
az acat report webhook update

更新退出的 AppComplianceAutomation Webhook。

外延 加语

az acat report create

创建新的 AppComplianceAutomation 报表或更新退出的 AppComplianceAutomation 报表。

az acat report create --report-name
                      --resources
                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                      [--offer-guid]
                      [--storage-info]
                      [--time-zone]
                      [--trigger-time]

必需参数

--report-name

报表名称。

--resources

资源数据列表。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

可选参数

--no-wait

不要等待长时间运行的作完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--offer-guid

逗号分隔的 offerGuids 列表指示映射到报表的一系列 offerGuids。 例如,“00000000-0000-0000-0000-0000000000001,00000000-0000-00000 -0000-000000000002”和“000000000-0000-0000-000000000003”。

--storage-info

“自带存储”绑定到报表的信息支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--time-zone

报表收集触发时间的时区,可通过在 PowerShell 中执行“Get-TimeZone -ListAvailable”来获取可用列表。 有效时区 ID 的示例是“太平洋标准时间”。

默认值: UTC
--trigger-time

报表集合触发时间。

默认值: 2025-03-14 12:00:00
全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。

az acat report delete

删除 AppComplianceAutomation 报表。

az acat report delete --report-name
                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                      [--yes]

必需参数

--report-name

报表名称。

可选参数

--no-wait

不要等待长时间运行的作完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--yes -y

不要提示确认。

默认值: False
全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。

az acat report download

从快照下载符合性需求,例如:合规性报告、资源列表。

az acat report download --download-type {ComplianceDetailedPdfReport, CompliancePdfReport, ComplianceReport, ResourceList}
                        --report-name
                        --snapshot-name
                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                        [--offer-guid]
                        [--tenant]

必需参数

--download-type

指示下载类型。

接受的值: ComplianceDetailedPdfReport, CompliancePdfReport, ComplianceReport, ResourceList
--report-name

报表名称。

--snapshot-name

快照名称。

可选参数

--no-wait

不要等待长时间运行的作完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--offer-guid

映射到报表的 offerGuid。

--tenant

租户 ID。

全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。

az acat report get-control-assessments

列出 AppComplianceAutomation 快照列表。

az acat report get-control-assessments --report-name
                                       [--filter]
                                       [--max-items]
                                       [--next-token]
                                       [--offer-guid]
                                       [--orderby]
                                       [--select]
                                       [--skip-token]
                                       [--tenant]
                                       [--top]

必需参数

--report-name

报表名称。

可选参数

--filter

要应用于作的筛选器。

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。

--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

--offer-guid

映射到报表的 offerGuid。

--orderby

按查询排序的 OData 顺序选项。

--select

OData Select 语句。 将每个条目的属性限制为仅请求的项,例如 ?$select=reportName,id。

--skip-token

检索结果时跳过。

--tenant

报表创建者的租户 ID。

--top

检索结果时要返回的元素数。

全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。

az acat report list

列出租户的 AppComplianceAutomation 报表列表。

az acat report list [--filter]
                    [--max-items]
                    [--next-token]
                    [--offer-guid]
                    [--orderby]
                    [--select]
                    [--skip-token]
                    [--tenant]
                    [--top]

可选参数

--filter

要应用于作的筛选器。

--max-items

命令输出中要返回的项总数。 如果可用的项总数大于指定的值,则会在命令的输出中提供令牌。 若要恢复分页,请在后续命令的 --next-token 参数中提供令牌值。

--next-token

用于指定开始分页的位置的令牌。 这是先前截断的响应中的令牌值。

--offer-guid

映射到报表的 offerGuid。

--orderby

按查询排序的 OData 顺序选项。

--select

OData Select 语句。 将每个条目的属性限制为仅请求的项,例如 ?$select=reportName,id。

--skip-token

检索结果时跳过。

--tenant

报表创建者的租户 ID。

--top

检索结果时要返回的元素数。

全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。

az acat report show

获取 AppComplianceAutomation 报表及其属性。

az acat report show --report-name

必需参数

--report-name

报表名称。

全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。

az acat report update

更新新的 AppComplianceAutomation 报表或更新退出的 AppComplianceAutomation 报表。

az acat report update --report-name
                      [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                      [--offer-guid]
                      [--resources]
                      [--storage-info]
                      [--time-zone]
                      [--trigger-time]

必需参数

--report-name

报表名称。

可选参数

--no-wait

不要等待长时间运行的作完成。

接受的值: 0, 1, f, false, n, no, t, true, y, yes
--offer-guid

逗号分隔的 offerGuids 列表指示映射到报表的一系列 offerGuids。 例如,“00000000-0000-0000-0000-0000000000001,00000000-0000-00000 -0000-000000000002”和“000000000-0000-0000-000000000003”。

--resources

资源数据列表。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--storage-info

“自带存储”绑定到报表的信息支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。

--time-zone

报表收集触发时间的时区,可通过在 PowerShell 中执行“Get-TimeZone -ListAvailable”来获取可用列表。 有效时区 ID 的示例是“太平洋标准时间”。

--trigger-time

报表集合触发时间。

全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。

az acat report wait

将 CLI 置于等待状态,直到满足条件。

az acat report wait --report-name
                    [--created]
                    [--custom]
                    [--deleted]
                    [--exists]
                    [--interval]
                    [--timeout]
                    [--updated]

必需参数

--report-name

报表名称。

可选参数

--created

等待在“Succeeded”中使用“provisioningState”创建。

默认值: False
--custom

等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。

--deleted

等到删除为止。

默认值: False
--exists

等待资源存在。

默认值: False
--interval

轮询间隔(以秒为单位)。

默认值: 30
--timeout

最大等待(以秒为单位)。

默认值: 3600
--updated

等到 provisioningState 更新为“Succeeded”。

默认值: False
全局参数
--debug

增加日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

仅显示错误,禁止显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关详细信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID配置默认订阅。

--verbose

增加日志记录详细程度。 对完整调试日志使用 --debug。