Microsoft.DesktopVirtualization 應用程式組

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 虛擬桌面的 AVM 資源模組 (AVD) 應用程式群組

Azure 快速入門範例

下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 描述
使用 Microsoft Entra ID Join 建立 AVD 此範本可讓您建立 Azure 虛擬桌面資源,例如主機集區、應用程式群組、工作區、測試會話主機及其擴充功能,並加入Microsoft Entra ID join

資源格式

若要建立 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'
  }
}

屬性值

Microsoft.桌面虛擬化/應用程式群組

名字 描述 價值
身分識別 指派給此資源的受控服務識別。 ManagedServiceIdentity
類 入口網站/工具等用來轉譯相同類型資源的不同UX體驗的元數據;例如,ApiApps 是一種Microsoft.Web/sites 類型。 如果支援,資源提供者必須驗證並保存此值。 字串

約束:
圖案 = ^[-\w\._,\(\)]+$
位置 資源所在的地理位置 字串 (必要)
managedBy 管理此資源之資源的完整資源標識碼。 指出此資源是否由另一個 Azure 資源管理。 如果存在,如果從範本中移除,則完整模式部署將不會刪除資源,因為該資源是由另一個資源管理。 字串
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 64
模式 = ^[A-Za-z0-9@.\-_ ]*$ (必要)
方案 資源計劃的詳細數據。 方案
性能 ApplicationGroup 的詳細屬性 ApplicationGroupProperties (必要)
SKU 指派給此資源的 SKU(庫存單位)。 SKU
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ApplicationGroup屬性

名字 描述 價值
applicationGroupType ApplicationGroup 的資源類型。 '桌面'
'RemoteApp' (必要)
描述 ApplicationGroup 的描述。 字串
友善名稱 ApplicationGroup 的易記名稱。 字串
hostPoolArmPath ApplicationGroup 的 HostPool arm 路徑。 字串 (必要)
oboTenantId 代表要求資源的租用戶。 字串
showInFeed 顯示 布爾值,表示 applicationGroup 是否顯示在摘要中。 布爾 (bool)

ManagedServiceIdentity

名字 描述 價值
型別 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名字 描述 價值

計劃

名字 描述 價值
名字 正在採購的第三方成品的用戶定義名稱。 字串 (必要)
產品 正在採購的第三方成品。 例如 NewRelic。 產品會對應至數據市場上線時為成品指定的 OfferID。 字串 (必要)
促銷代碼 發行者提供在數據市場為上述產品/成品布建的促銷碼。 字串
發行者 要購買的第三方成品發行者。 例如 NewRelic 字串 (必要)
版本 所需產品/成品的版本。 字串

SKU

名字 描述 價值
容量 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 整數 (int)
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱。 例如 P3。 通常是字母+數位碼 字串 (必要)
大小 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
分層 如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 “基本”
“免費”
“高級”
“標準”

TrackedResourceTags

名字 描述 價值

UserAssignedIdentity

名字 描述 價值

ARM 樣本資源定義

applicationGroups 資源類型可以使用目標作業來部署:

使用範例

Azure 快速入門範本

下列 Azure 快速入門範本 部署此資源類型。

範本 描述
使用 Microsoft Entra ID Join 建立 AVD

部署至 Azure
此範本可讓您建立 Azure 虛擬桌面資源,例如主機集區、應用程式群組、工作區、測試會話主機及其擴充功能,並加入Microsoft Entra ID join

資源格式

若要建立 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"
  }
}

屬性值

Microsoft.桌面虛擬化/應用程式群組

名字 描述 價值
apiVersion API 版本 『2026-04-01-預覽』
身分識別 指派給此資源的受控服務識別。 ManagedServiceIdentity
類 入口網站/工具等用來轉譯相同類型資源的不同UX體驗的元數據;例如,ApiApps 是一種Microsoft.Web/sites 類型。 如果支援,資源提供者必須驗證並保存此值。 字串

約束:
圖案 = ^[-\w\._,\(\)]+$
位置 資源所在的地理位置 字串 (必要)
managedBy 管理此資源之資源的完整資源標識碼。 指出此資源是否由另一個 Azure 資源管理。 如果存在,如果從範本中移除,則完整模式部署將不會刪除資源,因為該資源是由另一個資源管理。 字串
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 64
模式 = ^[A-Za-z0-9@.\-_ ]*$ (必要)
方案 資源計劃的詳細數據。 方案
性能 ApplicationGroup 的詳細屬性 ApplicationGroupProperties (必要)
SKU 指派給此資源的 SKU(庫存單位)。 SKU
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 “Microsoft.DesktopVirtualization/applicationGroups”

ApplicationGroup屬性

名字 描述 價值
applicationGroupType ApplicationGroup 的資源類型。 '桌面'
'RemoteApp' (必要)
描述 ApplicationGroup 的描述。 字串
友善名稱 ApplicationGroup 的易記名稱。 字串
hostPoolArmPath ApplicationGroup 的 HostPool arm 路徑。 字串 (必要)
oboTenantId 代表要求資源的租用戶。 字串
showInFeed 顯示 布爾值,表示 applicationGroup 是否顯示在摘要中。 布爾 (bool)

ManagedServiceIdentity

名字 描述 價值
型別 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名字 描述 價值

計劃

名字 描述 價值
名字 正在採購的第三方成品的用戶定義名稱。 字串 (必要)
產品 正在採購的第三方成品。 例如 NewRelic。 產品會對應至數據市場上線時為成品指定的 OfferID。 字串 (必要)
促銷代碼 發行者提供在數據市場為上述產品/成品布建的促銷碼。 字串
發行者 要購買的第三方成品發行者。 例如 NewRelic 字串 (必要)
版本 所需產品/成品的版本。 字串

SKU

名字 描述 價值
容量 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 整數 (int)
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱。 例如 P3。 通常是字母+數位碼 字串 (必要)
大小 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
分層 如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 “基本”
“免費”
“高級”
“標準”

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 虛擬桌面的 AVM 資源模組 (AVD) 應用程式群組

資源格式

若要建立 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"
    }
  }
}

屬性值

Microsoft.桌面虛擬化/應用程式群組

名字 描述 價值
身分識別 指派給此資源的受控服務識別。 ManagedServiceIdentity
類 入口網站/工具等用來轉譯相同類型資源的不同UX體驗的元數據;例如,ApiApps 是一種Microsoft.Web/sites 類型。 如果支援,資源提供者必須驗證並保存此值。 字串

約束:
圖案 = ^[-\w\._,\(\)]+$
位置 資源所在的地理位置 字串 (必要)
managedBy 管理此資源之資源的完整資源標識碼。 指出此資源是否由另一個 Azure 資源管理。 如果存在,如果從範本中移除,則完整模式部署將不會刪除資源,因為該資源是由另一個資源管理。 字串
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 64
模式 = ^[A-Za-z0-9@.\-_ ]*$ (必要)
方案 資源計劃的詳細數據。 方案
性能 ApplicationGroup 的詳細屬性 ApplicationGroupProperties (必要)
SKU 指派給此資源的 SKU(庫存單位)。 SKU
標籤 資源標籤 標記名稱和值的字典。
型別 資源類型 「Microsoft。DesktopVirtualization/applicationGroups@2026-04-01-preview”

ApplicationGroup屬性

名字 描述 價值
applicationGroupType ApplicationGroup 的資源類型。 '桌面'
'RemoteApp' (必要)
描述 ApplicationGroup 的描述。 字串
友善名稱 ApplicationGroup 的易記名稱。 字串
hostPoolArmPath ApplicationGroup 的 HostPool arm 路徑。 字串 (必要)
oboTenantId 代表要求資源的租用戶。 字串
showInFeed 顯示 布爾值,表示 applicationGroup 是否顯示在摘要中。 布爾 (bool)

ManagedServiceIdentity

名字 描述 價值
型別 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 “無”
“系統分配”
'SystemAssigned,UserAssigned'
'UserAssigned' (必要)
使用者指派的身份 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 ManagedServiceIdentityUserAssignedIdentities

ManagedServiceIdentityUserAssignedIdentities

名字 描述 價值

計劃

名字 描述 價值
名字 正在採購的第三方成品的用戶定義名稱。 字串 (必要)
產品 正在採購的第三方成品。 例如 NewRelic。 產品會對應至數據市場上線時為成品指定的 OfferID。 字串 (必要)
促銷代碼 發行者提供在數據市場為上述產品/成品布建的促銷碼。 字串
發行者 要購買的第三方成品發行者。 例如 NewRelic 字串 (必要)
版本 所需產品/成品的版本。 字串

SKU

名字 描述 價值
容量 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 整數 (int)
家庭 如果服務有不同世代的硬體,針對相同的 SKU,則可以在這裡擷取。 字串
名字 SKU 的名稱。 例如 P3。 通常是字母+數位碼 字串 (必要)
大小 SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 字串
分層 如果服務有一個以上的層級,但 PUT 上不需要此欄位,則資源提供者必須實作此字段。 “基本”
“免費”
“高級”
“標準”

TrackedResourceTags

名字 描述 價值

UserAssignedIdentity

名字 描述 價值