...

/

Building a Foundation Structure

Building a Foundation Structure

Let's create our Azure resource groups, automation account, and database.

In this lesson, we will start building the foundation for our Event-Driven Architecture by creating Azure resource groups, an automation account, and a database.

Resource Groups

Resource groups are containers that we can use to gather all our resources in one place. They allow you to organize how resources are managed and grouped based on your needs. For this course, we will be creating the following four resource groups:

  1. vm-container-rg will be used as the container for our VMs that generate events.
VM Container Resource Group
VM Container Resource Group
  1. shared-rg will be used for shared resources such as:
  • Automation account with run book
  • Database
  • Logs infrastructure (Azure Log analytics, application insights)
  • Key Vault
Container for Shared Resources
Container for Shared Resources
  1. middleware-eg-rg will be used for Event Grid and contains the following resources:
  • Storage account
  • The Event Grid’s topic
  1. middleware-function-app-rg will be used for Azure function app and contains the following resources:
  • Function app
  • App Service Plan for the Function app
  • Storage Account intended for storing data files and logs for the Function app.

Creating a resource group

Powershell:

We can use the New-AzResourceGroup command to create a new resource group. We will be using the following parameters:

  • [-Name] <String>: Name of the resource group.
  • [-Location] <String>: The location of the resource group. You can view all locations here or you can use the command az account list-locations to get a list.
  • [-Force]: You will not be prompted for confirmation by using this parameter.

This is our command to create a resource group:

New-AzResourceGroup -Name shared-rg -Location "West Europe"

Hit the RUN button to access the terminal. You can run ...

Access this course and 1400+ top-rated courses and projects.