Kamal Rathnayake
Kamal Rathnayake

Reputation: 580

Visual Studio online insufficient privileges when creating a release definition

I'm trying to create a release definition in Visual Studio Online with the task "Deploy Azure App Service".

When I try to authorize for the subscriptions it gives this error message below.

Error(s):
Insufficient privileges to complete the operation. For troubleshooting refer to <a href="https://go.microsoft.com/fwlink/?linkid=835898" target="_blank">link</a>.

Insufficient privileges to complete the operation message

The content of the link they provide doesn't seem to help me.

I already tried this using Azure Service Administrator account.

Why is this happening? What are the kind of permissions i need for doing this?

Upvotes: 0

Views: 761

Answers (1)

starian chen-MSFT
starian chen-MSFT

Reputation: 33708

The user must be a member of Global Admin role in the directory.

On the other hand, you may configure it manually with this PowerShell script.

More information, you can refer to Automating Azure Resource Group deployment using a Service Principal in Visual Studio Online: Build/Release Management (Manual configuration section)

Download & run this PowerShell script in an Azure Powershell window to generate required data for Service Principal based Azure service connection. Running this script would prompt you for:

The name of your Azure Subscription name

A password that you would like to set for the Service Principal that is going to be created Note: the script has been tested with Azure PowerShell version 1.0.2.

Once successful, the script would output the following details for the Azure Service Endpoint.

Connection Name

Subscription Id

Subscription Name

Service Principal Client Id

Service Principal key

Tenant Id

Upvotes: 1

Related Questions