A complete Azure DevOps starter repository for provisioning Azure services, validating pull requests, building application artifacts, and deploying after pull request acceptance into main.
Can you create one YAML file that goes through the entire process of setting up all of the Azure services and does builds on PR acceptance. Comment every single Azure process with important setup details.
A heavily commented Azure DevOps pipeline was created. It is stored in this repository as:
azure-pipelines.yml
The pipeline covers:
- PR validation builds
- Post-merge builds after PR acceptance into
main - Azure Resource Group provisioning
- Log Analytics setup
- Application Insights setup
- Storage Account setup
- Key Vault setup
- Linux App Service Plan setup
- API Web App setup
- Web Frontend App setup
- Azure SQL Server setup
- Azure SQL Database setup
- SQL firewall setup
- Managed identity setup
- Key Vault RBAC assignments
- App settings and Key Vault references
- API deployment
- Optional frontend deployment
/healthsmoke testingREADME.mdazure-pipelines.ymlazure-complete-infographic.svg
can you create an infogram of what the azure file does and upload that as well
An SVG infographic was added to visually explain the pipeline flow.
Before the pipeline can run, configure these items in Azure DevOps:
- Create an Azure Resource Manager service connection.
- Prefer workload identity federation over stored client secrets.
- Give the service connection Contributor access to the subscription or target resource group.
- Create secret pipeline variables:
sqlAdminUsersqlAdminPassword
- Replace these placeholder values in
azure-pipelines.yml:azureServiceConnectionsubscriptionIdappPrefixapiProjectPathwebProjectPath
For GitHub or Bitbucket Cloud repos connected to Azure Pipelines, the YAML pr: trigger validates pull requests.
For Azure Repos Git, configure PR build validation through branch policies:
Project Settings -> Repositories -> your repo -> Policies -> main -> Build validation
README.md
azure-pipelines.yml
azure-complete-infographic.svg