共用方式為


az sphere deployment

備註

此參考是 Azure CLI azure-sphere 延伸模組的一部分(2.45.0 版或更高版本)。 當您第一次執行 az sphere deployment 命令 時,擴充功能會自動安裝。 深入瞭解擴充功能

管理資源群組和目錄中的部署。

命令

名稱 Description 類型 狀態
az sphere deployment create

建立部署。

擴充套件 GA
az sphere deployment list

列出所有部署。

擴充套件 GA
az sphere deployment show

顯示部署的詳細數據。

擴充套件 GA

az sphere deployment create

建立部署。

az sphere deployment create --catalog
                            --device-group
                            --images
                            --product
                            --resource-group

範例

在資源群組 「MyResourceGroup」、目錄 「MyCatalog」、產品 「MyProduct」 和裝置群組 「MyDeviceGroup」 中建立新的部署。

az sphere deployment create --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup --images 25b91eed-1996-4049-ab9f-70982b87ad58

使用資源群組 「MyResourceGroup」、目錄 「MyCatalog」、產品 「MyProduct」 和裝置群組 「MyDeviceGroup」 中的映像建立新的部署。

az sphere deployment create --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup --images 25b91eed-1996-4049-ab9f-70982b87ad58 48ecb7b3-c296-49cb-8dec-5fdaea0abb62

必要參數

--catalog -c

要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>來設定預設的 Azure Sphere 目錄。 來自:az sphere catalog list 的值。

--device-group -dg

裝置組名。

值來源: az sphere device-group list
--images -i

要部署之映像的空間分隔清單。

值來源: az sphere image list
--product -p

要在其中建立部署的產品。

值來源: az sphere product list
--resource-group -g

Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>來設定預設群組。 來自:az group list 的值。

全域參數
--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 sphere deployment list

列出所有部署。

az sphere deployment list --catalog
                          --device-group
                          --product
                          --resource-group

範例

列出資源群組、目錄、產品和裝置群組中的所有部署。

az sphere deployment list --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup

必要參數

--catalog -c

要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>來設定預設的 Azure Sphere 目錄。 來自:az sphere catalog list 的值。

--device-group -dg

裝置組名。

值來源: az sphere device-group list
--product -p

要在其中列出部署的產品。

值來源: az sphere product list
--resource-group -g

Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>來設定預設群組。 來自:az group list 的值。

全域參數
--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 sphere deployment show

顯示部署的詳細數據。

az sphere deployment show --catalog
                          --deployment-id
                          --device-group
                          --product
                          --resource-group

範例

使用資源群組、目錄名稱和部署標識碼來顯示部署的詳細數據。

az sphere deployment show --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup --deployment-id 5422a862-cfc7-4cb8-a2d7-7ba71873b7b6

必要參數

--catalog -c

要在其中執行這項作業的 Azure Sphere 目錄。 指定 Azure Sphere 目錄名稱。 您可以使用 az config set defaults.sphere.catalog=<name>來設定預設的 Azure Sphere 目錄。 來自:az sphere catalog list 的值。

--deployment-id -di

部署標識碼。

--device-group -dg

裝置組名。

值來源: az sphere device-group list
--product -p

要在其中列出部署的產品。

值來源: az sphere product list
--resource-group -g

Azure 資源群組的名稱。 您可以使用 az config set defaults.group=<name>來設定預設群組。 來自:az group list 的值。

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