Access Denied problems in Azure DevOps pipeline

Muruga Anand 26 Reputation points

We have created an Azure Virtual machine scale set agent pool and started the pipeline in the agent pool. We faced Access Denied problems in the jobs due to the tasks not running in the admin mode (CMD, PowerShell, and Final builder) on the VMSS instance. We need to run these tasks in admin mode in the Agent pool.

We couldn’t run an console application too with admin privileges in the VM.

Please provide any suggestions to resolve this issues.

VMSS Agent Pool:


Access Denied Issue:

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,522 questions
0 comments No comments
{count} vote

Accepted answer
  1. Vinodh247-1375 11,396 Reputation points


    Thanks for reaching out to Microsoft Q&A.

    Could not create file due to access denied error.

    Are you sure you have admin privileges? It's better to have a support ticket created if you have proper support plan or you can post it to the forum like 'dillonjs' has informed.

    Please Upvote and Accept as answer if the reply was helpful, this will be helpful to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Dillon Silzer 54,751 Reputation points

    Hi @Muruga Anand

    I recommend you post this on the Azure DevOps community forum at

    They have community expertise for DevOps on that forum.

    Azure DevOps Developer Community (another reference)


    If this is helpful please accept answer.

    1 person found this answer helpful.