共用方式為


az security iot-solution

管理IoT安全性解決方案。

命令

名稱 Description 類型 狀態
az security iot-solution create

建立IoT安全性解決方案。

核心 GA
az security iot-solution delete

刪除IoT安全性解決方案。

核心 GA
az security iot-solution list

列出所有IoT安全性解決方案。

核心 GA
az security iot-solution show

顯示IoT安全性解決方案。

核心 GA
az security iot-solution update

更新IoT安全性解決方案。

核心 GA

az security iot-solution create

建立IoT安全性解決方案。

az security iot-solution create --display-name
                                --iot-hubs
                                --location
                                --resource-group
                                --solution-name

範例

在現有的IoT中樞上建立IoT安全性解決方案。

az security iot-solution create --solution-name 'IoT-Hub1' --resource-group 'rg1' --iot-hubs /subscriptions/subscriptionId/resourcegroups/rg1/providers/Microsoft.Devices/IotHubs/IoT-Hub1 --display-name "Solution Default" --location "eastus"

必要參數

--display-name

資源顯示名稱。

--iot-hubs

IoT 中樞資源標識碼。

--location -l

資源的位置。

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--solution-name

IoT 安全性解決方案的名稱。

全域參數
--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 security iot-solution delete

刪除IoT安全性解決方案。

az security iot-solution delete --resource-group
                                --solution-name

範例

刪除IoT安全性解決方案。

az security iot-solution delete --solution-name 'IoT-Hub1' --resource-group 'rg1'

必要參數

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--solution-name

IoT 安全性解決方案的名稱。

全域參數
--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 security iot-solution list

列出所有IoT安全性解決方案。

az security iot-solution list [--resource-group]

範例

取得訂用帳戶中所有IoT安全性解決方案的清單。

az security iot-solution list

選擇性參數

--resource-group -g

資源組名。 您可以使用 az configure --defaults 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 security iot-solution show

顯示IoT安全性解決方案。

az security iot-solution show --resource-group
                              --solution-name

範例

取得IoT安全性解決方案。

az security iot-solution show --solution-name 'IoT-Hub1' --resource-group 'rg1'

必要參數

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--solution-name

IoT 安全性解決方案的名稱。

全域參數
--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 security iot-solution update

更新IoT安全性解決方案。

az security iot-solution update --resource-group
                                --solution-name
                                [--display-name]
                                [--iot-hubs]

範例

更新IoT安全性解決方案。

az security iot-solution update --solution-name 'IoT-Hub1' --resource-group 'rg1' --iot-hubs /subscriptions/subscriptionId/resourcegroups/rg1/providers/Microsoft.Devices/IotHubs/IoT-Hub1 --display-name "Solution Default"

必要參數

--resource-group -g

資源組名。 您可以使用 az configure --defaults group=<name>來設定預設群組。

--solution-name

IoT 安全性解決方案的名稱。

選擇性參數

--display-name

資源顯示名稱。

--iot-hubs

IoT 中樞資源標識碼。

全域參數
--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。