VMAppExtension not running in Linux VMSS

Brano 15 Reputation points
2023-04-26T16:24:35.3966667+00:00

Recently, VM App Extensions are not starting on VM scale set with Linux OS (Ubuntu 22_04-lts-gen2). It's failing with:

The handler for VM extension type 'Microsoft.CPlat.Core.VMApplicationManagerLinux' has reported terminal failure for VM extension 'VMAppExtension' with error message: '[ExtensionOperationError] Non-zero exit code: 127, /var/lib/waagent/Microsoft.CPlat.Core.VMApplicationManagerLinux-1.0.12/bin/install.sh [stdout] [stderr] /usr/bin/env: ‘bash\r’: No such file or directory '. 'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/vmextensionlinuxtroubleshoot'

I tried to SSH to the VM and manually execute the script with the same error. When using dos2unix to convert line endings, script is not failing locally. Could there be some issue with the file format of the install.sh in the VMAppExtension?

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
352 questions
{count} votes

1 answer

Sort by: Most helpful
  1. DL-3648 10 Reputation points
    2023-05-08T19:42:33.6666667+00:00

    v1.0.13 has been released (in all US regions at least) with proper line endings for linux systems. Test deploys are running as expected.

    1 person found this answer helpful.
    0 comments No comments