Session

OPS-IN-DEVOPS: Create Service Connection Using DevOps CLI

In this Session, I will demonstrate How to Create Service Connection Using DevOps CLI.

USE CASES:-
- Create DevOps Service Connection, Prompting PAT (Personal Access Token)
- Create DevOps Service Connection, Without Prompting PAT (Personal Access Token)

AUTOMATION OBJECTIVE:-
- Create Service Principal.
- Query the Application ID of the Service Principal.
- Store the Service Principal Application ID and Secret in Key Vault.
- Assign the Service Principal, "Contributor" RBAC (Role Based Access Control) on Subscription Level.
- Set Service Principal Secret as an Environmental Variable for creating Azure DevOps Service Connection.
- Set PAT (Personal Access Token) as an environment variable for DevOps Login.
- Create Azure DevOps Service Connection.
- Grant Access to all Pipelines to the Newly Created Azure DevOps Service Connection.
- Verify Service Connection.

For more details, please refer my blog:-
- https://dev.to/arindam0310018/create-service-connection-using-devops-cli-2k59

Arindam Mitra

Microsoft MVP in Developer Technologies | Azure Cloud Solutions & DevOps Architect | Technical Blogger | Speaker | Traveler | Citizen of the World

Zürich, Switzerland

Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.

Jump to top