The first setup to setting up Azure DevOps is to create an organisation
- Sign into Azure DevOps
- Select New Organisation
- Enter your preferred Azure DevOps organisation name & hosting location (In this lab, I will be using thomasthorntoncloud organisation)
- Once you have created your organisation, you can sign into your organisation anything using
https://dev.azure.com/{yourorganization
Once an organisation has been setup, next is to create an Azure DevOps project
Creating a project allows you to use repositories, pipelines etc.
- Sign into Azure DevOps
- Select organisation that you have created above
- Select New Project
- Enter new project name & description
A Service Principal (SPN) is considered a best practice for DevOps within your CI/CD pipeline. It is used as an identity to authenticate you within your Azure Subscription to allow you to deploy the relevant Terraform code.
- To begin creation, within your newly created Azure DevOps Project – select Project Settings
- Select Service Connections
- Select Create Service Connection -> Azure Resource Manager -> Service Principal (Automatic)
- Enter subscription/resource group to where service connection will be created. Create with relevant service connection name
- Once created you will see similar to below (You can select Manage Service Principal to review further)
- Within** Manage Service Principal** options, branding -> name to give a relevant name for service principal (it creates originally with a random string at end)
- All Service Principal role assignment to subscription, in this lab I will be giving the Service Principal contributor access to the subscription
You are now all set and ready to deploy to Azure using Azure Devops :)




