Im trying to run the Powershell Script on Azure Windows VM using Azure DevOps release pipeline with Azure PowerShell task and Invoke-AzureRmVMRunCommand in powershell. Im using this example
Invoke-AzureRmVMRunCommand -ResourceGroupName 'rgname' -Name 'vmname' -CommandId 'RunPowerShellScript' -ScriptPath 'scriptpath' -Parameter @{"arg1" = "var1";"arg2" = "var2"}
and running this command in Azure devOps Release pipeline using Azure PowerShell Task.
Im getting the error that the path of the ScriptPath is not found. What path should we provide here.