Microsoft。DesktopVirtualization applicationGroups 2026-03-01-preview

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 驗證模組 可用來部署此資源類型。

模組 Description
Azure 虛擬桌面 (AVD) 應用程式群組 適用於 Azure 虛擬桌面的 AVM 資源模組 (AVD) 應用程式群組

Azure 快速入門範例

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

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

資源格式

若要建立 Microsoft.DesktopVirtualization/applicationGroups 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.DesktopVirtualization/applicationGroups@2026-03-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.DesktopVirtualization/applicationGroups

Name Description Value
身分識別 指派給此資源的受控服務識別。 ManagedServiceIdentity
kind 入口網站/工具/等用來轉譯相同類型資源不同 UX 體驗的中繼資料;例如,ApiApps 是一種 Microsoft.Web/sites 類型。 如果支援,資源提供者必須驗證並保存此值。 string

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

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

ApplicationGroupProperties

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

ManagedServiceIdentity

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

ManagedServiceIdentityUserAssignedIdentities

Name Description Value

Plan

Name Description Value
name 正在採購的第三方成品的用戶定義名稱。 字串 (必要)
product 正在採購的第三方成品。 例如 NewRelic。 產品會對應至數據市場上線時為成品指定的 OfferID。 字串 (必要)
促銷代碼 publisher 提供了該產品/產物在 Data Market 中提供的促銷代碼。 字串
發行者 第三方文物的publisher。 例如 NewRelic 字串 (必要)
版本 所需產品/成品的版本。 字串

Sku

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

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

ARM 樣本資源定義

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

使用範例

Azure 快速入門範本

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

範本 Description
使用 Microsoft Entra ID Join 建立 AVD

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

資源格式

若要建立 Microsoft.DesktopVirtualization/applicationGroups 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.DesktopVirtualization/applicationGroups",
  "apiVersion": "2026-03-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.DesktopVirtualization/applicationGroups

Name Description Value
apiVersion API 版本 『2026-03-01-預覽』
身分識別 指派給此資源的受控服務識別。 ManagedServiceIdentity
kind 入口網站/工具/等用來轉譯相同類型資源不同 UX 體驗的中繼資料;例如,ApiApps 是一種 Microsoft.Web/sites 類型。 如果支援,資源提供者必須驗證並保存此值。 string

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

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

ApplicationGroupProperties

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

ManagedServiceIdentity

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

ManagedServiceIdentityUserAssignedIdentities

Name Description Value

Plan

Name Description Value
name 正在採購的第三方成品的用戶定義名稱。 字串 (必要)
product 正在採購的第三方成品。 例如 NewRelic。 產品會對應至數據市場上線時為成品指定的 OfferID。 字串 (必要)
促銷代碼 publisher 提供了該產品/產物在 Data Market 中提供的促銷代碼。 字串
發行者 第三方文物的publisher。 例如 NewRelic 字串 (必要)
版本 所需產品/成品的版本。 字串

Sku

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

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value

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 驗證模組 可用來部署此資源類型。

模組 Description
Azure 虛擬桌面 (AVD) 應用程式群組 適用於 Azure 虛擬桌面的 AVM 資源模組 (AVD) 應用程式群組

資源格式

若要建立 Microsoft.DesktopVirtualization/applicationGroups 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DesktopVirtualization/applicationGroups@2026-03-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.DesktopVirtualization/applicationGroups

Name Description Value
身分識別 指派給此資源的受控服務識別。 ManagedServiceIdentity
kind 入口網站/工具/等用來轉譯相同類型資源不同 UX 體驗的中繼資料;例如,ApiApps 是一種 Microsoft.Web/sites 類型。 如果支援,資源提供者必須驗證並保存此值。 string

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

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

ApplicationGroupProperties

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

ManagedServiceIdentity

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

ManagedServiceIdentityUserAssignedIdentities

Name Description Value

Plan

Name Description Value
name 正在採購的第三方成品的用戶定義名稱。 字串 (必要)
product 正在採購的第三方成品。 例如 NewRelic。 產品會對應至數據市場上線時為成品指定的 OfferID。 字串 (必要)
促銷代碼 publisher 提供了該產品/產物在 Data Market 中提供的促銷代碼。 字串
發行者 第三方文物的publisher。 例如 NewRelic 字串 (必要)
版本 所需產品/成品的版本。 字串

Sku

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

TrackedResourceTags

Name Description Value

UserAssignedIdentity

Name Description Value