az sphere deployment

Note

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

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

命令

名稱 Description 類型 狀態
az sphere deployment create

建立部署。

Extension GA
az sphere deployment list

列出所有部署。

Extension GA
az sphere deployment show

顯示部署的詳細數據。

Extension GA

az sphere deployment create

建立部署。

az sphere deployment create --catalog
                            --device-group
                            --images
                            --product
                            --resource-group
                            [--acquire-policy-token]
                            [--change-reference]

範例

在資源群組 「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 的值。

選擇性參數

下列參數是選擇性參數,但視內容而定,命令可能需要一或多個參數才能成功執行。

--acquire-policy-token

自動取得 Azure 原則 令牌以進行此資源操作。

屬性 值
參數群組: Global Policy Arguments
--change-reference

相關變更的 ID 是為此資源操作所參考的。

屬性 值
參數群組: Global Policy Arguments
全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

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

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False

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

提高日誌詳細程度以顯示所有調試日誌。

屬性 值
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性 值
預設值: False
--output -o

輸出格式。

屬性 值
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性 值
預設值: False