1
votes

I would like to run a PowerShell script during deployment using a PowerShell Script Task in VSTS release. I need to do some operation with Azure Active Directory, but right now I have no access to it, although running locally works fine.

For example running Get-AzureRmADApplication gives "Insufficient privileges to complete the operation".

Any solutions or suggestions to this issue?

P. S. Actually I was using Azure PowerShell task.

2
I submit a feedback (updated in my answer).starian chen-MSFT

2 Answers

0
votes

When running commands against Azure Active Directory you will have to give the application it is running under Read Directory rights in Azure Active Directory.