az iot central
Note
此命令群組具有 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 令牌。 |
Extension | GA |
| az iot central api-token create |
產生與您的IoT Central 應用程式相關聯的API令牌。 |
Extension | GA |
| az iot central api-token delete |
刪除與您的IoT Central 應用程式相關聯的API令牌。 |
Extension | GA |
| az iot central api-token list |
取得與您的IoT Central 應用程式相關聯的API令牌清單。 |
Extension | GA |
| az iot central api-token show |
取得與您的IoT Central 應用程式相關聯的API令牌詳細數據。 |
Extension | GA |
| az iot central app |
管理 IoT Central 應用程式。 |
Core | GA |
| az iot central app create |
建立 IoT Central 應用程式。 |
Core | GA |
| az iot central app delete |
刪除 IoT Central 應用程式。 |
Core | GA |
| az iot central app identity |
管理 IoT Central 應用程式身分識別。 |
Core | GA |
| az iot central app identity assign |
將受控識別指派給IoT Central 應用程式。 |
Core | GA |
| az iot central app identity remove |
從 IoT Central 應用程式移除受控識別。 |
Core | GA |
| az iot central app identity show |
顯示 IoT Central 應用程式的身分識別屬性。 |
Core | GA |
| az iot central app list |
列出IoT Central 應用程式。 |
Core | GA |
| az iot central app private-endpoint-connection |
管理 IoT Central 應用程式的私人端點連線。 |
Core | GA |
| az iot central app private-endpoint-connection approve |
核准 IoT Central 應用程式的私人端點連線要求。 |
Core | GA |
| az iot central app private-endpoint-connection delete |
刪除IoT Central應用程式的私人端點連線。 |
Core | GA |
| az iot central app private-endpoint-connection list |
列出IoT Central應用程式的所有私人端點連線。 |
Core | GA |
| az iot central app private-endpoint-connection reject |
拒絕IoT Central應用程式的私人端點連線要求。 |
Core | GA |
| az iot central app private-endpoint-connection show |
顯示 IoT Central 應用程式的私人端點連線要求詳細數據。 |
Core | GA |
| az iot central app private-link-resource |
管理 IoT Central 應用程式私人鏈接資源。 |
Core | GA |
| az iot central app private-link-resource list |
列出指定帳戶中的所有IoT Central 應用程式私人鏈接資源。 |
Core | GA |
| az iot central app private-link-resource show |
在指定的IoT Central 應用程式中顯示私人連結資源的詳細數據。 |
Core | GA |
| az iot central app show |
取得IoT Central應用程式的詳細數據。 |
Core | GA |
| az iot central app update |
更新IoT Central應用程式的元數據。 |
Core | GA |
| az iot central device |
管理及設定IoT Central裝置。 |
Extension | GA |
| az iot central device-group |
管理及設定IoT Central裝置群組。 |
Extension | GA |
| az iot central device-group create |
建立裝置群組。 |
Extension | GA |
| az iot central device-group delete |
刪除裝置群組。 |
Extension | GA |
| az iot central device-group list |
取得IoT Central應用程式的裝置群組清單。 |
Extension | GA |
| az iot central device-group show |
依標識碼取得裝置群組。 |
Extension | GA |
| az iot central device-group update |
更新現有的裝置群組。 |
Extension | GA |
| az iot central device-template |
管理及設定IoT Central裝置範本。 |
Extension | GA |
| az iot central device-template create |
在 IoT Central 中建立裝置範本。 |
Extension | GA |
| az iot central device-template delete |
從 IoT Central 刪除裝置範本。 |
Extension | GA |
| az iot central device-template list |
取得IoT Central應用程式的裝置範本清單。 |
Extension | GA |
| az iot central device-template show |
從 IoT Central 取得裝置範本。 |
Extension | GA |
| az iot central device-template update |
在 IoT Central 中更新裝置範本。 |
Extension | GA |
| az iot central device attestation |
管理和設定IoT Central裝置證明。 |
Extension | GA |
| az iot central device attestation create |
建立個別裝置證明。 |
Extension | GA |
| az iot central device attestation delete |
拿掉個別裝置證明。 |
Extension | GA |
| az iot central device attestation show |
取得裝置證明。 |
Extension | GA |
| az iot central device attestation update |
透過修補程式更新個別裝置證明。 |
Extension | GA |
| az iot central device c2d-message |
執行裝置雲端到裝置傳訊命令。 |
Extension | GA |
| az iot central device c2d-message purge |
清除目標裝置的雲端到裝置消息佇列。 |
Extension | GA |
| az iot central device command |
執行裝置命令。 |
Extension | GA |
| az iot central device command history |
取得傳送至裝置的最新命令要求和回應的詳細數據。 |
Extension | GA |
| az iot central device command run |
在裝置上執行命令,並檢視相關聯的回應。 Not monitor property updates that the command may perform. |
Extension | GA |
| az iot central device compute-device-key |
產生衍生裝置 SAS 金鑰。 |
Extension | GA |
| az iot central device create |
在 IoT Central 中建立裝置。 |
Extension | GA |
| az iot central device delete |
從 IoT Central 刪除裝置。 |
Extension | GA |
| az iot central device edge |
管理及設定IoT Central Edge裝置。 |
Extension | GA |
| az iot central device edge children |
管理 IoT Edge 裝置子裝置。 |
Extension | GA |
| az iot central device edge children add |
將裝置新增為目標邊緣裝置的子系。 |
Extension | Preview |
| az iot central device edge children list |
取得IoT Edge裝置的子系列表。 |
Extension | GA |
| az iot central device edge children remove |
從目標邊緣裝置移除子裝置。 |
Extension | Preview |
| az iot central device edge manifest |
管理 IoT Edge 裝置指令清單。 |
Extension | Preview |
| az iot central device edge manifest show |
取得與指定IoT Edge裝置相關聯的部署指令清單。 |
Extension | Preview |
| az iot central device edge module |
管理 IoT Edge 裝置模組。 |
Extension | Preview |
| az iot central device edge module list |
取得IoT Edge裝置中的模組清單。 |
Extension | Preview |
| az iot central device edge module restart |
在 IoT Edge 裝置中重新啟動模組。 |
Extension | Preview |
| az iot central device edge module show |
在 IoT Edge 裝置中取得模組。 |
Extension | Preview |
| az iot central device list |
取得IoT Central應用程式的裝置清單。 |
Extension | GA |
| az iot central device list-components |
列出裝置中存在的元件。 |
Extension | GA |
| az iot central device list-modules |
列出裝置中的模組。 |
Extension | GA |
| az iot central device manual-failback |
將裝置移回原始 IoT 中樞,以還原先前執行的故障轉移命令。 |
Extension | GA |
| az iot central device manual-failover |
跨多個 IoT 中樞 執行裝置的手動故障轉移,以驗證裝置韌體使用 DPS 重新連線到不同 IoT 中樞 的能力。 |
Extension | GA |
| az iot central device registration-info |
從 IoT Central 取得裝置的註冊資訊。 |
Extension | GA |
| az iot central device show |
從 IoT Central 取得裝置。 |
Extension | GA |
| az iot central device show-credentials |
從 IoT Central 取得裝置認證。 |
Extension | GA |
| az iot central device telemetry |
查詢IoT Central裝置上一個遙測值。 |
Extension | GA |
| az iot central device telemetry show |
從裝置取得最後一個遙測值。 |
Extension | GA |
| az iot central device twin |
管理 IoT Central 裝置對應項。 |
Extension | GA |
| az iot central device twin replace |
取代裝置、裝置元件或裝置模組或裝置模組元件的可寫入屬性值。 |
Extension | GA |
| az iot central device twin show |
取得裝置、裝置元件、裝置模組或裝置模組元件的所有屬性值。 |
Extension | GA |
| az iot central device twin update |
更新裝置、裝置元件、裝置模組或裝置模組元件的可寫入屬性值。 |
Extension | GA |
| az iot central device update |
更新IoT Central中的裝置。 |
Extension | GA |
| az iot central diagnostics |
執行應用程式和裝置層級診斷。 |
Extension | Preview |
| az iot central diagnostics monitor-events |
檢視傳送至IoT Central 應用程式的裝置遙測訊息。 |
Extension | Preview |
| az iot central diagnostics monitor-properties |
檢視傳送至IoT Central 應用程式的所需和回報屬性。 |
Extension | Preview |
| az iot central diagnostics registration-summary |
檢視應用程式中所有裝置的註冊摘要。 |
Extension | Preview |
| az iot central diagnostics validate-messages |
驗證傳送至IoT Central 應用程式的 IoT 中樞訊息。 |
Extension | Preview |
| az iot central diagnostics validate-properties |
驗證傳送至IoT Central 應用程式的回報屬性。 |
Extension | Preview |
| az iot central enrollment-group |
管理及設定IoT Central 註冊群組。 |
Extension | GA |
| az iot central enrollment-group create |
建立註冊群組。 |
Extension | GA |
| az iot central enrollment-group delete |
依標識碼刪除註冊群組。 |
Extension | GA |
| az iot central enrollment-group generate-verification-code |
為註冊群組的主要或次要 x509 憑證產生驗證碼。 |
Extension | GA |
| az iot central enrollment-group list |
取得應用程式中的註冊群組清單。 |
Extension | GA |
| az iot central enrollment-group show |
依標識元取得註冊群組的詳細數據。 |
Extension | GA |
| az iot central enrollment-group update |
更新註冊群組。 |
Extension | GA |
| az iot central enrollment-group verify-certificate |
確認註冊群組的主要或次要 x509 憑證。 |
Extension | GA |
| az iot central export |
管理和設定IoT Central數據匯出。 |
Extension | Preview |
| az iot central export create |
建立IoT Central應用程式的導出。 |
Extension | Preview |
| az iot central export delete |
刪除 IoT Central 應用程式的匯出。 |
Extension | Preview |
| az iot central export destination |
管理和設定IoT Central 匯出目的地。 |
Extension | Preview |
| az iot central export destination create |
建立IoT Central應用程式的導出目的地。 |
Extension | Preview |
| az iot central export destination delete |
刪除 IoT Central 應用程式的導出目的地。 |
Extension | Preview |
| az iot central export destination list |
取得IoT Central 應用程式匯出目的地的完整清單。 |
Extension | Preview |
| az iot central export destination show |
取得匯出目的地詳細數據。 |
Extension | Preview |
| az iot central export destination update |
更新IoT Central應用程式的導出目的地。 |
Extension | Preview |
| az iot central export list |
取得IoT Central應用程式的完整匯出清單。 |
Extension | Preview |
| az iot central export show |
取得匯出詳細數據。 |
Extension | Preview |
| az iot central export update |
更新 IoT Central 應用程式的導出。 |
Extension | Preview |
| az iot central file-upload-config |
管理和設定IoT Central檔案上傳。 |
Extension | GA |
| az iot central file-upload-config create |
建立檔案上傳記憶體帳戶組態。 |
Extension | GA |
| az iot central file-upload-config delete |
刪除檔案上傳記憶體帳戶組態。 |
Extension | GA |
| az iot central file-upload-config show |
取得檔案上傳記憶體帳戶組態的詳細數據。 |
Extension | GA |
| az iot central file-upload-config update |
更新檔案上傳記憶體帳戶組態。 |
Extension | GA |
| az iot central job |
管理及設定IoT Central 應用程式的作業。 |
Extension | GA |
| az iot central job create |
透過作業定義建立和執行作業。 |
Extension | GA |
| az iot central job get-devices |
取得作業裝置狀態。 |
Extension | GA |
| az iot central job list |
取得IoT Central 應用程式的作業清單。 |
Extension | GA |
| az iot central job rerun |
在所有失敗的裝置上重新執行作業。 |
Extension | GA |
| az iot central job resume |
繼續停止的工作。 |
Extension | GA |
| az iot central job show |
依標識元取得作業的詳細數據。 |
Extension | GA |
| az iot central job stop |
停止執行中的作業。 |
Extension | GA |
| az iot central organization |
管理及設定IoT Central 應用程式的組織。 |
Extension | GA |
| az iot central organization create |
在應用程式中建立組織。 |
Extension | GA |
| az iot central organization delete |
依標識碼刪除組織。 |
Extension | GA |
| az iot central organization list |
取得IoT Central 應用程式的組織清單。 |
Extension | GA |
| az iot central organization show |
依標識元取得組織的詳細數據。 |
Extension | GA |
| az iot central organization update |
更新應用程式中的組織。 |
Extension | GA |
| az iot central query |
使用IoT Central查詢語言查詢裝置遙測或屬性數據。 |
Extension | Preview |
| az iot central role |
管理及設定IoT Central 應用程式的角色。 |
Extension | GA |
| az iot central role list |
取得IoT Central 應用程式的角色清單。 |
Extension | GA |
| az iot central role show |
依標識元取得角色的詳細數據。 |
Extension | GA |
| az iot central scheduled-job |
管理和設定IoT Central排程工作。 |
Extension | GA |
| az iot central scheduled-job create |
依標識元建立排程工作。 |
Extension | GA |
| az iot central scheduled-job delete |
依標識碼刪除現有的排程工作。 |
Extension | GA |
| az iot central scheduled-job list |
取得應用程式中排程的作業定義清單。 |
Extension | GA |
| az iot central scheduled-job list-runs |
取得排程作業定義的作業實例清單。 |
Extension | GA |
| az iot central scheduled-job show |
依標識元取得排程工作的詳細數據。 |
Extension | GA |
| az iot central scheduled-job update |
依標識子更新排程的工作。 |
Extension | GA |
| az iot central user |
管理及設定IoT Central使用者。 |
Extension | GA |
| az iot central user create |
將使用者新增至應用程式。 |
Extension | GA |
| az iot central user delete |
從應用程式刪除使用者。 |
Extension | GA |
| az iot central user list |
取得 IoT Central 應用程式的使用者清單。 |
Extension | GA |
| az iot central user show |
依標識碼取得使用者的詳細數據。 |
Extension | GA |
| az iot central user update |
更新應用程式中使用者的角色。 |
Extension | GA |
az iot central query
此命令處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus
使用IoT Central查詢語言查詢裝置遙測或屬性數據。
az iot central query --app-id
--qs --query-string
[--api-version --av {2022-06-30-preview}]
[--central-api-uri --central-dns-suffix]
[--token]
範例
查詢裝置遙測
az iot central query --app-id {appid} --query-string {query_string}
必要參數
您要管理的 IoT Central 應用程式的應用程式識別碼。 您可以在應用程式[關於] 頁面的 [說明] 選單下找到應用程式識別碼。
用來擷取遙測或屬性數據的查詢子句。
選擇性參數
下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。
自變數 'api_version' 已被取代,並將在未來版本中移除。
所要求作業的 API 版本。
| 屬性 | 值 |
|---|---|
| 預設值: | 2022-06-30-preview |
| 接受的值: | 2022-06-30-preview |
與您的應用程式相關聯的IoT Central DNS後綴。
| 屬性 | 值 |
|---|---|
| 預設值: | azureiotcentral.com |
如果您想要提交要求而不向 Azure CLI 進行驗證,您可以指定有效的使用者令牌來驗證您的要求。 您必須將金鑰類型指定為要求的一部分。 了解更多資訊,請至 https://aka.ms/iotcentraldocsapi。
全域參數
提高日誌詳細程度以顯示所有調試日誌。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
| 屬性 | 值 |
|---|---|
| 預設值: | False |
輸出格式。
| 屬性 | 值 |
|---|---|
| 預設值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。
增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。
| 屬性 | 值 |
|---|---|
| 預設值: | False |