Azure Desktop Virtualization Application

This page shows how to write Terraform and Azure Resource Manager for Desktop Virtualization Application and write them securely.

azurerm_virtual_desktop_application (Terraform)

The Application in Desktop Virtualization can be configured in Terraform with the resource name azurerm_virtual_desktop_application. The following sections describe 2 examples of how to use the resource and its parameters.

Example Usage from GitHub

virtual_desktop_application.tf#L1
resource "azurerm_virtual_desktop_application" "da" {
  name                         = var.settings.name
  application_group_id         = var.application_group_id
  friendly_name                = try(var.settings.friendly_name, null)
  description                  = try(var.settings.description, null)
  path                         = var.settings.path
virtual_desktop_application.tf#L1
resource "azurerm_virtual_desktop_application" "da" {
  name                         = var.settings.name
  application_group_id         = var.application_group_id
  friendly_name                = try(var.settings.friendly_name, null)
  description                  = try(var.settings.description, null)
  path                         = var.settings.path

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

The following arguments are supported:

  • name - (Required) The name of the Virtual Desktop Application. Changing the name forces a new resource to be created.

  • application_group_id - (Required) Resource ID for a Virtual Desktop Application Group to associate with the Virtual Desktop Application. Changing the ID forces a new resource to be created.

  • friendly_name - (Optional) Option to set a friendly name for the Virtual Desktop Application.

  • description - (Optional) Option to set a description for the Virtual Desktop Application.

  • path - (Required) The file path location of the app on the Virtual Desktop OS.

  • command_line_argument_policy - (Required) Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. Possible values include: DoNotAllow, Allow, Require.

  • command_line_arguments - (Optional) Command Line Arguments for Virtual Desktop Application.

  • show_in_portal - (Optional) Specifies whether to show the RemoteApp program in the RD Web Access server.

  • icon_path - (Optional) Specifies the path for an icon which will be used for this Virtual Desktop Application.

  • icon_index - (Optional) The index of the icon you wish to use.

The following attributes are exported:

  • id - The ID of the Virtual Desktop Application.

Explanation in Terraform Registry

Manages a Virtual Desktop Application.

Microsoft.DesktopVirtualization/applicationGroups/applications (Azure Resource Manager)

The applicationGroups/applications in Microsoft.DesktopVirtualization can be configured in Azure Resource Manager with the resource name Microsoft.DesktopVirtualization/applicationGroups/applications. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

  • apiVersion required - string
  • name required - string

    The name of the application within the specified application group

  • properties required
      • applicationType optional - string

        Resource Type of Application.

      • commandLineArguments optional - string

        Command Line Arguments for Application.

      • commandLineSetting required - string

        Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all.

      • description optional - string

        Description of Application.

      • filePath optional - string

        Specifies a path for the executable file for the application.

      • friendlyName optional - string

        Friendly name of Application.

      • iconIndex optional - integer

        Index of the icon.

      • iconPath optional - string

        Path to icon.

      • msixPackageApplicationId optional - string

        Specifies the package application Id for MSIX applications

      • msixPackageFamilyName optional - string

        Specifies the package family name for MSIX applications

      • showInPortal optional - boolean

        Specifies whether to show the RemoteApp program in the RD Web Access server.

  • type required - string

Frequently asked questions

What is Azure Desktop Virtualization Application?

Azure Desktop Virtualization Application 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 Application?

For Terraform, the aztfmod/terraform-azurerm-caf and pkhuntia/aztfmod source code examples are useful. See the Terraform Example section for further details.