Azure Desktop Virtualization Workspace Application Group Association
This page shows how to write Terraform and Azure Resource Manager for Desktop Virtualization Workspace Application Group Association and write them securely.
azurerm_virtual_desktop_workspace_application_group_association (Terraform)
The Workspace Application Group Association in Desktop Virtualization can be configured in Terraform with the resource name azurerm_virtual_desktop_workspace_application_group_association
. The following sections describe 10 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = azurerm_virtual_desktop_workspace.workspace.id
application_group_id = azurerm_virtual_desktop_application_group.pooledremoteapp.id
}
# Associate Desktop Application Group with Workspace
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = azurerm_virtual_desktop_workspace.avdws1.id
application_group_id = azurerm_virtual_desktop_application_group.avdplrag1.id
}
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = azurerm_virtual_desktop_workspace.workspace.id
application_group_id = azurerm_virtual_desktop_application_group.pooledremoteapp.id
}
# Associate Desktop Application Group with Workspace
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = azurerm_virtual_desktop_workspace.workspace.id
application_group_id = azurerm_virtual_desktop_application_group.pooledremoteapp.id
}
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = azurerm_virtual_desktop_workspace.workspace.id
application_group_id = azurerm_virtual_desktop_application_group.pooledremoteapp.id
}
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = azurerm_virtual_desktop_workspace.workspace.id
application_group_id = azurerm_virtual_desktop_application_group.wvdpool01AppG.id
}
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspacedesktopapp" {
workspace_id = azurerm_virtual_desktop_workspace.workspace.id
application_group_id = azurerm_virtual_desktop_application_group.desktopapp.id
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = var.workspace_id
application_group_id = azurerm_virtual_desktop_application_group.dag.id
}
resource "azurerm_virtual_desktop_workspace_application_group_association" "workspaceremoteapp" {
workspace_id = var.workspace_id
application_group_id = azurerm_virtual_desktop_application_group.dag.id
}
resource "azurerm_virtual_desktop_workspace_application_group_association" "wvd" {
workspace_id = var.wvd.workspace_id
application_group_id = azurerm_virtual_desktop_application_group.wvd.id
}
Parameters
-
application_group_id
required - string -
id
optional computed - string -
workspace_id
required - string -
timeouts
single block
Explanation in Terraform Registry
Manages a Virtual Desktop Workspace Application Group Association.
Microsoft.DesktopVirtualization/workspaces (Azure Resource Manager)
The workspaces in Microsoft.DesktopVirtualization can be configured in Azure Resource Manager with the resource name Microsoft.DesktopVirtualization/workspaces
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
"type": "Microsoft.DesktopVirtualization/workspaces",
"location": "[parameters('location')]",
"tags": "[parameters('tags')]",
"properties": {
"friendlyName": "[parameters('workspaceName')]",
"description": "[parameters('workspaceDescription')]",
"type": "Microsoft.DesktopVirtualization/workspaces",
"location": "[parameters('location')]",
"tags": "[parameters('tags')]",
"properties": {
"friendlyName": "[parameters('workspaceName')]",
"description": "[parameters('workspaceDescription')]",
Parameters
apiVersion
required - stringidentity
optionaltype
optional - stringThe identity type.
kind
optional - stringMetadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
location
optional - stringThe geo-location where the resource lives
managedBy
optional - stringThe fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
name
required - stringThe name of the workspace
plan
optionalname
required - stringA user defined name of the 3rd Party Artifact that is being procured.
product
required - stringThe 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding.
promotionCode
optional - stringA publisher provided promotion code as provisioned in Data Market for the said product/artifact.
publisher
required - stringThe publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
version
optional - stringThe version of the desired product/artifact.
properties
requiredapplicationGroupReferences
optional - arrayList of applicationGroup resource Ids.
description
optional - stringDescription of Workspace.
friendlyName
optional - stringFriendly name of Workspace.
sku
optionalcapacity
optional - integerIf the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted.
family
optional - stringIf the service has different generations of hardware, for the same SKU, then that can be captured here.
name
required - stringThe name of the SKU. Ex - P3. It is typically a letter+number code
size
optional - stringThe SKU size. When the name field is the combination of tier and some other value, this would be the standalone code.
tier
optional - stringThis field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT.
tags
optional - stringResource tags.
type
required - string
Frequently asked questions
What is Azure Desktop Virtualization Workspace Application Group Association?
Azure Desktop Virtualization Workspace Application Group Association is a resource for Desktop Virtualization of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Desktop Virtualization Workspace Application Group Association?
For Terraform, the diogofrj/Hashicorp, rslwxyz/avd-tf-small and deanl1982/Pub-Terraform source code examples are useful. See the Terraform Example section for further details.
For Azure Resource Manager, the mariuszdotnet/azure-image-builder-wvd and tylerd/azure-wvd-template-spec source code examples are useful. See the Azure Resource Manager Example section for further details.