Introduction
Explore how to automate deployment pipelines in Azure by building a CI/CD process with YAML and ARM templates. Understand the integration of Event Grid, storage queues, and Azure DevOps to streamline infrastructure management and deployment automation.
We'll cover the following...
We'll cover the following...
In this chapter, we will be doing the following:
- Automate the deployment of our architecture
- Create a pipeline based on YAML and ARM templates
- Integrate pipelines and ARM templates to Azure DevOps
CI/CD pipeline overview
Pipeline setups are usually required in all infrastructures. First, it will create an Event Grid with a topic and set up a container to observe a subscription/resource group (here you can find Event Grid sources). It then creates a storage queue account with three queues for an event store. You can see it in the diagram below.
Creating the CI/CD pipeline structure
Let’s start with the folder structure for our project.
- We will add a
deploymentfolder to our Middleware Function App. - In the
deploymentfolder, we will create anarmsubfolder for the Azure templates.ARM Azure Resource Manager - Then we will add the YAML file. This will be our pipeline configuration. In our case, it has the name
AzureValidationMiddlewareFunctionAppDeployResources.yaml
The final structure is demonstrated in the image below.