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

az iot du update file

注释

此参考是 Azure CLI(版本 2.46.0 或更高版本)azure-iot 扩展的一部分。 该扩展会在首次运行 az iot du update file 命令时自动安装。 了解更多关于扩展 的相关信息。

更新文件操作。

命令

名称 说明 类型 Status
az iot du update file list

列出更新提供程序、名称和版本相关的更新文件 ID。

扩展 GA
az iot du update file show

显示与更新提供程序、名称和版本相关的特定更新文件的详细信息。

扩展 GA

az iot du update file list

列出更新提供程序、名称和版本相关的更新文件 ID。

az iot du update file list --account
                           --instance
                           --un
                           --up
                           --update-version
                           [--resource-group]

示例

列出更新提供程序、名称和版本相关的更新文件。

az iot du update file list -n {account_name} -i {instance_name} --update-provider {provider_name} --update-name {update_name} --update-version {update_version}

必需参数

--account -n

设备更新帐户名称。 可以使用 az config set defaults.adu_account={name}配置默认帐户名称。

--instance -i

设备更新实例名称。 可以使用 az config set defaults.adu_instance={name}配置默认实例名称。

--un --update-name

更新名称。

--up --update-provider

更新提供程序。

--update-version --uv

更新版本。

可选参数

--resource-group -g

设备更新帐户资源组名称。 可以使用 az config set defaults.adu_group={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 iot du update file show

显示与更新提供程序、名称和版本相关的特定更新文件的详细信息。

az iot du update file show --account
                           --instance
                           --ufid
                           --un
                           --up
                           --update-version
                           [--resource-group]

示例

显示与更新提供程序、名称和版本相关的特定更新文件。

az iot du update file show -n {account_name} -i {instance_name} --update-provider {provider_name} --update-name {update_name} --update-version {update_version} --update-file-id {update_file_id}

必需参数

--account -n

设备更新帐户名称。 可以使用 az config set defaults.adu_account={name}配置默认帐户名称。

--instance -i

设备更新实例名称。 可以使用 az config set defaults.adu_instance={name}配置默认实例名称。

--ufid --update-file-id

更新文件 ID。

--un --update-name

更新名称。

--up --update-provider

更新提供程序。

--update-version --uv

更新版本。

可选参数

--resource-group -g

设备更新帐户资源组名称。 可以使用 az config set defaults.adu_group={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 获取完整的调试日志。