Command line of Azure Virtual Desktop application has length limits?

Mateusz Łoskot 20 Reputation points
2024-02-27T19:08:43.7133333+00:00

Hi,

I've been experimenting with Azure Virtual Desktop, with RemoteApp application group and application with required command line. I noticed, that if total length of command line arguments exceeds 256 characters, then my application is not even reached to be executed. I attached screenshot which shows which property of AVD application wizard I mean:
User's image

Here is the only related documentation I've found about details of AVD applications:

and none of these mention any length limit, or any other limits, of the command line arguments.

Is this length limit by design and 'just' not documented or is it an unexpected bug?

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,382 questions
0 comments No comments
{count} votes

Accepted answer
  1. vipullag-MSFT 24,636 Reputation points
    2024-02-29T01:10:59.4433333+00:00

    Hello Mateusz Łoskot

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Adding to previous response from Dillion, I checked with internal team and can confirm that this limitation is by design to ensure the compatibility in Windows.

    Ref: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry

    Hope this helps.


1 additional answer

Sort by: Most helpful
  1. Dillon Silzer 54,746 Reputation points
    2024-02-28T01:20:54.45+00:00

    Hi Mateusz,

    In accordance to documentation, I would suggest you bring this up with AVD Tech Community:

    https://techcommunity.microsoft.com/t5/azure-virtual-desktop/bd-p/AzureVirtualDesktopForum

    It does seem like it is an undocumented limitation, but it is interested that you would require anything that long with switches.

    Documentation on reporting issues, giving feedback, or getting support can be found at:

    Troubleshooting overview, feedback, and support for Azure Virtual Desktop

    https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/virtual-desktop/troubleshoot-set-up-overview.md

    If this is helpful please accept answer.