Module 05 Implement Infrastructure As A Service Solutions
Module 05 Implement Infrastructure As A Service Solutions
infrastructure as a
service solutions
Availability zones: An Availability Zone in an Azure region is a combination of a fault domain and an update domain.
Availability sets: A logical grouping of VMs that allows Azure to understand how your application is built to provide
for redundancy and availability.
Virtual machine scale sets: Create and manage a group of load balanced VMs . Number of VM instances can
automatically increase or decrease in response to demand or a defined schedule
Load balancer: A Layer-4 (TCP, UDP) load balancer that provides high availability by distributing incoming traffic
among healthy VMs.
Fault domains
A fault domain is a logical
group of underlying
hardware that share a
common power source and
network switch, similar to a
rack within an on-premises
datacenter.
VM Type Description
General Purpose Balanced CPU-to-memory ratio. Ideal for testing and development, small to medium databases,
and low to medium traffic web servers.
Compute Optimized High CPU-to-memory ratio. Good for medium traffic web servers, network appliances, batch
processes, and application servers.
Memory Optimized High memory-to-CPU ratio. Great for relational database servers, medium to large caches, and in-
memory analytics.
Storage Optimized High disk throughput and IO ideal for Big Data, SQL, NoSQL databases, data warehousing and
large transactional databases.
GPU Specialized virtual machines targeted for heavy graphic rendering and video editing, as well as
model training and inferencing (ND) with deep learning. Available with single or multiple GPUs.
High Performance Our fastest and most powerful CPU virtual machines with optional high-throughput network
Compute interfaces (RDMA).
Task 1: Create a resource Task 2: Install a web server Task 3: View the web server in
group and a virtual machine action
"resources": [ PUT
{ https://management.azure.com/subscriptions/{subscr
"type": "Microsoft.Storage/storageAccounts", iptionId}/...?api-version=2019-04-01
"apiVersion": "2019-04-01", REQUEST BODY
"name": "mystorageaccount", {
"location": "westus", "location": "westus",
"sku": { "sku": {
"name": "Standard_LRS" "name": "Standard_LRS"
}, },
"kind": "StorageV2", "kind": "StorageV2",
"properties": {} "properties": {}
} }
]
Optional deployment
• Use the condition element to specify whether the resource is deployed.
• The value for the condition resolves to true or false.
Runtime functions
• If you use a reference or list function with a resource that is conditionally deployed, the
function is evaluated even if the resource isn't deployed. You get an error if the function
refers to a resource that doesn't exist.
• Use the if function to make sure the function is only evaluated for conditions when the
resource is deployed.
Example result
To illustrate the difference between incremental and complete modes, consider the following table.
• When deployed in incremental mode, Resource D is added to the existing resource group.
• When deployed in complete mode, Resource D is added and Resource C is deleted.
To set the deployment mode when deploying with Azure CLI, use the mode parameter.
Task 1: Create an Azure Task 2: Add an Azure resource Task 3: Add parameters to the
Resource Manager template to the template template
Task 4: Create a parameter file Task 5: Deploy the template Task 6: Clean up resources
Every Basic, Standard, and Premium Azure container registry benefits from advanced Azure storage
features
• Encryption-at-rest: All container images in • Image limits: The container image and
your registry are encrypted at rest. storage limits in place for Azure container
• Geo-redundant storage: Azure uses a geo- registries:
redundant storage scheme to guard against o Repositories No limit
loss of your container images. o Images No limit
• Geo-replication: For scenarios requiring even o Layers No limit
more high-availability assurance, consider o Tags No limit
using the geo-replication feature of Premium o Storage 5 TB
registries.
ACR Tasks is a suite of features within Azure Container Registry. It provides cloud-based container image
building for platforms including Linux, Windows, and ARM, and can automate OS and framework
patching for your Docker containers.
Task scenarios
ACR Tasks supports several scenarios to build and maintain container images and other artifacts:
• Quick task
• Automatically triggered tasks
• Multi-step task
# STEP 8: Define the entry point of the process that runs in the container
ENTRYPOINT ["dotnet", "website.dll"]
Task 1: Create an Azure Task 2: Build and push image Task 3: Verify the results
Container Registry from a Dockerfile
Public IP connectivity and DNS Containers can be directly exposed to the internet with an IP address and a fully
name qualified domain name (FQDN)
Container nodes can be scaled dynamically to match actual resource demands for
Custom sizes
an application
Linux and Windows containers The same API is used to schedule both Linux and Windows containers
Virtual network deployment Container Instances can be deployed into an Azure virtual network
Container groups
The top-level resource in
Azure Container Instances is
the container group.
Deployment Storage
• There are two common ways to deploy a multi- • Specify external volumes to mount within a
container group: ARM template or a YAML file. container group.
Resource allocation • Map those volumes into specific paths within the
individual containers in a group.
• Azure Container Instances allocates resources such
as CPUs, memory, and optionally GPUs (preview) to a Common scenarios
container group by adding the resource requests of • Multi-container groups are useful in cases where
the instances in the group. you want to divide a single functional task into a
Networking small number of container images.
• Container groups share an IP address and a port
namespace on that IP address.
Task 1: Create a resource Task 2: Create a container Task 3: Verify the container is
group for the container running
Overview Limitations
• By default, Azure Container Instances are • You can only mount Azure Files shares to Linux
stateless. If the container crashes or stops, all of containers.
its state is lost. • Azure file share volume mount requires the
• To persist state beyond the lifetime of the Linux container run as root.
container, you must mount a volume from an • Azure File share volume mounts are limited to
external store. CIFS support.
http://aka.ms/az204labs