Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there "Service Account User" concept in AzureDevOps

Tags:

azure-devops

I'm working on Automation using AzureDevOps and wondering if there is a simple way to have a service user account i.e. account which creds never expires and can access AzureDevOps only via API.

I want to re-use this user credentials in my automation scripts but don't want to have user which can login to though UI.

Is there "Service Account User" concept in AzureDevOps.

P.S.

I know that pipelines provides ability to use OAuth token but what if I want to run automation outside the pipelines.

like image 661
Disposer Avatar asked Oct 28 '19 16:10

Disposer


People also ask

What is the use of service account?

A service account is a special type of Google account intended to represent a non-human user that needs to authenticate and be authorized to access data in Google APIs. Typically, service accounts are used in scenarios such as: Running workloads on virtual machines (VMs).

How do I create a service connection in Azure DevOps?

In Azure DevOps, open the Service connections page from the project settings page. In TFS, open the Services page from the "settings" icon in the top menu bar. Choose + New service connection and select Azure Resource Manager. Choose Service Principal (manual) option and enter the Service Principal details.

Do service accounts have passwords?

Service accounts differ from normal user accounts in multiple ways: They don't have a password and can't be used for browser-based sign-in. They're created and managed as a resource that belongs to a Google Cloud project. In contrast, users are managed in a Cloud Identity or Google Workspace account.


1 Answers

There is no service account you need to create additional user and use PAT token to make automation out side pipelines. If you will use OAuth token to automation in pipeline then you are able to use Service Project Collection Build Service Accounts meaning build service account will be you service user and fot this you do not need PAT but then you need to run automation inside Pipelines. When creating PAT you can specified exact permission needed.

like image 95
Janusz Nowak Avatar answered Oct 01 '22 06:10

Janusz Nowak