Professional Documents
Culture Documents
Administrator AZ-104
Deploy and Manage Azure Compute
Resources
A Day in the Life of an Azure Architect
Virtual machines are part of the Infrastructure as a Service (IaaS) providing. IaaS is a rapid
computing infrastructure, provisioned and managed over the Internet. Quickly scale up and
down with demand and pay only for what the user employs.
Physical network
• Big data analysis
Physical datacenter
• Extended data center
Microsoft Customer
Source: https://docs.microsoft.com/en-us/azure/security/fundamentals/shared-responsibility
Plan Virtual Machines
Choose a location:
• Each region has completely different hardware and service capabilities
• Locate virtual machines as near as possible to the users to ensure
compliance and legal obligations
Consider pricing:
• Compute prices
• Storage prices (consumption-based and reserved instances)
Determine Virtual Machine Sizing
Azure provides VM size choices with varying mixture of work out, memory, and storage,
the users may choose from.
Type Description
Type Description
High disk throughput and IO ideal for Big Data, SQL, NoSQL databases,
Storage optimized
data warehousing and large transactional databases.
High performance Our fastest and most powerful CPU virtual machines with optional
compute high-throughput network interfaces (RDMA).
Determine Virtual Machine Storage
Duration: 10 Min.
Problem Statement:
Create Virtual machine and configure these virtual machines using Azure Portal.
Assisted Practice: Guidelines
Duration: 10 Min.
Problem Statement:
Create Virtual machine and configure these virtual machines using Azure CLI.
Assisted Practice: Guidelines
Source: https://docs.microsoft.com/en-us/azure/bastion/bastion-overview
Connect to Windows Virtual Machines
Source: https://docs.microsoft.com/en-us/azure/bastion/bastion-overview
Connect to a Windows Virtual Machine
Duration: 10 Min.
Problem Statement:
Connect windows based virtual machine using Remote desktop protocol (RDP) on port 3389.
Assisted Practice: Guidelines
• SSH is an encrypted connection protocol that allows secure logins over unsecured connections.
Duration: 10 Min.
Problem Statement:
Connect Linux-based virtual machine using Secure Shell (SSH) on port 22.
Assisted Practice: Guidelines
Duration: 10 Min.
Problem Statement:
Availability Sets are essential to build reliable cloud solutions. General principles include:
• Configure multiple Virtual Machines in an Availability Set.
• Configure each application tier into separate Availability Sets.
• Combine a Load Balancer with Availability Sets.
• Use managed disks with the Virtual Machines.
Update and Fault Domains
Each virtual machine in the availability set has an update domain and fault domain assigned to ensure
high availability and redundancy.
Virtual Machine Virtual Machine Fault Domains are a group of Virtual Machines
that share a common set of hardware and
SQL 1 SQL Availability Set SQL 2
switches, that share a single point of failure.
VMs in an availability set are placed in at least
two fault domains.
Source: https://docs.microsoft.com/en-us/azure
Availability Zones
Considerations for availability zones to protect applications and data from datacenter failures include:
Source: https://docs.microsoft.com/en-us/azure
Vertical Scaling Vs. Horizontal Scaling
Source: https://docs.microsoft.com/en-us/azure
Implement Scale Sets
Source: https://docs.microsoft.com/en-us/azure
Create Scale Sets
Duration: 10 Min.
Problem Statement:
Create the Virtual machine Scale Set that will be flexible enough to adjust the instance count
based on load.
Assisted Practice: Guidelines
Autoscale benefits:
• Define rules to automatically adjust capacity
• Scale out (increase) the number of VMs in the set
• Scale in (reduce) the number of VMs in the set
• Schedule events to increase or decrease at a fixed time
• Reduces monitoring and optimizes performance
VM VM VM VM VM
3 currently running
Source: https://docs.microsoft.com/en-us/azure
Configure Autoscale
Autoscale can be enabled while creating a scale set, along with defining a minimum,
maximum, and default number of VM instances.
Duration: 05 Min.
Problem Statement:
Configure the autoscaling in the Virtual Machine Scale Set so that, based on this setting, the
scale set will automatically scale in and scale out.
Assisted Practice: Guidelines
Duration: 20 Min.
Problem Statement:
Install the software on the virtual machine with the help of a custom script extension.
Assisted Practice: Guidelines
Duration: 15 Min.
Problem Statement:
Query the system and runtime information about the VM to get information about the Virtual
Machine.
Assisted Practice: Guidelines
Steps to query the system and runtime information about the VM:
1. Login to cloud shell
2. Use az vm list command to list the vms defined in the Azure
subscription
3. Run az vm show command to fetch the detailed vm
information
Create and Configure an App Service
Implement Azure App Service Plans
• Configures one or more apps to run in the same App Service plan
The pricing tier of an App Service plan decides the features and payment details.
Shared compute
Dedicated compute Isolated
(Free and Shared). Run apps
(Basic, Standard, Premium). Runs apps on dedicated Azure
on the same Azure VM as other
Run apps in the same plan in VMs in dedicated Azure virtual
App Service apps, and the
dedicated Azure VMs. networks.
resources cannot scale out.
Determine App Service Plan Pricing
Isolated
Basic Standard Premium
Shared (high-performance,
Selected Features Free (dedicated (production (enhanced scale
(dev/test) security and
dev/test) workloads) and performance)
isolation)
Web, mobile, or API
10 100 Unlimited Unlimited Unlimited Unlimited
apps
Disk space 1 GB 1 GB 10 GB 50 GB 250 GB 1 TB
Auto Scale – – – Supported Supported Supported
Deployment Slots 0 0 0 5 20 20
Max Instances – – Up to 3 Up to 10 Up to 30 Up to 100
Scaling Up the App Service Plan
Scale up (change the App Service plan): Scale out (increase the number of VM instances):
• More hardware (CPU, memory, disk) • Manual (fixed number of instances)
• More features (dedicated virtual machines, • Auto scale (based on predefined rules and
staging slots, autoscaling) schedules)
Source: https://docs.microsoft.com/en-us/azure
Configure App Service Plan Scaling
Autoscale has the right amount of resources running to handle the load on the
application. Below are a few features:
Source: https://docs.microsoft.com/en-us/azure
Scale up App Service
Duration: 05 Min.
Problem Statement:
Configure the autoscaling in an App Service so that based on this setting the scale set will
automatically scale in and scale out.
Assisted Practice: Guidelines
• Platform-as-a-service (PaaS) offers for building and deploying highly available cloud
apps for web and mobile
• Provides developer productivity using .NET, .NET Core, Java, Python, and a host of
others
Source: https://docs.microsoft.com/en-us/azure
Deploy code to App service
Duration: 10 Min.
Problem Statement:
Deploy the code to App Service and test the application after deployment.
Assisted Practice: Guidelines
Continuous Deployment • It connects the web app with any of the single-
source control and the App service auto-syncs
the code into the web app.
Developer 1
• Whenever code updates are pushed to the
source control, then the website or web app
will automatically pick up the updates.
GitHub Website
Source: https://docs.microsoft.com/en-us/azure
Create Deployment Slots
Source: https://docs.microsoft.com/en-us/azure
Add Deployment Slots
Source: https://docs.microsoft.com/en-us/azure
Secure an App Service
Authentication
Security
Web pages
Client apps
• Request rates, deny rates, response
time and failure rates
requests
HTTP
Alerts
Your Web
• Page views and load performance
Services Power BI
Visual
Dependency Calls
Studio
• User and session counts
Rest API
External Background
Services Services
SQL Continuous
Export
• Performance counters
Source: https://docs.microsoft.com/en-us/azure
Create and Configure Azure Containers and
Desired State Configurations
Compare Containers to Virtual Machines
The following table depicts the differences between containers and virtual machines:
Deploy individual containers by using Docker via Deploy individual VMs by using Windows Admin Center or
Deployment command line; deploy multiple containers by using Hyper-V Manager; deploy multiple VMs by using
an orchestrator such as Azure Kubernetes Service PowerShell or System Center Virtual Machine Manager
Compare Containers to Virtual Machines
The following table depicts the differences between containers and virtual machines:
Port 80
(Public IP Address)
Benefits of Azure Container instances:
• PaaS service
• Fast startup times
• Public IP connectivity and DNS name
Port 80
Virtual Network
• Virtual network deployment
Source: https://docs.microsoft.com/en-us/azure
Implement Container Groups
Source: https://docs.microsoft.com/en-us/azure
The Docker Platform
Source: https://docs.microsoft.com/en-us/azure
AKS Terminology
Term Description
Source: https://docs.microsoft.com/en-us/azure
AKS Clusters and Nodes
Source: https://docs.microsoft.com/en-us/azure/aks/concepts-network
Create AKS Cluster
Duration: 20 Min.
Problem Statement:
Source: https://docs.microsoft.com/en-us/azure/aks/concepts-storage
Configure AKS Scaling
Source: https://docs.microsoft.com/en-us/azure/aks/concepts-scale
Configure AKS Scaling to ACI
Source: https://docs.microsoft.com/en-us/azure/aks/concepts-scale
Deploy a Python App to AKS
Duration: 10 Min.
Problem Statement:
Azure Automation State Configuration ensures that the virtual machines (VMs) in a cluster are in
a consistent state, with the same software installed and the same configurations.
Implement Desired State Configuration
Duration: 05 Min.
Problem Statement:
Assign the task of setup DSC and configure the desired state with some custom software.
Assisted Practice: Guidelines
Description: The user has been given a project to create Virtual machine
scale sets. Once the scale set has been created, we will be deploying the IIS
webserver on these virtual machines present in the scale set.