Hello, @Patil, Aditi !
Why am I running into errors when installing custom artifacts in Azure DevTest Labs?
These are the troubleshooting steps for determining why artifacts are failing in DevTest Labs:
https://video2.skills-academy.com/en-us/azure/devtest-labs/devtest-lab-troubleshoot-apply-artifacts
From the Portal:
- Investigate the private artifact repository and lab storage account to make sure that the lab VM is getting access to the custom artifact.
- Make sure that the VM is running.
- Navigate to the Artifacts page for the lab VM to make sure the VM is ready for applying artifacts (you'll see a message at the top of the page if you can't or you can run this PowerShell command).
- Investigate the failed artifact by going to the lab Overview page > select the VM from My virtual machines > select the Failed artifact. Here you will get details about the artifact failure.
- Inspect the Activity logs by looking for entries for Create or Update Virtual Machine Extension or Create or Update Virtual Machine if the artifact was applied directly. Select the failed entry and then select JSON on the failure page.
From the lab VM:
- Inspect the Custom Script Extension log file by going to
*C:\Packages\Plugins\Microsoft.Compute.CustomScriptExtension\VERSIONNUMBER\Status\*
on the VM and inspect the STATUS file to view the error. - Check the VM Agent and ensure that the Azure Virtual Machine Agent (VM Agent) is installed and ready.
- Investigate script issues to see if the artifact installation failed because of the way the artifact installation script was authored.
If this doesn't resolve your issue, then let us know in the comments and we'll investigate further by taking a closer look at your resources.
I hope this has been helpful! Your feedback is important so please take a moment to accept answers.
If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!