共用方式為


az iot du update file

備註

此參考是 Azure CLI azure-iot 延伸模組的一部分(2.46.0 版或更高版本)。 擴充功能會在您第一次執行 az iot du update 檔案 命令時自動安裝。 深入瞭解擴充功能

更新檔案作業。

命令

名稱 Description 類型 狀態
az iot du update file list

列出更新提供者、名稱和版本相關的更新檔案識別碼。

擴充套件 GA
az iot du update file show

顯示與更新提供者、名稱和版本相關的特定更新檔案詳細數據。

擴充套件 GA

az iot du update file list

列出更新提供者、名稱和版本相關的更新檔案識別碼。

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

訂用帳戶的名稱或標識碼。 您可以使用 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

更新檔案識別碼。

--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

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。