Hello, @Chaitrali Deshmukh !
It looks like you are using a managed run command via REST API but please correct me if I'm wrong.
How do I troubleshoot Managed Run Commands using the REST API on my virtual machine?
Managed Run Command is in public preview so there are still updates required for the final release. It is not currently recommended for production workloads and some features may not be supported or may have constrained capabilities. Having said that, look through these troubleshooting steps:
- Check your PUT request: Your PUT request should be in the following format and includes
subscriptionId
,resourceGroupName
,vmName
, andrunCommandName
. Make sure these values are all correct:PUT /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Compute/virtualMachines/<vmName>/runcommands/<runCommandName>?api-version=2019-12-01
- Only one type of source input is allowed: You can choose one of the following for your command: inline script, script URI, or built-in script command ID.
- Output errors to Storage blobs: Use
"errorBlobUri": "<URI>"
to output your errors to Storage blobs for troubleshooting. - Managed Run Command is in preview: Managed Run Command is in public preview so there are still updates required for the final release. Some features may not be supported or may have constrained capabilities.
We would need more info to say exactly what is going on but I would doublecheck your PUT request to make sure everything is in order (especially with the old VM under that path) and I would see what kind of errors get output to the Storage blob. If neither of those result in anything, let us know so we can look into issues related to this being in public preview.