Forum Discussion
SvenAelterman
Microsoft
May 19, 2022Customize 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." ...
GregorySuvalian
Aug 07, 2024Iron Contributor
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"
}
}
)
}