# Day 1 Azure Fundamentals & Infrastructure

# Welcome

This day is about getting a basic understanding of Azure and how to use its fundamental infrastructure services:

  • Networking
  • Virtual machines
  • Storage accounts
  • Azure Resource Manager Templates
  • Azure Automation

# Challenges

# Networking

🔑 Keywords: VNET, peering, loadbalancer, VPN, Traffic Manager

At first we create a virtual network (VNET) in Azure. A VNET is a requirement for quite a few services in Azure e.g. virtual machines, firewalls, containers, web,etc. (Challenge-0).
A hybrid network connects your onpremise data center with Azure Site-2-Site VPN. This is a very common task - but quite a few steps to implement. Although infra work you should have done it once 😃 (Challenge-8).
Traffic can flow within a single VNET. However if you need to connect two separate VNETs you need to do network peering (Challenge-9).
Azure loadbalancer is an easy way to distribute traffic between virtual machines. In Challenge-10 you configure it for a web server farm.
Another service that helps to direct traffic flow & distribution weightings is Azure Traffic Manager. This is Challenge-11.

# Virtual Machines

🔑 Keywords: create, disks, backup, post deployment automation

Spinning up a virtual machine in Azure using the portal is Challenge-01.
You may need to attach a data disk to a VM or resize it (Challenge-02)
Backup a VM is important, but fairly easy to do. Therefore we mark this as optional (Challenge-03).
Post deployment automation offers a way on how to configure / install / run scripts within an VM after it has been created. Thus allowing a way to fully automate the setup of a web farm (Challenge-4).

# Storage Accounts

🔑 Keywords: container, SAS, access policy, file share

Storage Accounts is one of the first Azure services. They offer a way to store data on a massive / performant way at global scale with relatively cheap pricing. However, storing data in the cloud needs to be secured from anyone's access. One sub service of Azure storage accounts are Azure file shares, which can be attached to VMs (Challenge-6).

# Automation & ARM (aka Azure Resource Manager)

🔑 Keywords: Cloud Shell, Azure Resource Manager, provider, template, parameter, deployment, Azure Automation

Besides the portal, Azure offers other ways to connect to it. There are tools like Azure CLI or PowerShell to run CRUD-like commands against your Azure subscription. This offers a way to speed up deployments, reduce human error, build infrastructure as code, etc.. Azure Cloud Shell is an easy already setup shell you can use right away (Challenge-5).

So-called ARM templates offer a way to describe your Azure services in a json file. It can be used like an 'order-form' i.e. Azure will serve you with what you described within the ARM Template (Challenge-7).

Azure Automation is helpful do perform recurring tasks e.g. stopping & starting VMs to save costs based on a schedule. The idea is to let Azure execute scripts (that you provide) that can do things within your subscription. Challenge-12 is about gathering your Azure consumption / usage and send it to you via email as .csv for better cost prediction. Cool, isn't it?

😎 Enjoy your day! 😎