共用方式為


az sphere device sideload

備註

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

在連結的裝置上部署和管理應用程式。

命令

名稱 Description 類型 狀態
az sphere device sideload delete

從連結的裝置刪除應用程式。

擴充套件 GA
az sphere device sideload deploy

將應用程式部署至連結的裝置。

擴充套件 GA
az sphere device sideload set-deployment-timeout

以秒為單位設定部署逾時。

擴充套件 GA
az sphere device sideload show-deployment-timeout

以秒為單位顯示部署逾時。

擴充套件 GA

az sphere device sideload delete

從連結的裝置刪除應用程式。

az sphere device sideload delete [--component-id]
                                 [--device]
                                 [--except-component-ids]

範例

從裝置刪除應用程式。

az sphere device sideload delete

從特定裝置刪除應用程式。

az sphere device sideload delete --device <DeviceIdValue>

從裝置刪除特定應用程式。

az sphere device sideload delete --component-id d2d461c4-b870-4619-b207-e86b8ab1481c

刪除裝置中兩個特定應用程式以外的應用程式。

az sphere device sideload delete --except-component-ids d2d461c4-b870-4619-b207-e86b8ab1481c 683520b6-df43-4f4f-a4de-4c7a6f2ad05d

選擇性參數

--component-id -i

要刪除的元件標識碼;根據預設,會刪除所有應用程式。 (GUID)。

值來源: az sphere device image list-installed
--device -d

連接多個裝置時,要執行命令的裝置。 指定連結裝置的識別碼、IP 位址或本機連線標識碼。

值來源: az sphere device list-attached
--except-component-ids -e

要從一組要刪除的應用程式中排除之元件的空間分隔標識碼。 (GUID)。

值來源: az sphere device image list-installed
全域參數
--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 device sideload deploy

將應用程式部署至連結的裝置。

az sphere device sideload deploy --image-package
                                 [--device]
                                 [--force {false, true}]
                                 [--manual-start {false, true}]

範例

將映像套件部署至裝置。

az sphere device sideload deploy --image-package MyImage.imagepackage

使用手動啟動將映像套件部署至裝置。

az sphere device sideload deploy --image-package MyImage.imagepackage --manual-start

將映像套件部署至特定裝置。

az sphere device sideload deploy --image-package MyImage.imagepackage --device <DeviceIdValue>

必要參數

--image-package -p

要部署之映像套件檔案的路徑和檔名。 您可以提供相對或絕對路徑。 (路徑)。

選擇性參數

--device -d

連接多個裝置時,要執行命令的裝置。 指定連結裝置的識別碼、IP 位址或本機連線標識碼。

值來源: az sphere device list-attached
--force

使用可能不再支援的 Beta API 強制部署映像。

接受的值: false, true
預設值: False
--manual-start -m

不要在側載之後自動啟動應用程式。

接受的值: false, true
預設值: False
全域參數
--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 device sideload set-deployment-timeout

以秒為單位設定部署逾時。

az sphere device sideload set-deployment-timeout --value

範例

設定部署逾時值。

az sphere device sideload set-deployment-timeout --value 30

必要參數

--value -v

以秒為單位的逾時值。

全域參數
--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 device sideload show-deployment-timeout

以秒為單位顯示部署逾時。

az sphere device sideload show-deployment-timeout

範例

顯示部署逾時值。

az sphere device sideload show-deployment-timeout
全域參數
--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。