az iot central device telemetry
Note
This reference is part of the azure-iot extension for the Azure CLI (version 2.59.0 or higher). 拡張機能は、az iot central device telemetry コマンドを初めて実行するときに自動的にインストールされます。 Learn more about extensions.
IoT Central デバイスの最後のテレメトリ値に対してクエリを実行します。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az iot central device telemetry show |
デバイスから最後のテレメトリ値を取得します。 |
Extension | GA |
az iot central device telemetry show
デバイスから最後のテレメトリ値を取得します。
az iot central device telemetry show --app-id
--device-id
--telemetry-name--tn
[--api-version --av {2022-06-30-preview, 2022-07-31}]
[--central-api-uri --central-dns-suffix]
[--co --component-name]
[--mn --module-name]
[--token]
例
デバイス テレメトリの値を取得します。
az iot central device telemetry show --app-id {appid} --device-id {deviceid} --telemetry-name {telemetryname}
デバイス コンポーネントのテレメトリ値を取得します。
az iot central device telemetry show --app-id {appid} --device-id {deviceid} --component-name {componentname} --telemetry-name {telemetryname}
デバイス モジュール コンポーネントのテレメトリ値を取得します。
az iot central device telemetry show --app-id {appid} --device-id {deviceid} --module-name {modulename} --component-name {componentname} --telemetry-name {telemetryname}
必須のパラメーター
管理する IoT Central アプリのアプリ ID。 アプリ ID は、アプリケーションの [バージョン情報] ページのヘルプ メニューにあります。
ターゲット デバイスのデバイス ID。デバイス ID を確認するには、[デバイスの詳細] ページの [接続] ボタンをクリックします。
デバイス テレメトリの名前。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
引数 'api_version' は非推奨となり、今後のリリースで削除される予定です。
このコマンド パラメーターは非推奨となり、無視されます。今後のリリースでは、最新の GA バージョンの IoT Central API のみをサポートします。API がまだ GA でない場合は、最新のプレビュー バージョンを呼び出します。
プロパティ | 値 |
---|---|
規定値: | 2022-07-31 |
指定可能な値: | 2022-06-30-preview, 2022-07-31 |
アプリケーションに関連付けられている IoT Central DNS サフィックス。
プロパティ | 値 |
---|---|
規定値: | azureiotcentral.com |
デバイス コンポーネントの名前。
デバイス モジュールの名前。
Azure CLI に対して認証せずに要求を送信する場合は、要求を認証するための有効なユーザー トークンを指定できます。 要求の一部としてキーの種類を指定する必要があります。 詳細については、https://aka.ms/iotcentraldocsapiを参照してください。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |