May 18 2022 07:53 PM
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.
Jun 26 2023 11:14 AM
Jul 05 2023 08:38 AM
Jul 09 2023 05:06 PM
@iamharsh05 @teerlincks No, I haven't been able to do it.
Aug 07 2024 02:22 PM
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"
}
}
)
}