az sphere device-group

管理资源组和目录中的设备组。

操作 描述
az sphere device-group list 列出目录中的所有设备组。
az sphere device-group show 显示设备组的详细信息。
az sphere device-group create 创建设备组。
az sphere device-group create-defaults 创建面向产品的默认设备组。
az sphere device-group update 更新设备组的详细信息。
az sphere device-group delete 删除指定的设备组。

命令

az sphere device-group list

列出目录中的所有设备组。

必需参数

参数 描述
--catalog -c 要在其中执行此操作的 Azure Sphere 目录。 指定 Azure Sphere 目录名称。 可以使用 配置默认的 Azure Sphere 目录 az config set defaults.sphere.catalog=<name>。 中的值: az sphere catalog list
--resource-group -r Azure 资源组的名称。 可以使用 配置默认组 az config set defaults.group=<name>。 中的值: az group list

可选参数

参数 描述
--product -p 产品名称。 值来自: az sphere product list
--device-group -dg 要显示的设备组。 值来自: az sphere device

例子

列出资源组和目录中的所有设备组。

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

az sphere device-group show

显示设备组的详细信息。

必需参数

参数 描述
--product -p 产品名称。 值来自: az sphere product list
--device-group -dg 要显示的设备组。 值来自: az sphere device
--catalog -c 要在其中执行此操作的 Azure Sphere 目录。 指定 Azure Sphere 目录名称。 可以使用 配置默认的 Azure Sphere 目录 az config set defaults.sphere.catalog=<name>。 中的值: az sphere catalog list
--resource-group -r Azure 资源组的名称。 可以使用 配置默认组 az config set defaults.group=<name>。 中的值: az group list

例子

使用资源组、目录名称、产品名称和设备组名称显示设备组的详细信息。

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

az sphere device-group create

创建设备组。

必需参数

参数 描述
--product -p 产品名称。 值来自: az sphere product list
--name -n 要下载的证书。 指定名称。 如果未提供任何名称,则会下载活动证书。 值来自: az sphere ca
--description -d 设备组的说明。
--catalog -c 要在其中执行此操作的 Azure Sphere 目录。 指定 Azure Sphere 目录名称。 可以使用 配置默认的 Azure Sphere 目录 az config set defaults.sphere.catalog=<name>。 中的值: az sphere catalog list
--resource-group -r Azure 资源组的名称。 可以使用 配置默认组 az config set defaults.group=<name>。 中的值: az group list

可选参数

参数 描述
--os-feed -f 用于 OS 更新的 OS 源类型。
--application-update -a 此设备组的应用程序更新策略。
--allow-crash-dumps-collection -cd 同意 Microsoft 为此设备组收集故障转储。 有关详细信息,请参阅 https://aka.ms/AzureSphereCrashDumpsCollection
--regional-data-boundary -r 此设备组的区域数据边界。

例子

在资源组 MyResourceGroup、目录 MyCatalog、产品 MyProduct、说明 MyDescription 和默认区域数据边界中创建新的设备组 MyDeviceGroup。

az sphere device-group create --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --name MyDeviceGroup --description MyDescription

在资源组 MyResourceGroup、目录 MyCatalog、product MyProduct、description MyDescription 中创建新的设备组 MyDeviceGroup,并指定区域数据边界。

az sphere device-group create --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --name MyDeviceGroup --description MyDescription --regional-data-boundary EU

az sphere device-group create-defaults

创建面向产品的默认设备组。

必需参数

参数 描述
--product -p 产品名称。 值来自: az sphere product list
--catalog -c 要在其中执行此操作的 Azure Sphere 目录。 指定 Azure Sphere 目录名称。 可以使用 配置默认的 Azure Sphere 目录 az config set defaults.sphere.catalog=<name>。 中的值: az sphere catalog list
--resource-group -r Azure 资源组的名称。 可以使用 配置默认组 az config set defaults.group=<name>。 中的值: az group list

例子

在资源组 MyResourceGroup、目录 MyCatalog 和产品 MyProduct 中创建默认设备组。

az sphere device-group create-defaults --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct

az sphere device-group update

更新设备组的详细信息。

必需参数

参数 描述
--product -p 产品名称。 值来自: az sphere product list
--device-group -dg 要显示的设备组。 值来自: az sphere device
--catalog -c 要在其中执行此操作的 Azure Sphere 目录。 指定 Azure Sphere 目录名称。 可以使用 配置默认的 Azure Sphere 目录 az config set defaults.sphere.catalog=<name>。 中的值: az sphere catalog list
--resource-group -r Azure 资源组的名称。 可以使用 配置默认组 az config set defaults.group=<name>。 中的值: az group list

可选参数

参数 描述
--description -d 设备组的新说明。
--os-feed -f 用于 OS 更新的 OS 源类型。
--application-update -a 此设备组的应用程序更新策略。
--allow-crash-dumps-collection -cd 同意 Microsoft 为此设备组收集故障转储。 有关详细信息,请参阅 https://aka.ms/AzureSphereCrashDumpsCollection
--regional-data-boundary -r 此设备组的区域数据边界。

例子

更新设备组的属性。

az sphere device-group update --resource-group MyResourceGroup --catalog MyCatalog --product MyProduct --device-group MyDeviceGroup --description NewDescription

az sphere device-group delete

删除指定的设备组。

必需参数

参数 描述
--product -p 产品名称。 值来自: az sphere product list
--device-group -dg 要显示的设备组。 值来自: az sphere device
--catalog -c 要在其中执行此操作的 Azure Sphere 目录。 指定 Azure Sphere 目录名称。 可以使用 配置默认的 Azure Sphere 目录 az config set defaults.sphere.catalog=<name>。 中的值: az sphere catalog list
--resource-group -r Azure 资源组的名称。 可以使用 配置默认组 az config set defaults.group=<name>。 中的值: az group list

例子

使用资源组、目录名称、产品名称和设备组名称删除设备组。

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