Forum Discussion

mloskot's avatar
mloskot
Copper Contributor
Feb 28, 2024

Command line of Azure Virtual Desktop application has length limits?

Hi,

I originally posted this to Q&A in https://learn.microsoft.com/en-us/answers/questions/1600474/command-line-of-azure-virtual-desktop-application?sharingId=349A93639852BBCE, then received suggestion this space is a better place for my issue.

 

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:

 

 

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

  • https://learn.microsoft.com/en-us/rest/api/desktopvirtualization/applications/create-or-update

  • https://learn.microsoft.com/en-us/powershell/module/az.desktopvirtualization/new-azwvdapplication

  • https://learn.microsoft.com/en-us/azure/virtual-desktop/publish-applications-stream-remoteapp

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?

2 Replies

  • tommykneetz's avatar
    tommykneetz
    Iron Contributor
    did you try creating that app via powershell? maybe there are other limitations..
    • mloskot's avatar
      mloskot
      Copper Contributor

      tommykneetzNo, I have not tried PowerShell, but see answers this issue received at https://learn.microsoft.com/en-us/answers/questions/1600474/command-line-of-azure-virtual-desktop-application

Resources