Azure Devops ppt by suraj
Azure Devops ppt by suraj
Availability Are the application available when your user need them Availability Sets and Scale Sets
Scalability Can we handle a growth in users,traffic, or data size VM Size, Scale Sets and Load
without any drop in performance Balancers
Resilience Ability of system to provide acceptable behavior even Scale Sets and Load Balancers
when one or more parts of the system fail
Geo- Distribute applications across regions and zones Scale Sets and Load Balancers
distribution
Disaster How to keep your systems running in face of disasters Site Recovery
Recovery
How can you automatically scale up and scale down VMs ? VM Scale Sets
How can you protect VMs from datacenter failure ? Deploy them to multiple AZs(Scale Sets)
How can you perform disaster recovery for your VMs Site Recovery
How can you reduce costs for your VMs AutoScaling(Elasticity),Reserved & Spot instances,
Right Region - Cost varies region to region
Will two VMs of same size always cost the same ? No. Price changes with time. Price also is different
in different regions.
How can you know who performed a specific action on VM ? Activity Logs (kept for 90 days)
Managed Services
Networking
Microservices
MovieService CostomerService ReviewService BookingService FareCalculationService
Virtual Server2
Serverless
● What do we think about when we develop an application?
❏ Where to deploy? What kind of server? What OS?
❏ How do we take care of scaling and availability of the application?
● What if you don't need to worry about servers and focus on your code?
❏ Enter Serverless
➔ Remember: Serverless does NOT mean "No Servers"
● Serverless for me:
❏ You don't worry about infrastructure (ZERO visibility into infrastructure)
➔ Flexible scaling and automated high availability
❏ Most Important: Pay for use
➔ Ideally ZERO REQUESTS => ZERO COST
● You focus on code and the cloud managed service takes care of all that is needed
to scale your code to serve millions of requests!
❏ And you pay for requests and NOT servers!
Azure Functions
Functions
● You don't worry about servers or scaling or availability
● You only worry about your code
● You pay for what you use
❏ Number of requests
❏ Duration of requests
❏ Memory consumed
● Supports C#, Python, JavaScript, Typescript and Java
Logic Apps
● Serverless orchestration service:
❏ Recommended for orchestrating long-running processes and
workflows
❏ Low-code/no-code solution
➔ Provides web-based designer with easy to use GUI
● Link triggers to actions:
❏ Trigger: An event you want to react to:
➔ When there are more than x number of messages in the queue OR
➔ When you receive a Office 365 Outlook email OR
➔ At regular intervals (schedule)
❏ Action: What do you want to do?
➔ Send an email OR
➔ Send a message on the queue
SaaS (Software as a Service)
● Centrally hosted software (mostly on the cloud)
❏ Offered on a subscription basis (pay-as-you-go)
❏ Examples:
➔ Email, calendaring & office tools (such as Outlook 365, Microsoft Office 365,
Gmail, Google Docs)
➔ Customer relationship management (CRM), enterprise resource planning
(ERP) and document management tools
● Cloud provider is responsible for:
❏ OS (incl. upgrades and patches)
❏ Application Runtime
❏ Auto scaling, Availability & Load balancing etc..
❏ Application code and/or
❏ Application Configuration (How much memory? How many instances?..)
● Customer is responsible for:
❏ Configuring the software!
Microsoft Customer
Shared responsibility model On-
Responsibility SaaS PaaS laaS prem
Information and data
Operating system
Physical hosts
RESPONSIBILITY TRANSFERS
Physical network
TO CLOUD PROVIDER
Physical datacenter
Azure Cloud Service Categories - Scenarios
Scenario Solution
laaS or PaaS or SaaS: Deploy Custom Application in Virtual Machines laaS
laaS or PaaS or SaaS: Using Azure App Service to deploy your app Paas
True or False: Customer is responsible for OS updates when using PaaS False
True or False: Customer is responsible for Availability when using PaaS False
True or False: In PaaS, customer can customize OS and install custom software False
True or False: In PaaS, customer can configure auto scaling needs True
True or False: In PaaS, customer can configure hardware needs (memory, cpu etc) True
rue True or False: PaaS services only offer Compute services False
Review - Azure Services for Compute
Azure Service Name Description
Azure VMs
Windows or Linux VMs (IaaS)
Use VMs when you need control over OS OR you want to run custom software
You handle Availability, Scalability, Load Balancing, Software/OS Updates...
Azure App Service
PaaS. Deploy web apps, mobile back ends and RESTful APIs quickly. Built-in
Auto Scaling, Load Balancing
Azure Container Instances
PaaS (CaaS). Run isolated containers, without orchestration.
You DO NOT need to provision and manage VMs. Start containers in seconds.
Azure Kubernetes Service Azure
PaaS (CaaS). Managed Kubernetes Service. Provides container orchestration.
Service Fabric
PaaS (CaaS). Microsoft's container orchestrator.
Package, deploy, and manage scalable and reliable microservices Run anywhere
on premises and in the cloud
Azure Functions
Serverless (FaaS) compute for event-driven apps
Azure Compute Services - Scenarios
Scenario Solution
You want to run function in response to events Azure Functions
You want to deploy a Python application using a Managed Service Azure App Service
You want to setup a complex microservices architecture in Azure AKS or Service Fabric
Your application needs customized OS and custom Software installed Azure VMs
Storage
Storage Types - Block, File, Objects,....
Virtual Server A
Virtual Server B
Locally redundant storage Three synchronous copies in Least expensive and least
(LRS) same data center availability
99.95% 22 minutes
99.99% (4 9's) 4 and 1/2 minutes Typically online apps aim for
99.99% (4 9's) availability
Relational OLTP Azure SQL Database, Azure Transactional usecases needing predefined
databases Database for MySQL, Azure schema and very strong transactional
Database for PostgreSQL etc. capabilities (Row storage)
Relational OLAP Azure Synapse Analytics Columnar storage with predefined schema.
databases Datawarehousing & BigData workloads
Cache data (from database) for a web application Azure Cache for Redis
Response time NOT Sev C:8 hours Sev C:8 hours, Sev Sev C:8 hours, Sev B:4
SLA APPLICABLE B:4 hours, Sev A: 1 hours, Sev A: 1 hour
hour
Set up alerts for incidents & planned outages for services you are making
Azure Service Health
use of
Azure Monitor
Solve your application related issues
(Application Insights)
Azure Management Service - Scenarios - 2
Scenario Solution
Get suggestions on how to reduce costs of your Azure resources Azure Advisor
Get suggestions on how to improve reliability of your Azure resources Azure Advisor
Get suggestions on how to improve security of your Azure resources Azure Advisor
You want to find out if you are adhering to recommended Azure best practices Azure Advisor
Gather metrics that are tailored for your application Azure Advisor
Azure SLAs and Service
Lifecycle
Azure Service Level Agreement (SLA)
● Service Level Agreements (SLA): "Formal
agreement between service provider and the
service customer (or consumer)"
❏ SLAs for individual Azure services
➔ https://azure.microsoft.com/en-gb/support/
legal/sla/
❏ (REMEMBER) Free Services do NOT have
an SLA
➔ ex: Azure Advisor
● Azure Status
(https://status.azure.com/status): Generic
health of Azure services & regions
● Azure Service Health: Health of Azure
services and regions you're using
Azure Service Level Agreement (SLA) - Remember
● If Azure is unable to meet SLA, you can
request for a "service credit"
● Modern Lifecycle Policy Covers
products and services that are serviced
and supported continuously
❏ Microsoft will provide a minimum of 12
months notification prior to ending
support if no successor product or
service is offered excluding free
services or preview releases
❏ For Security updates: 30 days
notification is give if an action on
customers part is required to prevent
significant degradation
Identify actions that can impact an SLA
● You need to identify the right SLA for your app: 99.9% or 99.99% or..
❏ Enterprises can use Azure SLA to calculate SLAs for their offerings:
➔ If you have a database and VM with SLA's 99% each, combined SLA will be
0.99 * 0.99 = 0.9801 i.e. 98% (More services you need => Lesser SLA)
● How can you improve the SLA of your app?
❏ Do NOT use free tier products as they do NOT offer an SLA
❏ Choose the right product features:
➔ 99.9% - Single Instance VM using Premium SSD or Ultra Disk
➔ 95% - Single Instance VM using Standard HDD Managed Disks
➔ https://azure.microsoft.com/en-us/support/legal/sla/virtual-machines/v1_9/
❏ Deploy to two or more Availability Zones:
➔ 99.99% - VM connectivity to at least one instance when you have two or more
instances deployed across two or more Availability Zones in the same Azure
region
❏ Increase Redundancy: deploy components across multiple regions • Add
redundancy at all layers
Service lifecycle in Azure
● New services (and features) are frequently released
● Releases follow a pre-determined service lifecycle :
❏ Private Preview (OPTIONAL): Released for evaluation of a
subset of customers BUT WITH NO SLAS
❏ Public Preview: Available to all customers BUT WITH NO
SLAS
➔ You can experiment with the services and provide feedback to
Microsoft
➔ NOT recommended for business-critical workloads
★ Use the services or features in production at your own risk!
➔ Azure portal preview features - https://preview.portal.azure.com/
➔ Explore preview services - Create a resource > Search for "preview"
❏ General Availability: Available to all customers with SLAs
➔ Recommended for production use
● Stay Updated with New Features and Services
https://azure.microsoft.com/en-us/updates/?
status=inpreview
Azure governance features
Azure Policy
● How do you ensure that resources stay compliant with your policies?
❏ Create, assign, and manage policies
➔ Automatically ensure that resources stay compliant with defined standards
and SLAs
❏ Manage compliance of resources across multiple subscriptions
❏ Assigned to a management group, a single subscription, or a resource
group
● Initiatives: Group of policies
❏ Azure provides some predefined initiatives:
➔ Azure Security Benchmark, UK OFFICIAL and UK NHS, HIPAA etc
➔ View them under Policy> Authoring > Definitions
● Compliance dashboard: Aggregated view of the overall compliance with
options to drill down to specific resource/policy
● Use cases: Governance for resource consistency, regulatory compliance,
security, cost, and management
Azure POlicy - Example and more..
● Examples:
❏ Only allow creation of VMs of specific sizes
❏ Only allow creation of resources in a specific region
❏ Automatically tag all resources in a resource group with the same tags as that
of the resource group
❏ MFA should be mandatory for certain types of accounts
● Existing non-compliant resources will be marked as non-compliant
❏ But they will continue to work as is
● Policy evaluation is NOT immediate
❏ Approx: once every hour
Azure Blueprints
● Azure Blueprint = One or more of (Policy + Role + ARM template
+ Resource Group) configurations
❏ Different pre-built blueprints available
➔ Australian Government, UK OFFICIAL, Azure Security Benchmark,
Basic Networking, Common Policies (Set of popular policies to apply
to a subscription), FedRAMP, HIPAA etc
● Your architecture team can create blueprints adhering to your
organization's standards, patterns, and requirements
❏ And your teams use the blueprints to create Azure resources
➔ Blueprints can be assigned to individual subscriptions
➔ Blueprints can be used to set up resource groups within
subscriptions
❏ Helps teams to quickly set up environments adhering to
organizational standards
➔ You can even setup an automated CI/CD pipeline
Cloud Adoption Framework for Azure
Resource Locks
● Prevent accidental deletion/modification of resources:
❏ Applicable at multiple levels: subscription, resource group, or
resource
➔ Azure Resource inherits locks from its resource group and subscriptions
❏ Two options: Can Not Delete and ReadOnly
❏ Locked resource should be unlocked before it can be changed (even
by owners)
● Two Options:
❏ ReadOnlyLock Authorized users can read BUT they can't delete or
update the resource
❏ CannotDelete : Authorized users can read and modify BUT they
can't delete the resource
● Example: If a Resource Group has a Delete Lock, then administrator
can first remove DELETE lock before she can delete the resources
● You can have multiple locks at different levels
Privacy and Compliance
Azure - Privacy & Information Protection
Service/Documentation Description
Microsoft Privacy Explains the personal data Microsoft processes, how Microsoft processes it, and for
Statement what purposes.
Product Terms Site Terms and conditions for software and online services products.
Data Protection Your and Microsoft's obligations with respect to the processing and security of
Addendum Customer Data and Personal Data in connection with Azure
Search for DPA at
https://www.microsoftvolumelicensing.com/DocumentSearch.aspx. Covers Data
transfer, Data retention, Data deletion and Data Security
Service Description
Service Trust Portal Independent audit reports for Microsoft's Cloud services
https://servicetrust.microsoft.com
Azure Cloud environment specifically built to meet compliance and security requirements for US
Government government
Examples: FedRAMP (Federal Risk and Authorization Management Program), NIST (National
Institute of Standards and Technology), ITAR (International Traffic in Arms Regulations), IRS
1075 (Internal Revenue Service), DoD (U.S. Department of Defense) L4, and CJIS (Criminal
Justice Information Services)
Uses physically isolated data centers and networks located in US
Only US government entities and contractors are eligible to use Azure Government services
Azure Physically isolated instance of Microsoft Azure in Germany. No longer accepting customers!
Germany
Azure cost management
planning and managing
costs
Consumption-based vs Fixed-price Pricing Models
● Consumption-based - You are billed for only what you use
❏ Example: Azure Functions - You pay for no of invocations!
● Fixed-price- You are billed for instances irrespective of
whether they are used or not
❏ Example: You provision a VM instance
➔ You pay for its lifetime irrespective of whether you use it
or NOT
❏ Example: App Service - You choose App Service plan
(Basic, Standard or Premium plans)
➔ You are billed irrespective of whether you use it or not
Expenditure Models: CapEx vs OpEx
● Capital Expenditure (CapEx): Money spent to buy
infrastructure
❏ Additional cost to maintain infrastructure with time
❏ You might need a team to manage the infrastructure
❏ Example: Deploying your own data center with physical
servers
❏ Example: Purchasing Azure Reserved VM Instances
❏ Example: Leasing Software
● Operational Expenditure (OpEx): Money spent to use a service
or a product
❏ Zero upfront costs
❏ You Pay for services as you use them (Pay-as-you-go model)
❏ Example: Provisioning VMs as you need them
❏ Example: Using Azure Functions and paying for invocations
Total Cost of Ownership (TCO) calculator
● Estimate the cost savings you get by migrating your workloads to Azure
● 1: Define your workloads: Enter the details of your on-premises workloads
❏ Servers, Databases, Storage, Networking details
● 2:Adjust assumptions: Customize Electricity costs, Storage costs, IT labour
costs, Hardware costs, Software costs etc
● 3:View report: Side-by-side comparison of the cost breakdown
Pricing calculator
● Estimate the costs for Azure services
● Example Services that you can estimate costs for:
❏ Virtual Machines
❏ Storage Accounts
❏ Azure SQL Database
❏ App Service
❏ Azure Cosmos DB
❏ Azure Kubernetes Service (AKS)
❏ Azure Functions
● Ideal place to explore and learn important factors about
different Azure services
How is cost decided?
Factor Details
Resource type and How much memory? How much CPU? Which access tier?
configuration
Usage meters How long was your VM running for? How much ingress and How much egress?
How many invocations of an Azure function?
Azure Synapse Provides a unified experience for developing end-to-end analytics solutions Data
Analytics integration + Enterprise data warehousing + Big data analytics Enables MPP
(massively parallel processing)
Run complex queries across petabytes of data
Earlier called Azure SQL Data Warehouse
Azure Machine Quickly build and deploy models programmatically & visually (End-to-end machine
learning learning life cycle)
Supports popular ML languages and frameworks - MLflow, Kubeflow, ONNX, PyTorch,
TensorFlow, Python, R and Jupyter notebooks
Features: Drag-and-drop machine learning & Automated machine learning
Machine Learning Scenarios
Scenario Solutions
Virtual agent that talks with humans like a human Azure Bot Service
Help Data scientists and Al engineers create complex ML models Azure Machine learning
DevOps
DevOps
Azure Portal Web-based user interface. Great to get started BUT NO automation possible. Runs in all
modern desktop and tablet browsers
Azure Mobile App iOS and Android Apps (subset of features). Convenience of managing from anywhere.
Azure PowerShell Execute cmdlets (sequence of commands) and create scripts (PowerShell script)
Recommended for teams familiar with Windows administration Cross-platform (Windows,
Linux, and macOS)
Azure CLI Similar to Azure PowerShell BUT uses a different syntax (Bash Scripts) Recommended
for teams familiar with Linux administration (and Bash Scripts) Cross-platform (Windows,
Linux, and macOS)
Azure Cloud Shell Free Browser based interactive shell (Access from Azure Portal)
Common Azure tools pre-installed and configured to use with your account Supports both
PowerShell and CLI (bash)
Runs in all modern desktop and tablet browsers
Scenario - Azure Portal, PowerShell, CLI….
Solution
No. You can use either Azure Shell or Azure
Can you run PowerShell scripts using Azure CLI?
PowerShell.
Tool for one time testing, management, and administrative Azure PowerShell, Azure CLI, Azure portal or
actions (Ex: create a VM or create a group of resources) Azure mobile app
Azure App Service PaaS. Deploy web apps, mobile back ends and RESTful APIs quickly.
Azure Service Fabric Microsoft's container orchestrator for cloud and on-premises. Package, deploy,
and manage scalable and reliable microservices
Azure Virtual Network Create your own private network in the cloud
Azure Firewall Stateful firewall to protect resources in your Azure Virtual Network
Azure VPN Gateway Encrypt traffic between virtual network & on-premises Traffic goes over Internet
(public)
Azure Content Delivery Cache content on edge servers (POPs) located around the world Minimize
Network latency to global users
Storage
Service Description
Azure Blob storage Store unstructured data - video files, database archives etc.
Azure File storage Create file shares or file servers in the cloud
Azure Table storage Store structure data using NoSQL approach (NON-relational). Schemaless.
Key/attribute
store.
Databases
Service Description