Azure Pipeline to Learn Quickly
Problem statement: Azure Portal wizard to create resources takes up too much time. While learning Azure, I often need to create and delete resources and have to do this repeatedly. Also there is not much learning when we use wizard. Need this to be automated.
Solution: Azure provides several ways to manage resources using command line. This is known as IaaC, Infrastructure as code.
- Azure CLI
- ARM templates
- Terraform
- Python SDK.
Based on above I have create series of assignments to achieve an automated pipeline wherein I can write code and run a complete devops pipeline including actual deployment to the host or Docker/Kubernetes instance.
The simplest Pipeline: Create VM
Using Python SDK — Done
https://github.com/prashantkumbhare/azure/tree/main/1-Simple
To Do: Coming soon..
1a. Using Azure CLI
1b. Using Terraform.
1c. Using ARM Template.
https://learn.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-template
2. Create VM, then deploy and run code.
3. Create docker Instance, create image and upload to docker repository, push image to docker instance, start container and test results.
4. Create Kubernetes instance and run this code.
5. Deploy SonarQube in pipeline and run code checks. Can work with #2 or #3.