az iot central

注意

此命令群組具有 Azure CLI 和至少一個擴充功能中定義的命令。 安裝每個擴充功能以受益于其擴充功能。 深入了解擴充功能。

管理 IoT Central 資源。

IoT Central 是 IoT 應用程式平台,可降低開發、管理及維護企業級 IoT 解決方案的負擔與成本。 當您選擇使用 IoT Central 進行建置時,即可將時間、金錢和心力專注在使用 IoT 資料進行企業轉型,而不只是忙於對複雜且不斷演進的 IoT 基礎結構進行維護及更新。 IoT Central 檔可在 Azure IoT CLI 延伸模組中取得 https://aka.ms/iotcentral-documentation 完整的 IoT Central 資料平面功能。 如需如何安裝的詳細資訊,請造訪 https://github.com/Azure/azure-iot-cli-extension

命令

名稱 Description 類型 狀態
az iot central api-token

管理 IoT Central 應用程式的 API 權杖。

副檔名 GA
az iot central api-token create

產生與您的 IoT Central 應用程式相關聯的 API 權杖。

副檔名 GA
az iot central api-token delete

刪除與您的 IoT Central 應用程式相關聯的 API 權杖。

副檔名 GA
az iot central api-token list

取得與您的 IoT Central 應用程式相關聯的 API 權杖清單。

副檔名 GA
az iot central api-token show

取得與您的 IoT Central 應用程式相關聯的 API 權杖詳細資料。

副檔名 GA
az iot central app

管理 IoT Central 應用程式。

核心 GA
az iot central app create

建立 IoT Central 應用程式。

核心 GA
az iot central app delete

刪除 IoT Central 應用程式。

核心 GA
az iot central app identity

管理 IoT Central 應用程式身分識別。

核心 GA
az iot central app identity assign

將受控識別指派給 IoT Central 應用程式。

核心 GA
az iot central app identity remove

從 IoT Central 應用程式移除受控識別。

核心 GA
az iot central app identity show

顯示 IoT Central 應用程式的身分識別屬性。

核心 GA
az iot central app list

列出 IoT Central 應用程式。

核心 GA
az iot central app private-endpoint-connection

管理 IoT Central 應用程式的私人端點連線。

核心 GA
az iot central app private-endpoint-connection approve

核准 IoT Central 應用程式的私人端點連線要求。

核心 GA
az iot central app private-endpoint-connection delete

刪除 IoT Central 應用程式的私人端點連線。

核心 GA
az iot central app private-endpoint-connection list

列出 IoT Central 應用程式的所有私人端點連線。

核心 GA
az iot central app private-endpoint-connection reject

拒絕 IoT Central 應用程式的私人端點連線要求。

核心 GA
az iot central app private-endpoint-connection show

顯示 IoT Central 應用程式的私人端點連線要求詳細資料。

核心 GA
az iot central app private-link-resource

管理 IoT Central 應用程式私人連結資源。

核心 GA
az iot central app private-link-resource list

列出指定帳戶中的所有 IoT Central 應用程式私人連結資源。

核心 GA
az iot central app private-link-resource show

在指定的 IoT Central 應用程式中顯示私人連結資源的詳細資料。

核心 GA
az iot central app show

取得 IoT Central 應用程式的詳細資料。

核心 GA
az iot central app update

更新 IoT Central 應用程式的中繼資料。

核心 GA
az iot central device

管理及設定 IoT Central 裝置。

副檔名 GA
az iot central device-group

管理及設定 IoT Central 裝置群組。

副檔名 GA
az iot central device-group create

建立裝置群組。

副檔名 GA
az iot central device-group delete

刪除裝置群組。

副檔名 GA
az iot central device-group list

取得 IoT Central 應用程式的裝置群組清單。

副檔名 GA
az iot central device-group show

依識別碼取得裝置群組。

副檔名 GA
az iot central device-group update

更新現有的裝置群組。

副檔名 GA
az iot central device-template

管理及設定 IoT Central 裝置範本。

副檔名 GA
az iot central device-template create

在 IoT Central 中建立裝置範本。

副檔名 GA
az iot central device-template delete

從 IoT Central 刪除裝置範本。

副檔名 GA
az iot central device-template list

取得 IoT Central 應用程式的裝置範本清單。

副檔名 GA
az iot central device-template show

從 IoT Central 取得裝置範本。

副檔名 GA
az iot central device-template update

在 IoT Central 中更新裝置範本。

副檔名 GA
az iot central device attestation

管理和設定 IoT Central 裝置證明。

副檔名 GA
az iot central device attestation create

建立個別裝置證明。

副檔名 GA
az iot central device attestation delete

移除個別裝置證明。

副檔名 GA
az iot central device attestation show

取得裝置證明。

副檔名 GA
az iot central device attestation update

透過修補程式更新個別裝置證明。

副檔名 GA
az iot central device c2d-message

執行裝置雲端到裝置傳訊命令。

副檔名 GA
az iot central device c2d-message purge

清除目標裝置的雲端到裝置訊息佇列。

副檔名 GA
az iot central device command

執行裝置命令。

副檔名 GA
az iot central device command history

取得傳送至裝置的最新命令要求和回應的詳細資料。

副檔名 GA
az iot central device command run

在裝置上執行命令,並檢視相關聯的回應。 Not monitor property updates that the command may perform.

副檔名 GA
az iot central device compute-device-key

產生衍生裝置 SAS 金鑰。

副檔名 GA
az iot central device create

在 IoT Central 中建立裝置。

副檔名 GA
az iot central device delete

從 IoT Central 刪除裝置。

副檔名 GA
az iot central device edge

管理及設定 IoT Central Edge 裝置。

副檔名 GA
az iot central device edge children

管理 IoT Edge 裝置子裝置。

副檔名 GA
az iot central device edge children add

將裝置新增為目標邊緣裝置的子系。

副檔名 預覽版
az iot central device edge children list

取得 IoT Edge 裝置的子系列表。

副檔名 GA
az iot central device edge children remove

從目標邊緣裝置移除子裝置。

副檔名 預覽版
az iot central device edge manifest

管理 IoT Edge 裝置資訊清單。

副檔名 預覽版
az iot central device edge manifest show

取得與指定 IoT Edge 裝置相關聯的部署資訊清單。

副檔名 預覽版
az iot central device edge module

管理 IoT Edge 裝置模組。

副檔名 預覽版
az iot central device edge module list

取得 IoT Edge 裝置中的模組清單。

副檔名 預覽版
az iot central device edge module restart

在 IoT Edge 裝置中重新開機模組。

副檔名 預覽版
az iot central device edge module show

在 IoT Edge 裝置中取得模組。

副檔名 預覽版
az iot central device list

取得 IoT Central 應用程式的裝置清單。

副檔名 GA
az iot central device list-components

列出裝置中存在的元件。

副檔名 GA
az iot central device list-modules

列出裝置中的模組。

副檔名 GA
az iot central device manual-failback

將裝置移回原始IoT 中樞,以還原先前執行的容錯移轉命令。

副檔名 GA
az iot central device manual-failover

跨多個IoT 中樞執行裝置的手動容錯移轉,以驗證裝置韌體使用 DPS 重新連線到不同IoT 中樞的能力。

副檔名 GA
az iot central device registration-info

從 IoT Central 取得裝置的註冊資訊。

副檔名 GA
az iot central device show

從 IoT Central 取得裝置。

副檔名 GA
az iot central device show-credentials

從 IoT Central 取得裝置認證。

副檔名 GA
az iot central device telemetry

查詢 IoT Central 裝置上一個遙測值。

副檔名 GA
az iot central device telemetry show

從裝置取得最後一個遙測值。

副檔名 GA
az iot central device twin

管理 IoT Central 裝置對應項。

副檔名 GA
az iot central device twin replace

取代裝置、裝置元件或裝置模組或裝置模組元件的可寫入屬性值。

副檔名 GA
az iot central device twin show

取得裝置、裝置元件、裝置模組或裝置模組元件的所有屬性值。

副檔名 GA
az iot central device twin update

更新裝置、裝置元件、裝置模組或裝置模組元件的可寫入屬性值。

副檔名 GA
az iot central device update

更新 IoT Central 中的裝置。

副檔名 GA
az iot central diagnostics

執行應用程式和裝置層級診斷。

副檔名 預覽版
az iot central diagnostics monitor-events

檢視傳送至 IoT Central 應用程式的裝置遙測訊息。

副檔名 預覽版
az iot central diagnostics monitor-properties

檢視傳送至 IoT Central 應用程式的所需和回報屬性。

副檔名 預覽版
az iot central diagnostics registration-summary

檢視應用程式中所有裝置的註冊摘要。

副檔名 預覽版
az iot central diagnostics validate-messages

驗證傳送至 IoT Central 應用程式的IoT 中樞訊息。

副檔名 預覽版
az iot central diagnostics validate-properties

驗證傳送至 IoT Central 應用程式的回報屬性。

副檔名 預覽版
az iot central enrollment-group

管理及設定 IoT Central 註冊群組。

副檔名 GA
az iot central enrollment-group create

建立註冊群組。

副檔名 GA
az iot central enrollment-group delete

依識別碼刪除註冊群組。

副檔名 GA
az iot central enrollment-group generate-verification-code

為註冊群組的主要或次要 x509 憑證產生驗證碼。

副檔名 GA
az iot central enrollment-group list

取得應用程式中的註冊群組清單。

副檔名 GA
az iot central enrollment-group show

依識別碼取得註冊群組的詳細資料。

副檔名 GA
az iot central enrollment-group update

更新註冊群組。

副檔名 GA
az iot central enrollment-group verify-certificate

確認註冊群組的主要或次要 x509 憑證。

副檔名 GA
az iot central export

管理和設定 IoT Central 資料匯出。

副檔名 預覽版
az iot central export create

建立 IoT Central 應用程式的匯出。

副檔名 預覽版
az iot central export delete

刪除 IoT Central 應用程式的匯出。

副檔名 預覽版
az iot central export destination

管理和設定 IoT Central 匯出目的地。

副檔名 預覽版
az iot central export destination create

建立 IoT Central 應用程式的匯出目的地。

副檔名 預覽版
az iot central export destination delete

刪除 IoT Central 應用程式的匯出目的地。

副檔名 預覽版
az iot central export destination list

取得 IoT Central 應用程式匯出目的地的完整清單。

副檔名 預覽版
az iot central export destination show

取得匯出目的地詳細資料。

副檔名 預覽版
az iot central export destination update

更新 IoT Central 應用程式的匯出目的地。

副檔名 預覽版
az iot central export list

取得 IoT Central 應用程式的完整匯出清單。

副檔名 預覽版
az iot central export show

取得匯出詳細資料。

副檔名 預覽版
az iot central export update

更新 IoT Central 應用程式的匯出。

副檔名 預覽版
az iot central file-upload-config

管理和設定 IoT Central 檔案上傳。

副檔名 GA
az iot central file-upload-config create

建立檔案上傳儲存體帳戶組態。

副檔名 GA
az iot central file-upload-config delete

刪除檔案上傳儲存體帳戶組態。

副檔名 GA
az iot central file-upload-config show

取得檔案上傳儲存體帳戶組態的詳細資料。

副檔名 GA
az iot central file-upload-config update

更新檔案上傳儲存體帳戶組態。

副檔名 GA
az iot central job

管理及設定 IoT Central 應用程式的作業。

副檔名 GA
az iot central job create

透過作業定義建立和執行作業。

副檔名 GA
az iot central job get-devices

取得作業裝置狀態。

副檔名 GA
az iot central job list

取得 IoT Central 應用程式的作業清單。

副檔名 GA
az iot central job rerun

在所有失敗的裝置上重新執行作業。

副檔名 GA
az iot central job resume

繼續停止的工作。

副檔名 GA
az iot central job show

依識別碼取得作業的詳細資料。

副檔名 GA
az iot central job stop

停止執行中的作業。

副檔名 GA
az iot central organization

管理及設定 IoT Central 應用程式的組織。

副檔名 GA
az iot central organization create

在應用程式中建立組織。

副檔名 GA
az iot central organization delete

依識別碼刪除組織。

副檔名 GA
az iot central organization list

取得 IoT Central 應用程式的組織清單。

副檔名 GA
az iot central organization show

依識別碼取得組織的詳細資料。

副檔名 GA
az iot central organization update

更新應用程式中的組織。

副檔名 GA
az iot central query

使用 IoT Central 查詢語言查詢裝置遙測或屬性資料。

副檔名 預覽版
az iot central role

管理及設定 IoT Central 應用程式的角色。

副檔名 GA
az iot central role list

取得 IoT Central 應用程式的角色清單。

副檔名 GA
az iot central role show

依識別碼取得角色的詳細資料。

副檔名 GA
az iot central scheduled-job

管理和設定 IoT Central 排程工作。

副檔名 GA
az iot central scheduled-job create

依識別碼建立排程工作。

副檔名 GA
az iot central scheduled-job delete

依識別碼刪除現有的排程工作。

副檔名 GA
az iot central scheduled-job list

取得應用程式中排程的作業定義清單。

副檔名 GA
az iot central scheduled-job list-runs

取得排程作業定義的作業實例清單。

副檔名 GA
az iot central scheduled-job show

依識別碼取得排程工作的詳細資料。

副檔名 GA
az iot central scheduled-job update

依識別碼更新排程的工作。

副檔名 GA
az iot central user

管理及設定 IoT Central 使用者。

副檔名 GA
az iot central user create

將使用者新增至應用程式。

副檔名 GA
az iot central user delete

從應用程式刪除使用者。

副檔名 GA
az iot central user list

取得 IoT Central 應用程式的使用者清單。

副檔名 GA
az iot central user show

依識別碼取得使用者的詳細資料。

副檔名 GA
az iot central user update

更新應用程式中使用者的角色。

副檔名 GA

az iot central query

預覽

此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

使用 IoT Central 查詢語言查詢裝置遙測或屬性資料。

如需查詢語法詳細資料,請造訪 https://docs.microsoft.com/en-us/azure/iot-central/core/howto-query-with-rest-api

az iot central query --app-id
                     --qs
                     [--api-version {2022-06-30-preview}]
                     [--central-api-uri]
                     [--token]

範例

查詢裝置遙測

az iot central query --app-id {appid} --query-string {query_string}

必要參數

--app-id -n

您想要管理的 IoT Central 應用程式的應用程式識別碼。 您可以在應用程式 [關於] 頁面的 [說明] 功能表下找到應用程式識別碼。

--qs --query-string

用來擷取遙測或屬性資料的查詢子句。

選擇性參數

--api-version --av
已被取代

引數 'api_version' 已被取代,並將在未來版本中移除。

所要求作業的 API 版本。

接受的值: 2022-06-30-preview
預設值: 2022-06-30-preview
--central-api-uri --central-dns-suffix

與您的應用程式相關聯的 IoT Central DNS 尾碼。

預設值: azureiotcentral.com
--token

如果您想要提交要求而不向 Azure CLI 進行驗證,您可以指定有效的使用者權杖來驗證您的要求。 您必須將金鑰類型指定為要求的一部分。 請至https://aka.ms/iotcentraldocsapi,即可深入瞭解。

全域參數
--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 來取得完整偵錯記錄。