Az run vm command failed in automation pipeline

Vedanth Pulipati 241 Reputation points
2022-05-30T15:56:38.86+00:00

I am using the below Az run command to install SentinelOne Antivirus software in an automation pipeline
the command is working fine manually but when i tried to run using az run it's throwing me an error

Command used:

az vm run-command invoke --command-id RunPowerShellScript -g "${{ env.RESOURCEGROUPNAME }}" -n "${{ env.VM_NAME }}" --scripts 'C:\Temp\SentinelInstaller_Windows.exe -SITE_TOKEN='gfhiasfbaisfasb' /quiet /NORESTART'

Tried by giving the script command in the double code as well but failed

Error:

206822-image.png

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,564 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,441 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,603 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 26,421 Reputation points
    2022-05-30T16:24:27.51+00:00

    @Vedanth Pulipati

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Azure DevOps related queries/issues are currently not supported on this Microsoft Q&A platform. Please check this supported products list here (more to be added later on).

    I would request you to please post your queries in dedicated forums as in below links:
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/t/get-unique-id-from-devops-organization/756710
    https://stackoverflow.com/questions/tagged/azure-devops

    Hope that helps.
    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

    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.