Seeing VMExtensionProvisioningError (Internal Server Error)

Ketaki Satish Barde 0 Reputation points Microsoft Employee
2024-07-15T19:33:50.44+00:00

Hi everyone,
We have been using cirrus to launch different test scenarios and these are failing VM Deployments. I see the below signature

Exception Details:\t(VMExtensionProvisioningError) VM has reported a failure when processing extension \'CSExtension\' (publisher \'Microsoft.Compute\' and type \'CustomScriptExtension\'). Error message: \'Command execution finished, but failed because it returned a non-zero exit code of: \'1\'. The command had an error output of: \'Invoke-RestMethod : Internal server error\n\t\tAt 
The command had an error output of: \'Invoke-RestMethod : Internal server error\n\t\tAt 

To me, it seems like an Infra ARM issue. I m unsure how to mitigate/avoid this. These are cirrus runs so the VM is not live to investigate by logging in. Unless there is a query/table which someone can suggest to see whats going on.
Has someone seen this before?

Thanks in advance.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,001 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 37,416 Reputation points Microsoft Employee
    2024-07-16T20:24:36.0533333+00:00

    @Ketaki Satish Barde It appears that the Custom Extension is failing to run due to an Internal server error. It is likely that whatever commands that are being executed are failing. My recommendation is to investigate the Custom Extension and verify you are able to execute the commands outside of VM launch.

    https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-windows#troubleshoot-and-support

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.