Azure Fundaments - MyNotes
Azure Fundaments - MyNotes
High Availability, Scalability, Elasticity, Agility, Fault Tolerance, and Disaster Recovery, economies of scale,
describe the differences between Capital Expenditure (CapEx) and Operational Expenditure (OpEx),
describe the consumption-based model
Lesson 2: Cloud Models
Infrastructure-as-a-Service (IaaS), Platform-as-a-Service (PaaS) and Software-as-a-Service (SaaS)
Lesson 3: Public, Private and Hybrid Cloud
Public, Private and Hybrid cloud models
Lesson 4: Core Azure Architectural components
Regions, Availability Zones , Resource Groups , Azure Resource Manager, the benefits and usage of core
Azure architectural components
Lesson 5: Core Azure Products
Compute -Virtual Machines, Virtual Machine Scale Sets, App Services, Azure Container Instances (ACI) and
Azure Kubernetes Service (AKS)
Networking - Virtual Network, Load Balancer, VPN Gateway, Application Gateway and Content Delivery
Network
Storage - Blob Storage, Disk Storage, File Storage, and Archive Storage
Databases - Cosmos DB, Azure SQL Database, Azure Database for MySQL, Azure Database for PostgreSQL,
Azure Database Migration service
Azure Marketplace and its usage scenarios
Lesson 6: Some solutions available in Azure
Internet of Things (IoT) - IoT Hub and IoT Central
Big Data and Analytics - Azure Synapse Analytics, HDInsight, and Azure Databricks
Artificial Intelligence (AI) - Azure Machine Learning Service and Studio
Serverless computing - Azure Functions, Logic Apps, and Event Grid
DevOps solutions - Azure DevOps and Azure DevTest Labs
The benefits and outcomes of using Azure solutions
Lesson 7: Azure management tools
Azure tools - Azure Portal, Azure PowerShell, Azure CLI and Cloud Shell, Azure Advisor
Lesson 8: Securing Network connectivity
Network Security Groups (NSG), Application Security Groups (ASG), User Defined Rules (UDR), Azure
Firewall, and Azure DDoS Protection, Choose an appropriate Azure security solution
Lesson 9: Core Azure Identity Service
Authentication and authorization, Azure Active Directory, Azure Multi-Factor Authentication
Lesson 10: Security tools and features of Azure
Azure Security Center, Azure Security Center usage scenarios, Key Vault, Azure Information Protection
(AIP), Azure Advanced Threat Protection (ATP)
Lesson 11: Azure Governance Methodologies
Policies and initiatives with Azure Policy, Role-Based Access Control (RBAC), Locks, Azure Advisor security
assistance, Azure Blueprints
Lesson 12: Monitoring and reporting options in Azure
Azure Monitor, Azure Service Health, use cases and benefits of Azure Monitor and Azure Service Health
Lesson 13: Understand Privacy, Compliance, and Data Protection Standards in Azure
industry compliance terms such as GDPR, ISO and NIST, Microsoft Privacy Statement, Trust center, Service
Trust Portal, Compliance Manager, if Azure is compliant for a business need, Azure Government cloud
services, Azure China cloud services
Lesson 14: Azure subscriptions
Azure Subscription, the uses and options with Azure subscriptions such access control and offer types,
describe subscription management using Management groups
Lesson 15: Planning and management of cost
options for purchasing Azure products and services describe options around Azure Free account
describe the factors affecting costs such as resource types, services, locations, ingress and egress traffic
describe Zones for billing purposes describe the Pricing calculator describe the Total Cost of Ownership
(TCO) calculator describe best practices for minimizing Azure costs such as performing cost analysis,
creating spending limits and quotas, using tags to identify cost owners, using Azure reservations and using
Azure Advisor recommendations describe Azure Cost Management
Lesson 16: Support Options Available in Azure
Understand describe support plans that are available such as Developer, Standard, Professional Direct and Premier Understand
describe how to open a support ticket Understand describe available support channels outside of support plan channels describe
the Knowledge Center
Lesson 17: Azure Service Level Agreements.
Describe a Service Level Agreement (SLA) describe Composite SLAs describe how to determine an
appropriate SLA for an application
Lesson 18: understand service life cycle
Describe Public and Private Preview features describe the term General Availability (GA) describe
how to monitor feature updates and product changes
Cloud Computing:
Cloud computing is renting resources, like storage space or CPU cycles, on another company's computers. You only
pay for what you use. The company providing these services is referred to as a cloud provider. Some example
providers are Microsoft, Amazon, and Google.
Cloud computing is the delivery of computing services over the Internet using a pay-as-you-go pricing
model. Put another way; it's a way to rent compute power and storage from someone else's data center.
Economic benefits
CapEx- investment in purchasing physical hardware, systems everything to run business (server,
storage, repair, network, cable, backup archive, Datacenter and disaster recovery )
Vs OpEx- Only paying operational cost, monthly basis, no upfront cost. (Server lease cost,
software and features lease, cost scaling)
Economies of scale- Buy more, pay less. Cloud providers are in profit, they pass that to the
customers. , Local government deals
consumption-based model= use only the resources which you need, use low then pay low
IaaS-
Compute - Virtual Machines, containers
Storage –Blob, Queue, File, Disks
Networking – Virtual Network, Load balancer, DNS, Express Route, Traffic Manager, VPN
gateway , App Gateway
Pass
Database- almost all in PaaS
Compute- VM Scale set, Container service, Batch, Remote App
Application Platform, media & CDN, Data, Intelligence, Analytics and IoT
All expect IaaS comes here
Geography- logical boundary that Microsoft has defined and they are often defined as the
border of a country.
In every Geography- there are 2 or more regions
Region-Logical boundary but much more localized than Geography
GeographyRegion Availability zones (1 or 3) Availability zones consist of DC
Regions are separated with each other, few 100 kilometers far.
Region- where your resources are located
Total 60+ regions, available in 140 countries
In each region, Microsoft have built datacenters –pic->
Azure Resource Manager (ARM): It is a service runs on Azure and it is responsible for all the
interactions with Azure services.
ARM- Azure Resource Manager is the deployment and management service for Azure. It
provides a management layer that enables you to create, update, and delete resources in your
Azure account.
Deploying and manage large number of related azure services- Arm
ARM is a service that runs in Azure and responsible for all the interaction with Azure services.
Azure compute products allow us to easily and dynamically allocate resources that might be needed for
computing any task.
Some products- Azure Virtual Machine, Virtual Machine Scale Sets, Azure App Service, Service
fabric, Azure Kubernetes Service, Azure Container Instances, Azure functions, Azure Batches
Containers –
Containers provide a consistent, isolated execution environment for applications. They're
similar to VMs except they don't require a guest operating system. Instead, the application and
all its dependencies is packaged into a "container" and then a standard runtime environment is
used to execute the app. This allows the container to start up in just a few seconds, because
there's no OS to boot and initialize. You only need the app to launch
Standardized packaging for software and dependencies
If you want to deploy complex application running in the cloud, you need to store database
components and other dependencies, you have to configure all the settings, make sure all the
things are right and working correctly
What happens when you want to deploy the same application in other VM?
We have to repeat the all action again and again and we have to be careful we are doing exactly
the same things what we did first time.
Containers make such deployment much easier.
In example- Docker container, one of the most used container runtime
How it works? You create an image, it is zipped image if your application.
And that image contains – Operating system, the application itself, necessary modules,
database, webserver and its configuration, website and anything else will be zipped if that
application requires
In Azure, container are supported in Azure Kubernetes Service, Azure App Service, Azure
Container Instance, Azure Virtual Machine
Works on Linux and windows server
Allows separate apps to share same OS kernel
Azure Container Instance, Containers are becoming the preferred way to package, deploy, and
manage cloud applications. Azure Container Instances offers the fastest and simplest way to run
a container in Azure, without having to manage any virtual machines and without having to
adopt a higher-level service.
Azure Container Instances is a great solution for any scenario that can operate in isolated
containers, including simple applications, task automation, and build jobs.
Azure Kubernetes Service: AKS is an open-source fully managed container orchestration service
that became available in June 2018 and is available on the Microsoft Azure public cloud that can
be used to deploy, scale and manage Docker containers and container-based applications in a
cluster environment.
Azure Kubernetes Service offers provisioning, scaling, and upgrades of resources as per
requirement or demand without any downtime in the Kubernetes cluster and the best thing
about AKS is that you don’t require deep knowledge and expertise in container orchestration to
manage AKS.
Azure App services – Web Apps, Mobile Apps, Logic Apps, API Apps
Web Apps-
Formerly ‘websites’
Build and host apps with various programming languages
Auto scalable
Highly available
DevOps features
Mobile Apps
Build a mobile device backend
Auto scalable
Highly available
Build native apps for iOS, android, windows, cross-core platform apps
Benefit- Share same App service deployments to reduce run rates
Logic Apps
Automate business processes and workflows
Use the orchestration engine to build a solution
Examples:
Every time your app calls an API to do some task
Routinely ingest data from a storage blob or external SaaS- based service
Regularly check tweets or #SLACK messages from a specific account (social media)
API Apps
Allow us to create, consume and call APIs
Option to use APIs you create
Could also be from external API service
Azure Serverless Computing: doesn’t mean we are not using servers, it means No need to managing
servers, infrastructures by us. Let’s you run application code without creating, configuring, or
maintaining a server.
Serverless computing lets you run application code without creating, configuring, or maintaining a
server. The core idea is that your application is broken into separate functions that run when triggered by
some action. This is ideal for automated tasks - for example, you can build a Serverless process that
automatically sends an email confirmation after a customer makes an online purchase.
The Serverless model differs from VMs and containers in that you only pay for the processing time used
by each function as it executes. VMs and containers are charged while they're running - even if the
applications on them are idle.
Key points
Web, Middle and Data Tier- here Web tier is only exposed to the internet
Azure Virtual Network- segment my network into subnets.
Each tier will have public IP address. To prevent this, solution -> Azure Load balancer
Now users will be able to see the public IP which will belong to Load balancer.
Azure Load balancer will divide the traffic and users will not be able to know which VM is
providing service.
If user want to access particular VM, based on particular service advance of load balancing
solution is Azure Application gateway.
Azure Load Balancer-
Works at layer 4- transport layer of OSI Model
Service monitoring (about unhealthy server in backend)
Automated Reconfiguration
Hash based distribution
Internal and Public Options
Azure Application gateway
Works at layer 7 (Application layer)
Cookie bases session affinity
SSL offload
End to End SSL
Web Application Firewall
Requires its own subnet
VPN Gateway-> It connects Azure resources to On-premises resources using encrypted VPN
tunnel.
VPN Gateway connection types/ also called Hybrid connectivity (cloud to on premise)
Site-to-Site VPN (S2S)- Connects VNet to single on-premises location/ connection your
datacenter via VPN with Azure
Point-to-site VPN (P2S) - connects one on-premises client to your VNet
Vnet to Vnet- connect two Azure vNets to each other.
Azure Content Delivery Network (CDN)
Delivers large files or streaming content over Internet
Caches file in multiple geographic locations
Stores files in a point-of-presence (POP) server (often called edge servers)
Content on edge servers has a time-to-live (TTL) property. TTL- It tells the server how
long to keep that cache copy of that content.
User -> Edge -> Source where data is present
Offerings – Standard Akamai, Standard Verizon, premium Verizon
Azure Traffic manager
It is designed to increase the speed and reliability of the application. We configure endpoint
Azure Traffic Manager is a DNS-based traffic load balancer that enables you to distribute traffic
optimally to services across global Azure regions, while providing high availability and
responsiveness.
Priority – traffic sent to priority endpoint, but backup endpoints available in case of primary
outage.
Weighted- Traffic distributed across endpoints. Distribution is even by default and can be
controlled by specifying weights
Performance – Uses network with lowest network latency
Geographic – routed based on locations of DNS server
Multivalued – Returns all endpoints using specific IP protocol version, either IPV4 or IPV6
Subnet- Routed based on end-user IP address range.
Hybrid connectivity
Site-to-Site VPN (S2S)- connection your datacenter via VPN with Azure
Connection over IPsec/IKE VPN tunnel
Required a VPN device in datacenter that has public IP address assigned to it
Must not be located behind NAT
S2S connections can be used for cross-premises and hybrid configurations
Multi-site – Multiple office to Azure via VPN
Virtual Network Point-to-site A point-to-site VPN also allows you to create a secure
connection from your Windows-based computer to your virtual network without having
to deploy any special software.
Secure connection from an individual computer. Great for remote worker situations
No need for a VPN device or public IP. Connect whatever has an internet connection
OS Supports- windows 8,9,10, Windows server 2008, 12
Throughput up to 100 Mbps
Don’t scale easily so useful for few workstations.
ExpressRoute lets you create private connections between Azure datacenters and
infrastructure that’s on your premises or in a co-location environment.
Dedicated circuit between us and Azure
Steps
Our network -> We choose a partner to work with (Partner Edge) -> they connect to
Azure
Benefits- connectivity via partner to Microsoft, connectivity in all regions, global
connectivity –express route premium add-on, dynamic routing (BGP) – industry
standard, built in redundancy,
Blob storage
Queue storage
Disk storage
Azure File storage
Blob storage:
Blob- binary large object.
Stores unstructured data (text, images, audio, video, documents)
Items stored are called as Blob
Blob types- Block Blob, Append blobs, page blobs
Block blob- ideal for storing text and binary files max 4.75 TB
Page blob- efficient for read/write operations, used by Azure VMs, Max 8 TB
Append blobs- they are optimized for append operations (e.g. logs) When you modify
an append blob, blocks are added to the end of the blob only, via the Append
Block operation. Updating or deleting of existing blocks is not supported.
Blobs are organized in containers (one container for images, another for video etc)
Pricing Tier
Hot – Maximum storage cost, lowest access cost
Cold – Normal storage cost, normal access cost
Archive- Least storage cost, highest access cost.
Access quickly in Hot and Cool, but not in Archive
Queue storage
Cloud based message queue , reliable mechanism for storing and delivering message for
applications
Keep track of long running operations, or perform complex multi-step operations in
specific order
Asynchronous processing millions of messaging upto 64 KB
Access protected by Azure active Directory or a shared key
Applications access Queue storage using API
Disk Storage
VM uses disks as a place to store an operating system, applications, and data in Azure.
All virtual machines have at least two disks- a Windows operating system disk and a
temporary disk. Both the operating system disk and the image are virtual hard disks
(VHDs) stored in an Azure storage account. The VHDs used in Azure is .vhd files stored as
page blobs in a standard or premium storage account in Azure.
Used to store disk images used in Azure VMs
Persistent temporary storage for Azure VMs
Lift and shift of machines from on-premises
Available in standard HDD and standard, premium SDD
Disk storage are stored under Azure Blob storage.
Two kinds
1. Unmanaged disk for your storage account
2. Managed disks- Microsoft manages the account for you.
Block Blobs: For large objects that doesn't use random read and write operations. e. g.
Pictures Page Blobs: Optimized for random read and write operations. e. g. VHD
Append Blobs: Optimized for append operations. e. g. Logs
Structured data:
Unstructured Data
No designated structure
No restrictions on the kind of data it can hold
Example, a blob can hold a PDF, JPEG, JSON, videos etc.
Enterprises are struggling to manage and tap into the insights from their unstructured
data.
Azure SQL Database: relational database made up of tables of data, they have schema, and data which
user enters much comply with schema
Single database – SQL Server database managed by Microsoft. It has 2 models- DTU and V core
Key features
Three different deployment models: Single database, elastic pool, managed instance
Elastic Pool-
Managed instances
Azure Cosmos DB
Azure Marketplace:
Every devices that have internet connectivity – car, camera, refrigerator, water sensor
for farming, temperature and humidity sensors in air conditioning units.
Devices usually have sensors and they are connected to internet
Collection of Microsoft managed cloud services focused on connecting, monitoring and
controlling IoT assets.
Azure IoT Hub
It is PaaS offering
It manages the communication between your applications and devices.
Secure handling of messages to and from devices
Supports virtually all IoT devices at scale (up to 1,000,000 devices in a single IoT Hub)
Easy management of devices.
Big data – More data that you can analyze through conventional means within a desired timeframe.
Kinds- Azure SQL Data warehouse, Azure data lake Storage, Azure HDInsight
Azure Databricks
Azure Databricks is an Apache Spark-based analytics platform optimized for the
Microsoft Azure cloud services platform. Designed with the founders of Apache Spark,
Databricks is integrated with Azure to provide one-click setup, streamlined workflows,
and an interactive workspace that enables collaboration between data scientists, data
engineers, and business analysts.
Artificial intelligence
Azure Machine learning- It is a data science technique that allows computers to use
existing data to forecast future behaviors, outcomes and trends. By using ML,
computers learn without explicitly programmed.
Azure Machine Learning service
It provides cloud based solution for building machine learning models. Prep data, train,
test, deploy, manage and track machine learning models
Uses python to build ML models.
Unlike databricks, build databricks on-premises and upload for ML modeling
Models are trained in a cluster
Models can be exported as a Docker image or FPGA (Field Programmable Gate Arrays)
image
Azure Machine Learning studio
SaaS solution
Web bases, drag and drop environment
Uses pre-built ML components, including sample datasets.
Models can be exported to a web service
Azure DevOps:
DevOps (development and operations) is an enterprise software development phrase
used to mean a type of agile relationship between development and IT operations. The
goal of DevOps is to change and improve the relationship by advocating better
communication and collaboration between these two business units.
Azure DevOps provides developer services to support teams to plan work, collaborate
on code development, and build and deploy applications. Developers can work in the
cloud using Azure DevOps Services or on-premises using Azure DevOps Server. Azure
DevOps Server was formerly named Visual Studio Team Foundation Server (TFS).
Azure DevTest Labs enables developers on teams to efficiently self-manage virtual
machines (VMs) and PaaS resources without waiting for approvals.
DevTest Labs creates labs consisting of pre-configured bases or Azure Resource
Manager templates. These have all the necessary tools and software that you can use to
create environments. You can create environments in a few minutes, as opposed to
hours or days.
Multifactor authentication
Something you know- username and password- single factor
Something you have, such as mobile device
Something you are, e.g. Fingerprint
Azure MFA- only available in Azure premium plan
Enabled per user
Azure policy
Define and enforce rules for resource creation, assign and management
Used to enforce governance
Uses policies to define rules.
Policies can be assigned to management groups, subscriptions or resource groups and
are inherited downwards.
Policies can be audited or applied to resource
Various effect-
Audit- if this policy is not complied with, a warning will be logged so that I will be aware
of it.
Append- add additional properties to a resource
AuditIfNotExists – logs a warning if a specific resource type doesn’t already exists.
Deny- denies the create or update operation.
DeployIfnotExists- Automatically deploy a specific resource type if it doesn’t already
exist.
Disabled: a policy is not in effect.
Locks
Prevents changes or deletion of Azure resources
Extra layer of protection
Unlike RBAC, locks applies to all users
Lock type-
ReadOnly - Read (only read but not modify) only and CANNOTDELETE - delete (can
modify restrict from deleting)
Azure Advisor
Best-practices analyzer for Azure resources
Helps ensure high availability, performance, security, and control of cost.
This integrates with azure security center to provide better governance of security
concerns
Azure Blueprints
Just as a blueprint allows an engineer or an architect to sketch a project's design
parameters, Azure Blueprints enables cloud architects and central information
technology groups to define a repeatable set of Azure resources that implements and
adheres to an organization's standards, patterns, and requirements. Azure Blueprints
makes it possible for development teams to rapidly build and stand up new
environments with trust they're building within organizational compliance with a set of
built-in components, such as networking, to speed up development and delivery.
Blueprints are a declarative way to orchestrate the deployment of various resource
templates and other artifacts such as:
Role Assignments
Policy Assignments
Azure Resource Manager templates
Resource Groups
Azure Monitor
Being able to monitor your Azure resources is important
Azure monitor makes it easy to monitor the azure resources
All your metrics for Azure resources at single place
Alerts make it easy to keep people informed
Lesson 13: Understand Privacy, Compliance, and Data Protection Standards in Azure
Microsoft Privacy Statement
It’s about data
Personal data that Microsoft collects and how Microsoft uses it
Reasons why Microsoft share personal data e.g. required by aw
How to access and control your data collected by Microsoft
How Microsoft use cookies
Data that’s shared when you use Microsoft account with 3 rd parties
Specifies about Microsoft’s securing of data, where it’s processed and retention policies
Compliance manager
View and manage compliance
Determine who’s responsible for compliance areas.
Various industry standards-
Azure government
For US Govt. requirements
Only accessible by Microsoft employees who are US citizens and are screened
Completely isolated datacenters and EXPRESSROUTE locations
Also available for city and municipal governments
Portal address- portal.azure.us
A subset of datacenters are compliant with DoD impact level 5 provisional Authorization
Azure Germany
Distinct cloud system designed to meet requirements mandated by European Union
Available for EU customers, the European Free Trade Association and UK customers
Datacenters physically located in Germany
Operated under strict security measures enforced by T-Systems International
Microsoft only involved in managing systems with no access to customers data.
Purchase directly from Microsoft: created on demand, invoiced each month, support
provided by Microsoft, enterprise agreements also available
Purchase from Microsoft Cloud solution partner (CSP): Purchase an entire cloud
solution, work with CSP to manage deployments, support provided by partner
- Pricing calculator
Estimate of expenses
Type of products, where the product is deployed, other factors
- Support Plans
Terminologies
Plans types
- Knowledge center
Website where you can get answers to common questions about Microsoft Azure
products and services.
- Private preview:
No (or reduced) SLA and at reduced cost
For small no of customers- by invitation
Only subset of features
Not for production use
Special portal link
- Public preview:
Open to all users
Usually after fully-functional or close to it
No (or reduced) SLA and at reduced cost
Not for production use
Within azure portal
The End
- RBAC
Roles
Ddd
dddd
Cc
Ss
ff
Ff
Ff
1. Why private cloud and private cloud vs keeping resources in data center
2. Storage- comes under IaaS or PaaS