LoginSignup
1
1

More than 5 years have passed since last update.

Azure CLI2.0でIoT Hubのデバイス登録をする

Last updated at Posted at 2018-06-05

コマンド

Azure Portalのクラウドシェルでも実行可能


# デバイス登録をする
az iot device create --hub-name MyIotHub --device-id MyDevice


# デバイスの接続文字列を取得する
## 指定したデバイスのプライマリキーの接続文字列を取得する
az iot device show-connection-string --hub-name MyIotHub --device-id MyDevice

## トップ100デバイスの接続文字列を取得する
az iot device show-connection-string --hub-name MyIotHub --top 100


# デバイスのプロパティ(デバイスツインのetag)を更新する
az iot device update --hub-name MyIotHub --device-id MyDevice --set property1.property2=value1

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1