你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
- 最新
- 2026-04-01-预览
- 2026-03-01-预览
- 2026-01-01-预览
- 2025-11-01-预览
- 2025-10-10
- 2025-09-01-预览
- 2025-08-01-preview
- 2025-04-01-preview
- 2025-03-01-预览版
- 2024-11-01-预览版
- 2024-08-08-预览版
- 2024-04-08-预览版
- 2024-04-03
- 2024-03-06-预览版
- 2024-01-16-预览版
- 2023-11-01-预览版
- 2023-10-04-预览版
- 2023-09-05
- 2022-10-14-预览版
- 2022-09-09
- 2022-04-01-预览版
- 2022-02-10-预览版
- 2021-09-03-预览版
- 2021-07-12
- 2021-04-01-预览版
- 2021-03-09-预览版
- 2021-02-01-预览版
- 2021-01-14-预览版
- 2020-11-10-预览版
- 2020-11-02-预览版
- 2020-10-19-预览版
- 2020-09-21-预览版
- 2019-12-10-预览版
- 2019-09-24-预览版
- 2019-01-23-预览版
Bicep 资源定义
可以使用目标操作部署 applicationGroups 资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
用法示例
Bicep 示例
部署虚拟桌面应用程序组的基本示例。
param resourceName string = 'acctest0001'
param location string = 'westus'
resource applicationGroup 'Microsoft.DesktopVirtualization/applicationGroups@2024-04-03' = {
name: '${resourceName}-ag'
location: location
properties: {
applicationGroupType: 'Desktop'
description: ''
friendlyName: ''
hostPoolArmPath: hostPool.id
}
}
resource hostPool 'Microsoft.DesktopVirtualization/hostPools@2024-04-03' = {
name: '${resourceName}-hp'
location: location
properties: {
customRdpProperty: ''
description: ''
friendlyName: ''
hostPoolType: 'Pooled'
loadBalancerType: 'BreadthFirst'
maxSessionLimit: 999999
personalDesktopAssignmentType: ''
preferredAppGroupType: 'Desktop'
publicNetworkAccess: 'Enabled'
startVMOnConnect: false
validationEnvironment: false
vmTemplate: ''
}
}
Azure 验证模块
以下 Azure 验证模块 可用于部署此资源类型。
| 模块 | 描述 |
|---|---|
| Azure 虚拟桌面(AVD)应用程序组 | Azure 虚拟桌面(AVD)应用程序组的 AVM 资源模块 |
Azure 快速入门示例
以下 Azure 快速入门模板 包含用于部署此资源类型的 Bicep 示例。
| Bicep 文件 | 描述 |
|---|---|
| 使用 Microsoft Entra ID 联接创建 AVD | 通过此模板,可以创建 Azure 虚拟桌面资源,例如主机池、应用程序组、工作区、测试会话主机及其扩展,Microsoft Entra ID 联接 |
资源格式
若要创建 Microsoft.DesktopVirtualization/applicationGroups 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.DesktopVirtualization/applicationGroups@2026-04-01-preview' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
kind: 'string'
location: 'string'
managedBy: 'string'
name: 'string'
plan: {
name: 'string'
product: 'string'
promotionCode: 'string'
publisher: 'string'
version: 'string'
}
properties: {
applicationGroupType: 'string'
description: 'string'
friendlyName: 'string'
hostPoolArmPath: 'string'
oboTenantId: 'string'
showInFeed: bool
}
sku: {
capacity: int
family: 'string'
name: 'string'
size: 'string'
tier: 'string'
}
tags: {
{customized property}: 'string'
}
}
属性值
微软桌面虚拟化/应用程序组
| 名字 | 描述 | 价值 |
|---|---|---|
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 类 | 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据;例如,ApiApps 是一种 Microsoft.Web/sites 类型。 如果受支持,资源提供程序必须验证并保留此值。 | 字符串 约束: 图案 = ^[-\w\._,\(\)]+$ |
| 位置 | 资源所在的地理位置 | string (必需) |
| managedBy | 管理此资源的资源的完全限定资源 ID。 指示此资源是否由另一个 Azure 资源管理。 如果存在,则完全模式部署不会删除资源(如果从模板中删除,因为它由另一个资源管理)。 | 字符串 |
| 名字 | 资源名称 | 字符串 约束: 最小长度 = 3 最大长度 = 64 模式 = ^[A-Za-z0-9@.\-_ ]*$ (必需) |
| 计划 | 资源计划的详细信息。 | 计划 |
| 性能 | ApplicationGroup 的详细属性 | ApplicationGroupProperties(必需) |
| SKU | 分配给此资源的 SKU(库存单位)。 | SKU |
| 标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
ApplicationGroup属性
| 名字 | 描述 | 价值 |
|---|---|---|
| applicationGroupType | ApplicationGroup 的资源类型。 | “Desktop” “RemoteApp”(必需) |
| 描述 | ApplicationGroup 的说明。 | 字符串 |
| 友好名称 | ApplicationGroup 的友好名称。 | 字符串 |
| hostPoolArmPath | ApplicationGroup 的 HostPool arm 路径。 | string (必需) |
| oboTenantId | 代表请求资源的租户。 | 字符串 |
| showInFeed 显示 | 表示 applicationGroup 是否显示在源中的布尔值。 | 布尔 |
ManagedServiceIdentity
| 名字 | 描述 | 价值 |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| 用户分配的标识 | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| 名字 | 描述 | 价值 |
|---|
计划
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 正在采购的第三方项目的用户定义的名称。 | string (必需) |
| 产品 | 正在采购的第三方项目。 例如 NewRelic。 产品映射到在数据市场载入时为项目指定的 OfferID。 | string (必需) |
| 促销代码 | 发布者为上述产品/项目提供数据市场中预配的促销代码。 | 字符串 |
| 发布服务器 | 正在购买的第三方项目的发布者。 例如 NewRelic | string (必需) |
| 版本 | 所需产品/项目的版本。 | 字符串 |
SKU
| 名字 | 描述 | 价值 |
|---|---|---|
| 产能 | 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 | 整数 (int) |
| 家庭 | 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 | 字符串 |
| 名字 | SKU 的名称。 例如 P3。 它通常是字母+数字代码 | string (必需) |
| 大小 | SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 | 字符串 |
| 分层 | 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 | “Basic” “Free” “Premium” “Standard” |
TrackedResourceTags
| 名字 | 描述 | 价值 |
|---|
UserAssignedIdentity
| 名字 | 描述 | 价值 |
|---|
ARM 模板资源定义
可以使用目标操作部署 applicationGroups 资源类型:
用法示例
Azure 快速入门模板
以下 Azure 快速入门模板 部署此资源类型。
| 模板 | 描述 |
|---|---|
|
使用 Microsoft Entra ID 联接创建 AVD |
通过此模板,可以创建 Azure 虚拟桌面资源,例如主机池、应用程序组、工作区、测试会话主机及其扩展,Microsoft Entra ID 联接 |
资源格式
若要创建 Microsoft.DesktopVirtualization/applicationGroups 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.DesktopVirtualization/applicationGroups",
"apiVersion": "2026-04-01-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"kind": "string",
"location": "string",
"managedBy": "string",
"plan": {
"name": "string",
"product": "string",
"promotionCode": "string",
"publisher": "string",
"version": "string"
},
"properties": {
"applicationGroupType": "string",
"description": "string",
"friendlyName": "string",
"hostPoolArmPath": "string",
"oboTenantId": "string",
"showInFeed": "bool"
},
"sku": {
"capacity": "int",
"family": "string",
"name": "string",
"size": "string",
"tier": "string"
},
"tags": {
"{customized property}": "string"
}
}
属性值
微软桌面虚拟化/应用程序组
| 名字 | 描述 | 价值 |
|---|---|---|
| apiVersion | API 版本 | '2026-04-01-预览' |
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 类 | 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据;例如,ApiApps 是一种 Microsoft.Web/sites 类型。 如果受支持,资源提供程序必须验证并保留此值。 | 字符串 约束: 图案 = ^[-\w\._,\(\)]+$ |
| 位置 | 资源所在的地理位置 | string (必需) |
| managedBy | 管理此资源的资源的完全限定资源 ID。 指示此资源是否由另一个 Azure 资源管理。 如果存在,则完全模式部署不会删除资源(如果从模板中删除,因为它由另一个资源管理)。 | 字符串 |
| 名字 | 资源名称 | 字符串 约束: 最小长度 = 3 最大长度 = 64 模式 = ^[A-Za-z0-9@.\-_ ]*$ (必需) |
| 计划 | 资源计划的详细信息。 | 计划 |
| 性能 | ApplicationGroup 的详细属性 | ApplicationGroupProperties(必需) |
| SKU | 分配给此资源的 SKU(库存单位)。 | SKU |
| 标签 | 资源标记 | 标记名称和值的字典。 请参阅模板 中的 |
| 类型 | 资源类型 | “Microsoft.DesktopVirtualization/applicationGroups” |
ApplicationGroup属性
| 名字 | 描述 | 价值 |
|---|---|---|
| applicationGroupType | ApplicationGroup 的资源类型。 | “Desktop” “RemoteApp”(必需) |
| 描述 | ApplicationGroup 的说明。 | 字符串 |
| 友好名称 | ApplicationGroup 的友好名称。 | 字符串 |
| hostPoolArmPath | ApplicationGroup 的 HostPool arm 路径。 | string (必需) |
| oboTenantId | 代表请求资源的租户。 | 字符串 |
| showInFeed 显示 | 表示 applicationGroup 是否显示在源中的布尔值。 | 布尔 |
ManagedServiceIdentity
| 名字 | 描述 | 价值 |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| 用户分配的标识 | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| 名字 | 描述 | 价值 |
|---|
计划
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 正在采购的第三方项目的用户定义的名称。 | string (必需) |
| 产品 | 正在采购的第三方项目。 例如 NewRelic。 产品映射到在数据市场载入时为项目指定的 OfferID。 | string (必需) |
| 促销代码 | 发布者为上述产品/项目提供数据市场中预配的促销代码。 | 字符串 |
| 发布服务器 | 正在购买的第三方项目的发布者。 例如 NewRelic | string (必需) |
| 版本 | 所需产品/项目的版本。 | 字符串 |
SKU
| 名字 | 描述 | 价值 |
|---|---|---|
| 产能 | 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 | 整数 (int) |
| 家庭 | 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 | 字符串 |
| 名字 | SKU 的名称。 例如 P3。 它通常是字母+数字代码 | string (必需) |
| 大小 | SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 | 字符串 |
| 分层 | 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 | “Basic” “Free” “Premium” “Standard” |
TrackedResourceTags
| 名字 | 描述 | 价值 |
|---|
UserAssignedIdentity
| 名字 | 描述 | 价值 |
|---|
Terraform (AzAPI 提供程序)资源定义
可以使用目标操作部署 applicationGroups 资源类型:
- 资源组 关于每个API版本中变更属性的列表,请参见 更改日志。
用法示例
Terraform 示例
部署虚拟桌面应用程序组的基本示例。
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westus"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "hostPool" {
type = "Microsoft.DesktopVirtualization/hostPools@2024-04-03"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}-hp"
location = var.location
body = {
properties = {
customRdpProperty = ""
description = ""
friendlyName = ""
hostPoolType = "Pooled"
loadBalancerType = "BreadthFirst"
maxSessionLimit = 999999
personalDesktopAssignmentType = ""
preferredAppGroupType = "Desktop"
publicNetworkAccess = "Enabled"
startVMOnConnect = false
validationEnvironment = false
vmTemplate = ""
}
}
}
resource "azapi_resource" "applicationGroup" {
type = "Microsoft.DesktopVirtualization/applicationGroups@2024-04-03"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}-ag"
location = var.location
body = {
properties = {
applicationGroupType = "Desktop"
description = ""
friendlyName = ""
hostPoolArmPath = azapi_resource.hostPool.id
}
}
}
Azure 验证模块
以下 Azure 验证模块 可用于部署此资源类型。
| 模块 | 描述 |
|---|---|
| Azure 虚拟桌面(AVD)应用程序组 | Azure 虚拟桌面(AVD)应用程序组的 AVM 资源模块 |
资源格式
若要创建 Microsoft.DesktopVirtualization/applicationGroups 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DesktopVirtualization/applicationGroups@2026-04-01-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
kind = "string"
managedBy = "string"
plan = {
name = "string"
product = "string"
promotionCode = "string"
publisher = "string"
version = "string"
}
properties = {
applicationGroupType = "string"
description = "string"
friendlyName = "string"
hostPoolArmPath = "string"
oboTenantId = "string"
showInFeed = bool
}
sku = {
capacity = int
family = "string"
name = "string"
size = "string"
tier = "string"
}
}
}
属性值
微软桌面虚拟化/应用程序组
| 名字 | 描述 | 价值 |
|---|---|---|
| 标识 | 分配给此资源的托管服务标识。 | ManagedServiceIdentity |
| 类 | 门户/工具等用于为相同类型的资源呈现不同的 UX 体验的元数据;例如,ApiApps 是一种 Microsoft.Web/sites 类型。 如果受支持,资源提供程序必须验证并保留此值。 | 字符串 约束: 图案 = ^[-\w\._,\(\)]+$ |
| 位置 | 资源所在的地理位置 | string (必需) |
| managedBy | 管理此资源的资源的完全限定资源 ID。 指示此资源是否由另一个 Azure 资源管理。 如果存在,则完全模式部署不会删除资源(如果从模板中删除,因为它由另一个资源管理)。 | 字符串 |
| 名字 | 资源名称 | 字符串 约束: 最小长度 = 3 最大长度 = 64 模式 = ^[A-Za-z0-9@.\-_ ]*$ (必需) |
| 计划 | 资源计划的详细信息。 | 计划 |
| 性能 | ApplicationGroup 的详细属性 | ApplicationGroupProperties(必需) |
| SKU | 分配给此资源的 SKU(库存单位)。 | SKU |
| 标签 | 资源标记 | 标记名称和值的字典。 |
| 类型 | 资源类型 | “Microsoft。DesktopVirtualization/applicationGroups@2026-04-01-preview” |
ApplicationGroup属性
| 名字 | 描述 | 价值 |
|---|---|---|
| applicationGroupType | ApplicationGroup 的资源类型。 | “Desktop” “RemoteApp”(必需) |
| 描述 | ApplicationGroup 的说明。 | 字符串 |
| 友好名称 | ApplicationGroup 的友好名称。 | 字符串 |
| hostPoolArmPath | ApplicationGroup 的 HostPool arm 路径。 | string (必需) |
| oboTenantId | 代表请求资源的租户。 | 字符串 |
| showInFeed 显示 | 表示 applicationGroup 是否显示在源中的布尔值。 | 布尔 |
ManagedServiceIdentity
| 名字 | 描述 | 价值 |
|---|---|---|
| 类型 | 托管服务标识的类型(其中允许 SystemAssigned 和 UserAssigned 类型)。 | “None” “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned”(必需) |
| 用户分配的标识 | 与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| 名字 | 描述 | 价值 |
|---|
计划
| 名字 | 描述 | 价值 |
|---|---|---|
| 名字 | 正在采购的第三方项目的用户定义的名称。 | string (必需) |
| 产品 | 正在采购的第三方项目。 例如 NewRelic。 产品映射到在数据市场载入时为项目指定的 OfferID。 | string (必需) |
| 促销代码 | 发布者为上述产品/项目提供数据市场中预配的促销代码。 | 字符串 |
| 发布服务器 | 正在购买的第三方项目的发布者。 例如 NewRelic | string (必需) |
| 版本 | 所需产品/项目的版本。 | 字符串 |
SKU
| 名字 | 描述 | 价值 |
|---|---|---|
| 产能 | 如果 SKU 支持横向扩展/缩减,则应包含容量整数。 如果资源无法横向扩展/缩小,则可能会省略此范围。 | 整数 (int) |
| 家庭 | 如果服务具有不同代的硬件(对于同一 SKU,则可以在此处捕获)。 | 字符串 |
| 名字 | SKU 的名称。 例如 P3。 它通常是字母+数字代码 | string (必需) |
| 大小 | SKU 大小。 当名称字段是层和其他一些值的组合时,这将是独立的代码。 | 字符串 |
| 分层 | 如果服务具有多个层,但在 PUT 上不需要,则需要资源提供程序实现此字段。 | “Basic” “Free” “Premium” “Standard” |
TrackedResourceTags
| 名字 | 描述 | 价值 |
|---|
UserAssignedIdentity
| 名字 | 描述 | 价值 |
|---|