Forum Discussion

SvenAelterman's avatar
SvenAelterman
Icon for Microsoft rankMicrosoft
May 19, 2022

Customize the friendly name of the desktop application ("SessionDesktop") using Bicep/ARM

Hi,

I am deploying AVD environments using Bicep/ARM templates.

I would like to customize the friendly name of the desktop in the Desktop Application Group. By default, it reads "SessionDesktop."

Setting the friendlyName property on the Application Group definition doesn't change that. And because it's a desktop application group, there doesn't seem to be a way to define the actual applicationGroups/applications resource.

Thanks,

Sven.

4 Replies

  • SvenAelterman 

     

    This is how you can do it in terraform (by calling directly REST API), the same thing can be accomplished by `deploymentScript` in bicep/ARM

     

    resource "azapi_resource_action" "change-desktopname" {
      type        = "Microsoft.DesktopVirtualization/applicationGroups/desktops@2022-10-14-preview"
      resource_id = "${azurerm_virtual_desktop_application_group.main.id}/desktops/SessionDesktop"
      method      = "PATCH"
      body = jsonencode({
        properties = {
          friendlyName = "DevOps Desktop"
        }
        }
      )
    }

     

  • iamharsh05's avatar
    iamharsh05
    Copper Contributor
    Hi Sven,

    Did you manage to resolve this via Bicep. If yes, Please help with the solution.
  • teerlincks's avatar
    teerlincks
    Copper Contributor
    Hi Sven

    Did you ever manage to change this display name of the SessionDesktop with Bicep?

    Kind regards,
    Stephan

Resources