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
2 x Microsoft MVP, Sessionize Active Speaker 2023, Cloud Services Lead, Blogger ✍️, Public Speaker 🔊, Jogger 🏃♂️, Hiking 🥾, Traveler, Citizen of the 🌎
Zürich, Switzerland
Links
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