Azure Infrastructure Provisioning Automation through Terraform
Farhan Ahmad
Cloud Infrastructure Architect
DevOps Engineer
Azure DevOps
Kubernetes
Terraform
Azure
Use Case
End-user must create a manual request for provisioning the Azure Infrastructure resources, which includes sharing the template in a desired manner.
We had to automate this process so that the Azure Provisioning can be done with minimal effort. Along with the automation below points had to be taken care.
1. Documenting the integration steps between the different tools
2. Implement the best practices for each tool being used in this automation
Solution
Designing Bitbucket Premium Cloud repository with corresponding branching strategy defined to suit the application
Configure SSO for Bitbucket Premium Cloud using Okta.
Create Private Repository to store Terraform modules with required RBAC policies.
Bitbucket Cloud & OKTA Integration for enabling Single Sign On
Bitbucket Cloud & ServiceNow integration for resource catalogue enablement
Bitbucket Cloud & Terraform Cloud integration for resource catalogue enablement and automated triggers from the checking in Bitbucket based on approvals and gates.
Terraform scripts for Azure resources like SQL Server, Storage Account, Load Balancer, SQL MI and Virtual Machine