Hi team,
Running custom script extension on Oracle Linux (8.5) spits out this error in the portal. The VM was some time ago, and trying to install agents on it.
What could be the possible fix?
[{"code":"VMExtensionHandlerNonTransientError","message":"The handler for VM extension type 'Microsoft.Azure.Extensions.CustomScript' has reported terminal failure for VM extension 'cse-install-agents' with error message: '[ExtensionOperationError] Non-zero exit code: 126, /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.7/bin/custom-script-shim install\n[stdout]\n\n\n[stderr]\n/bin/sh: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.7/bin/custom-script-shim: Permission denied\n'.\r\n \r\n'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot'"}]}
Hi team, Running custom script extension on Oracle Linux (8.5) spits out this error in the portal. The VM was some time ago, and trying to install agents on it. What could be the possible fix? [{"code":"VMExtensionHandlerNonTransientError","message":"The handler for VM extension type 'Microsoft.Azure.Extensions.CustomScript' has reported terminal failure for VM extension 'cse-install-agents' with error message: '[ExtensionOperationError] Non-zero exit code: 126, /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.7/bin/custom-script-shim install\n[stdout]\n\n\n[stderr]\n/bin/sh: /var/lib/waagent/Microsoft.Azure.Extensions.CustomScript-2.1.7/bin/custom-script-shim: Permission denied\n'.\r\n \r\n'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot'"}]}