Search⌘ K
AI Features

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.

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.

  1. We will add a deployment folder to our Middleware Function App.
  2. In the deployment folder, we will create an arm subfolder for the Azure ARMAzure Resource Manager templates.
  3. 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.