az sphere device-group
注意
此參考是 Azure CLI 的 azure-sphere 延伸模組的一部分(2.45.0 版或更高版本)。 擴充功能會在您第一次執行 az sphere device-group 命令時自動安裝。 深入了解擴充功能。
管理資源群組和目錄中的裝置群組。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az sphere device-group create |
建立裝置群組。 |
副檔名 | GA |
az sphere device-group create-defaults |
建立以產品為目標的預設裝置群組。 |
副檔名 | GA |
az sphere device-group delete |
刪除指定的裝置群組。 |
副檔名 | GA |
az sphere device-group list |
列出目錄中的所有裝置群組。 |
副檔名 | GA |
az sphere device-group show |
顯示裝置群組的詳細數據。 |
副檔名 | GA |
az sphere device-group update |
更新裝置群組的詳細數據。 |
副檔名 | GA |
az sphere device-group create
建立裝置群組。
az sphere device-group create --catalog
--description
--name
--product
--resource-group
[--allow-crash-dumps-collection {Disabled, Enabled}]
[--application-update {No3rdPartyAppUpdates, UpdateAll}]
[--os-feed {Retail, RetailEval}]
[--regional-data-boundary {EU, None}]
範例
在資源群組 「MyResourceGroup」 中建立新的裝置群組 「MyDeviceGroup」、目錄 「MyCatalog」、產品 「MyProduct」、描述 「MyDescription」 和預設區域數據界限。
az sphere device-group create --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --name MyDeviceGroup --description MyDescription
在資源群組 「MyResourceGroup」 中建立新的裝置群組 「MyDeviceGroup」,目錄 「MyCatalog」, 產品 「MyProduct」 描述 「MyDescription」。,並指定區域數據界限。
az sphere device-group create --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --name MyDeviceGroup --description MyDescription --regional-data-boundary EU
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 來設定預設的 Azure Sphere 目錄 az config set defaults.sphere.catalog=<name>
。 來自:az sphere catalog list 的值。
裝置群組的描述。
裝置群組的英數位元名稱。
產品名稱。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
選擇性參數
為此裝置群組提供 Microsoft 收集損毀傾印的同意。 如需詳細資訊,請參閱https://aka.ms/AzureSphereCrashDumpsCollection。
此裝置群組的應用程式更新原則。
要用於OS更新的OS摘要類型。
此裝置群組的區域數據界限。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az sphere device-group create-defaults
建立以產品為目標的預設裝置群組。
az sphere device-group create-defaults --catalog
--product
--resource-group
範例
在資源群組 「MyResourceGroup」、目錄 「MyCatalog」 和產品 「MyProduct」 中建立預設裝置群組。
az sphere device-group create-defaults --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 來設定預設的 Azure Sphere 目錄 az config set defaults.sphere.catalog=<name>
。 來自:az sphere catalog list 的值。
產品名稱。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az sphere device-group delete
刪除指定的裝置群組。
az sphere device-group delete --catalog
--device-group
--product
--resource-group
範例
使用資源群組、目錄名稱、產品名稱和裝置組名來刪除裝置群組。
az sphere device-group delete --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 來設定預設的 Azure Sphere 目錄 az config set defaults.sphere.catalog=<name>
。 來自:az sphere catalog list 的值。
裝置組名。
要刪除裝置群組的產品。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az sphere device-group list
列出目錄中的所有裝置群組。
az sphere device-group list --catalog
--resource-group
[--device-group]
[--product]
範例
列出資源群組和目錄中的所有裝置群組。
az sphere device-group list --resource-group MyResourceGroup --catalog MyCatalog
列出資源群組和目錄中具有指定名稱的所有裝置群組。
az sphere device-group list --resource-group MyResourceGroup --catalog MyCatalog --device-group Development
列出資源群組、目錄和產品中的所有裝置群組。
az sphere device-group list --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 來設定預設的 Azure Sphere 目錄 az config set defaults.sphere.catalog=<name>
。 來自:az sphere catalog list 的值。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
選擇性參數
列出具有指定名稱的所有裝置群組。
列出產品中的所有裝置群組。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az sphere device-group show
顯示裝置群組的詳細數據。
az sphere device-group show --catalog
--device-group
--product
--resource-group
範例
使用資源群組、目錄名稱、產品名稱和裝置組名來顯示裝置群組的詳細數據。
az sphere device-group show --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 來設定預設的 Azure Sphere 目錄 az config set defaults.sphere.catalog=<name>
。 來自:az sphere catalog list 的值。
要顯示的裝置群組。
要顯示裝置群組的產品名稱。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。
az sphere device-group update
更新裝置群組的詳細數據。
az sphere device-group update --catalog
--device-group
--product
--resource-group
[--allow-crash-dumps-collection {Disabled, Enabled}]
[--application-update {No3rdPartyAppUpdates, UpdateAll}]
[--description]
[--os-feed {Retail, RetailEval}]
[--regional-data-boundary {EU, None}]
範例
更新裝置群組的屬性。
az sphere device-group update --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup --description NewDescription
必要參數
要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 來設定預設的 Azure Sphere 目錄 az config set defaults.sphere.catalog=<name>
。 來自:az sphere catalog list 的值。
裝置組名。
產品名稱。
Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>
來設定預設群組。 來自:az group list 的值。
選擇性參數
為此裝置群組提供 Microsoft 收集損毀傾印的同意。 如需詳細資訊,請參閱https://aka.ms/AzureSphereCrashDumpsCollection。
此裝置群組的應用程式更新原則。
裝置群組的新描述。
要用於OS更新的OS摘要類型。
此裝置群組的區域數據界限。
全域參數
增加記錄詳細資訊,以顯示所有偵錯記錄。
顯示此說明訊息並結束。
只顯示錯誤,隱藏警告。
輸出格式。
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。