SlideShare a Scribd company logo
1 of 28
AZURE WEBAPP
TRAINING CONTENT
Introduction
Deployment
Deployment Slots
Configuration
Diagnostics Logs
Web jobs
Scaling
Traffic Manager
Challenges
INTRODUCTION
WEB APP
• It is Platform as a service (PAAS) offered by azure. It is part of
appservice.
• It provides ability to developers to have an optimized full life cycle
experience from app design to app maintenance. It provides
following feature:
 Continuous deployment.
 Test in production.
 Running asynchronous tasks.
 Scaling the app.
 Maintaining the app.
DEPLOYMENT
There are various ways of deployment of web application using cloud
app service:
 By using publish mechanism from .net application.
 Using GIT command
 Using FTP
 Using Power shell script.
DEPLOYMENT USING .NET
PLATFORM
We can deploy website using .net application with following steps:
 Create web-app using portal.azure.com.
 Get publish profile page from management portal.
 Open application in .net.
 Right click on web application and use publish option.
 Import publish profile using import option.
 Click publish. It will deploy website on azure.
DEPLOYMENT USING GIT
We can deploy website using GIT with following steps:
 Create web-app using portal.azure.com.
 Configure Deployment option:
 Select choose source as GITHUB.
 Configure Authorization for GIT.
 Select Project and branch for GIT Repository.
 Push code from GIT console to configured Repository and branch
DEPLOYMENT USING GIT
DEPLOYMENT USING GIT
DEPLOYMENT SLOTS
Deployment slots provides more robust deployment workflows than deploying
websites directly to production. We can deploy websites on multiple endpoints to
perform different operations. For ex. We can deploy website on staging platform
before deploying it on production. It is useful in following scenarios:
 Staged deployment: In staged deployment we can deploy to non-production
slot that is acting as staging environment. In this environment we can test
whether website is working or not. If everything is working we can swap the
production slot with staging slot.
Incremental Deployment: If websites needs post deployment incremental
steps. We can deploy to non-production slot, make those changes and then
swap with production slot.
Rolling Back Deployment: If after swapping a non-production slot into
production, you need to rollback the deployment, you can swap the production
slot again with the slot contains the previous production deployment.
DEPLOYMENT SLOTS
Important points:
 All deployment slots for a given site share the same virtual machine instance that is hosting the
production slot.
Since the same VM is used for all slots ,We can’t scale a non-production slot independently of
the production slot. We can only adjust the scale settings of the production slot.
With each deployment slot we can create up to four additional deployment slots that we can
swap with production slot.
When we swap, the site content and certain slot configurations are exchanged with no
downtime.
When we swap deployment slots, some of the configuration settings got moved to destination
slot. E.g. General settings, Connection string, Handler Mappings, Application and sit diagnostic
settings, Monitoring settings.
Some of the configuration items not get moved to destination slot. E.g. Publishing endpoints,
SSL settings, Domain names, Scale settings.
DIAGNOSTICS AND MONITORING
Types of logs
 Event Log : It is similar as windows event log. It is useful to track exceptions which
are missed by application.
Web server Logs: It is a textual having information about all HTTP request.
Detailed Error Message Logs: HTML files generated by the webserver for failed
requests.
Application Diagnostic logs: These text based trace logs are created by web
application code in a manner specific to the platform the application is built in.
For asp.net application, these are crated by invoking the logging methods in
system.diagnostic.trace class.
DIAGNOSTICS AND MONITORING
Location of logs:
Event Log : Logfileseventlog.xml
Web Server Logs: Logfileshttpraw*.log
Detailed Error message Logs : LogfilesDetailedErrorsErrorpage.htm
Application Diagnostic Logs: LogfilesApplication*.txt
DIAGNOSTICS AND MONITORING
The various ways to view logs in Azure:
Retrieve diagnostic data using visual studio
Retrieve diagnostic data using site control manager
Retrieve diagnostic data using FTP
Retrieve diagnostic data using Powershell script.
REMOTE DEBUGGING
We can deploy website using GIT with following steps:
 Create web-app using portal.azure.com.
WEBJOBS
Web job enables to run .net console application within the context of
azure websites. It enables to perform background processing. It can
be scheduled to run on demand, continuously, or on a predefined
schedule with recurrence.
Additionally operations defined within webjobs can be triggered to run
either when webjob runs or when new file is created in blob storage
or message sent to Azure queue.
SCALING
Scaling is the process of allocating resources to match the
performance requirements. It is used to match capacity as per
demand.
There are various ways of scaling. Some of them are as follows:
 By adjusting the number of VM instances serving requests.
 By adjusting the instance size.
 By deploying websites to multiple regions.
SCALING
Adjusting number of instances:
We can scale out (increase) the number of instances to support load in
business hours and scale in (decrease) the number of instances during
less busy hours to save cost. We can do scale in or scale out
automatically or manually. There are two ways for auto scaling websites:
 Autoscaling by scheduling.
Autoscaling by metric.
SCALING
Autoscaling by scheduling:
 Autoscaling can be enabled by using scale out or scale in options provided in appservice.
 We have to create rule in which we can define condition for scaling and we can schedule it for dialy,
monthy or weekly.
SCALING
SCALING
Autoscaling based on metric:
We can automatically adjust the number of instances provided to your
web hosting plan based on one or more configured rules, where each rule
has a condition, metric and an action to take in response to threshold
being exceeded. Some of the performance metric are as follows:
 Cpu percentage : Percent of cpu utilization.
 Memory percentage : Percent of memory utilization.
 Disk Queue length: Count of pending disk operations.
 Http Queue length : Count of pending HTTP operations.
 Data in : Amount of traffic ingress in kilobytes.
 Data out : Amount of traffic egress in kilobytes.
SCALING
Create rule for autoscaling based on metric:
Rule can be configured by defining various parameters. One of the example for rule is as
follows:
 Metric : cpu percentage
 Threshold : Greater than 80 percent
 Over past : 20 minutes
 Scale Up By: 1 instance
 Cool down : 20 minutes.
After implementing this rule the instance will be increased when cpu utilization in greater than
80 percent. However, the cpu utilization remains at 80 percent for next five minutes even with
the additional instance helping to reduce cpu load. Autoscale will not trigger again for another
15 minutes because it is within cool down period
SCALING
SCALING USING TRAFFIC
MANAGER
 Traffic manager provides ability to control the distribution of user traffic for service
endpoints in different datacenters.
 Traffic manager can also be used with external and non-azure endpoints.
 Traffic manager use the domain name system (DNS) to direct client requests to most
appropriate endpoint based on traffic routing method and health of endpoints.
 To implement traffic manager CNAME is used to point domain name to traffic manager
domain name.
 When a client, such as browser, first tries to browse to www.testurl.com, it does domain
lookup and ultimately leads to traffic manager. Traffic manager evaluates endpoint based
on rules and route request to appropriate endpoint.
 For a period of time the ip address which is resolved by traffic manager is cached. So that
there is no need of evaluation of endpoint by traffic manager for subsequent request. This
period of time is known as TTL (Time to live)
SCALING USING TRAFFIC
MANAGER
Traffic manager Load balancing methods:
 Failover: When a DNS query comes from a client, Traffic manager picks the first endpoint
from the ordered list of endpoints that is determines is healthy based on periodic
monitoring of the endpoints.
 Round Robin : Traffic manager treats each active endpoint in the list of endpoints equally
and tries to evenly distribute traffic among the endpoints in round-robin manner.
 Performance : Traffic manager picks the closet endpoint from the configured list of
endpoints that should have the lowest latency for the client.
SCALING USING TRAFFIC
MANAGER
SCALING USING TRAFFIC
MANAGER
THANK YOU

More Related Content

What's hot

Introduction to Microsoft Azure
Introduction to Microsoft AzureIntroduction to Microsoft Azure
Introduction to Microsoft AzureSayed Erfan Arefin
 
05 Azure overview Using cloud principles v.2.0
05 Azure overview Using cloud principles v.2.005 Azure overview Using cloud principles v.2.0
05 Azure overview Using cloud principles v.2.0Herman Keijzer
 
Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...
Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...
Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...Olimpia Oancea
 
Building microservices on azure
Building microservices on azureBuilding microservices on azure
Building microservices on azureVaibhav Gujral
 
Azure Web App services
Azure Web App servicesAzure Web App services
Azure Web App servicesAlexey Bokov
 
Migrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft AzureMigrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft AzureChris Dufour
 
Cloud computing and the Windows Azure Services Platform (KU Leuven)
Cloud computing and the Windows Azure Services Platform (KU Leuven)Cloud computing and the Windows Azure Services Platform (KU Leuven)
Cloud computing and the Windows Azure Services Platform (KU Leuven)Maarten Balliauw
 
Azure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud PlatformsAzure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud PlatformsWinWire Technologies Inc
 
Going serverless with azure functions
Going serverless with azure functionsGoing serverless with azure functions
Going serverless with azure functionsgjuljo
 
Microsoft azure platforms
Microsoft azure platformsMicrosoft azure platforms
Microsoft azure platformsMotty Ben Atia
 
London .NET Developers Azure Camp Keynote
London .NET Developers Azure Camp KeynoteLondon .NET Developers Azure Camp Keynote
London .NET Developers Azure Camp KeynoteTom Walker
 
Azure News Slides for October2017 - Azure Nights User Group
Azure News Slides for October2017 - Azure Nights User GroupAzure News Slides for October2017 - Azure Nights User Group
Azure News Slides for October2017 - Azure Nights User GroupMichael Frank
 
Microsoft Azure cloud services
Microsoft Azure cloud servicesMicrosoft Azure cloud services
Microsoft Azure cloud servicesNajeeb Khan
 
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan WongWindows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan WongSpiffy
 
Análisis de riesgos en Azure y protección de la información
Análisis de riesgos en Azure y protección de la informaciónAnálisis de riesgos en Azure y protección de la información
Análisis de riesgos en Azure y protección de la informaciónPlain Concepts
 

What's hot (20)

Introduction to Microsoft Azure
Introduction to Microsoft AzureIntroduction to Microsoft Azure
Introduction to Microsoft Azure
 
05 Azure overview Using cloud principles v.2.0
05 Azure overview Using cloud principles v.2.005 Azure overview Using cloud principles v.2.0
05 Azure overview Using cloud principles v.2.0
 
Azure Messaging Services #1
Azure Messaging Services #1Azure Messaging Services #1
Azure Messaging Services #1
 
Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...
Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...
Going to the cloud with Microsoft and ITAdviser_Windows Azure overview for IT...
 
Building microservices on azure
Building microservices on azureBuilding microservices on azure
Building microservices on azure
 
Azure Web App services
Azure Web App servicesAzure Web App services
Azure Web App services
 
Azure Messaging Services 2
Azure Messaging Services 2Azure Messaging Services 2
Azure Messaging Services 2
 
Azure Big Picture
Azure Big PictureAzure Big Picture
Azure Big Picture
 
Migrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft AzureMigrate an Existing Application to Microsoft Azure
Migrate an Existing Application to Microsoft Azure
 
Microsoft Azure
Microsoft AzureMicrosoft Azure
Microsoft Azure
 
Cloud computing and the Windows Azure Services Platform (KU Leuven)
Cloud computing and the Windows Azure Services Platform (KU Leuven)Cloud computing and the Windows Azure Services Platform (KU Leuven)
Cloud computing and the Windows Azure Services Platform (KU Leuven)
 
Cloud Fundamental
Cloud FundamentalCloud Fundamental
Cloud Fundamental
 
Azure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud PlatformsAzure Arc - Managing Hybrid and Multi-Cloud Platforms
Azure Arc - Managing Hybrid and Multi-Cloud Platforms
 
Going serverless with azure functions
Going serverless with azure functionsGoing serverless with azure functions
Going serverless with azure functions
 
Microsoft azure platforms
Microsoft azure platformsMicrosoft azure platforms
Microsoft azure platforms
 
London .NET Developers Azure Camp Keynote
London .NET Developers Azure Camp KeynoteLondon .NET Developers Azure Camp Keynote
London .NET Developers Azure Camp Keynote
 
Azure News Slides for October2017 - Azure Nights User Group
Azure News Slides for October2017 - Azure Nights User GroupAzure News Slides for October2017 - Azure Nights User Group
Azure News Slides for October2017 - Azure Nights User Group
 
Microsoft Azure cloud services
Microsoft Azure cloud servicesMicrosoft Azure cloud services
Microsoft Azure cloud services
 
Windows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan WongWindows Azure Platform + PHP - Jonathan Wong
Windows Azure Platform + PHP - Jonathan Wong
 
Análisis de riesgos en Azure y protección de la información
Análisis de riesgos en Azure y protección de la informaciónAnálisis de riesgos en Azure y protección de la información
Análisis de riesgos en Azure y protección de la información
 

Similar to Azure appservice

Azure Cloud Application Development Workshop - UGIdotNET
Azure Cloud Application Development Workshop - UGIdotNETAzure Cloud Application Development Workshop - UGIdotNET
Azure Cloud Application Development Workshop - UGIdotNETLorenzo Barbieri
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1Sun Technlogies
 
VPMS-PPT-wgubsa.pptx
VPMS-PPT-wgubsa.pptxVPMS-PPT-wgubsa.pptx
VPMS-PPT-wgubsa.pptxMadanNR
 
Why NBC Universal Migrated to MongoDB Atlas
Why NBC Universal Migrated to MongoDB AtlasWhy NBC Universal Migrated to MongoDB Atlas
Why NBC Universal Migrated to MongoDB AtlasDatavail
 
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...IBM Systems UKI
 
Delivering High Performance Ecommerce with Magento Commerce Cloud
Delivering High Performance Ecommerce with Magento Commerce CloudDelivering High Performance Ecommerce with Magento Commerce Cloud
Delivering High Performance Ecommerce with Magento Commerce CloudGuncha Pental
 
Session on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log managementSession on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log managementpqrs1234
 
Quick guide to plan and execute a load test
Quick guide to plan and execute a load testQuick guide to plan and execute a load test
Quick guide to plan and execute a load testduke.kalra
 
Loadrunner interview questions and answers
Loadrunner interview questions and answersLoadrunner interview questions and answers
Loadrunner interview questions and answersGaruda Trainings
 
Azure Monitoring Overview
Azure Monitoring OverviewAzure Monitoring Overview
Azure Monitoring Overviewgjuljo
 
Google cloud certified professional cloud developer practice dumps 2020
Google cloud certified professional cloud developer practice dumps 2020Google cloud certified professional cloud developer practice dumps 2020
Google cloud certified professional cloud developer practice dumps 2020SkillCertProExams
 
JOB PORTALProject SummaryTitle JOB-PORT.docx
JOB PORTALProject SummaryTitle    JOB-PORT.docxJOB PORTALProject SummaryTitle    JOB-PORT.docx
JOB PORTALProject SummaryTitle JOB-PORT.docxchristiandean12115
 
Modernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectModernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectDevOps.com
 
Create Agile, Automated and Predictable IT Infrastructure in the Cloud
Create Agile, Automated and Predictable IT Infrastructure in the CloudCreate Agile, Automated and Predictable IT Infrastructure in the Cloud
Create Agile, Automated and Predictable IT Infrastructure in the CloudRightScale
 
Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Hima Bindu Kosuru
 
shivkumar pathak web based manufacturing presentation
shivkumar pathak   web based manufacturing presentationshivkumar pathak   web based manufacturing presentation
shivkumar pathak web based manufacturing presentationAkash Maurya
 

Similar to Azure appservice (20)

Azure Cloud Application Development Workshop - UGIdotNET
Azure Cloud Application Development Workshop - UGIdotNETAzure Cloud Application Development Workshop - UGIdotNET
Azure Cloud Application Development Workshop - UGIdotNET
 
Unit 5.pptx
Unit 5.pptxUnit 5.pptx
Unit 5.pptx
 
Silk Performer Presentation v1
Silk Performer Presentation v1Silk Performer Presentation v1
Silk Performer Presentation v1
 
VPMS-PPT-wgubsa.pptx
VPMS-PPT-wgubsa.pptxVPMS-PPT-wgubsa.pptx
VPMS-PPT-wgubsa.pptx
 
Why NBC Universal Migrated to MongoDB Atlas
Why NBC Universal Migrated to MongoDB AtlasWhy NBC Universal Migrated to MongoDB Atlas
Why NBC Universal Migrated to MongoDB Atlas
 
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
Pure Systems Patterns of Expertise - John Kaemmerer and Gerry Kovan, 11th Sep...
 
Delivering High Performance Ecommerce with Magento Commerce Cloud
Delivering High Performance Ecommerce with Magento Commerce CloudDelivering High Performance Ecommerce with Magento Commerce Cloud
Delivering High Performance Ecommerce with Magento Commerce Cloud
 
Session on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log managementSession on API auto scaling, monitoring and Log management
Session on API auto scaling, monitoring and Log management
 
28791456 web-testing
28791456 web-testing28791456 web-testing
28791456 web-testing
 
Quick guide to plan and execute a load test
Quick guide to plan and execute a load testQuick guide to plan and execute a load test
Quick guide to plan and execute a load test
 
Loadrunner interview questions and answers
Loadrunner interview questions and answersLoadrunner interview questions and answers
Loadrunner interview questions and answers
 
Azure Monitoring Overview
Azure Monitoring OverviewAzure Monitoring Overview
Azure Monitoring Overview
 
Google cloud certified professional cloud developer practice dumps 2020
Google cloud certified professional cloud developer practice dumps 2020Google cloud certified professional cloud developer practice dumps 2020
Google cloud certified professional cloud developer practice dumps 2020
 
JOB PORTALProject SummaryTitle JOB-PORT.docx
JOB PORTALProject SummaryTitle    JOB-PORT.docxJOB PORTALProject SummaryTitle    JOB-PORT.docx
JOB PORTALProject SummaryTitle JOB-PORT.docx
 
LoadTracer
LoadTracer LoadTracer
LoadTracer
 
Modernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-ArchitectModernizing Testing as Apps Re-Architect
Modernizing Testing as Apps Re-Architect
 
Create Agile, Automated and Predictable IT Infrastructure in the Cloud
Create Agile, Automated and Predictable IT Infrastructure in the CloudCreate Agile, Automated and Predictable IT Infrastructure in the Cloud
Create Agile, Automated and Predictable IT Infrastructure in the Cloud
 
Spirent CloudScore
Spirent CloudScoreSpirent CloudScore
Spirent CloudScore
 
Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter Software Testing includes Performance testing with Load Runner and the JMeter
Software Testing includes Performance testing with Load Runner and the JMeter
 
shivkumar pathak web based manufacturing presentation
shivkumar pathak   web based manufacturing presentationshivkumar pathak   web based manufacturing presentation
shivkumar pathak web based manufacturing presentation
 

Recently uploaded

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Recently uploaded (20)

Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

Azure appservice

  • 4. WEB APP • It is Platform as a service (PAAS) offered by azure. It is part of appservice. • It provides ability to developers to have an optimized full life cycle experience from app design to app maintenance. It provides following feature:  Continuous deployment.  Test in production.  Running asynchronous tasks.  Scaling the app.  Maintaining the app.
  • 5. DEPLOYMENT There are various ways of deployment of web application using cloud app service:  By using publish mechanism from .net application.  Using GIT command  Using FTP  Using Power shell script.
  • 6. DEPLOYMENT USING .NET PLATFORM We can deploy website using .net application with following steps:  Create web-app using portal.azure.com.  Get publish profile page from management portal.  Open application in .net.  Right click on web application and use publish option.  Import publish profile using import option.  Click publish. It will deploy website on azure.
  • 7. DEPLOYMENT USING GIT We can deploy website using GIT with following steps:  Create web-app using portal.azure.com.  Configure Deployment option:  Select choose source as GITHUB.  Configure Authorization for GIT.  Select Project and branch for GIT Repository.  Push code from GIT console to configured Repository and branch
  • 10. DEPLOYMENT SLOTS Deployment slots provides more robust deployment workflows than deploying websites directly to production. We can deploy websites on multiple endpoints to perform different operations. For ex. We can deploy website on staging platform before deploying it on production. It is useful in following scenarios:  Staged deployment: In staged deployment we can deploy to non-production slot that is acting as staging environment. In this environment we can test whether website is working or not. If everything is working we can swap the production slot with staging slot. Incremental Deployment: If websites needs post deployment incremental steps. We can deploy to non-production slot, make those changes and then swap with production slot. Rolling Back Deployment: If after swapping a non-production slot into production, you need to rollback the deployment, you can swap the production slot again with the slot contains the previous production deployment.
  • 11. DEPLOYMENT SLOTS Important points:  All deployment slots for a given site share the same virtual machine instance that is hosting the production slot. Since the same VM is used for all slots ,We can’t scale a non-production slot independently of the production slot. We can only adjust the scale settings of the production slot. With each deployment slot we can create up to four additional deployment slots that we can swap with production slot. When we swap, the site content and certain slot configurations are exchanged with no downtime. When we swap deployment slots, some of the configuration settings got moved to destination slot. E.g. General settings, Connection string, Handler Mappings, Application and sit diagnostic settings, Monitoring settings. Some of the configuration items not get moved to destination slot. E.g. Publishing endpoints, SSL settings, Domain names, Scale settings.
  • 12. DIAGNOSTICS AND MONITORING Types of logs  Event Log : It is similar as windows event log. It is useful to track exceptions which are missed by application. Web server Logs: It is a textual having information about all HTTP request. Detailed Error Message Logs: HTML files generated by the webserver for failed requests. Application Diagnostic logs: These text based trace logs are created by web application code in a manner specific to the platform the application is built in. For asp.net application, these are crated by invoking the logging methods in system.diagnostic.trace class.
  • 13. DIAGNOSTICS AND MONITORING Location of logs: Event Log : Logfileseventlog.xml Web Server Logs: Logfileshttpraw*.log Detailed Error message Logs : LogfilesDetailedErrorsErrorpage.htm Application Diagnostic Logs: LogfilesApplication*.txt
  • 14. DIAGNOSTICS AND MONITORING The various ways to view logs in Azure: Retrieve diagnostic data using visual studio Retrieve diagnostic data using site control manager Retrieve diagnostic data using FTP Retrieve diagnostic data using Powershell script.
  • 15. REMOTE DEBUGGING We can deploy website using GIT with following steps:  Create web-app using portal.azure.com.
  • 16. WEBJOBS Web job enables to run .net console application within the context of azure websites. It enables to perform background processing. It can be scheduled to run on demand, continuously, or on a predefined schedule with recurrence. Additionally operations defined within webjobs can be triggered to run either when webjob runs or when new file is created in blob storage or message sent to Azure queue.
  • 17. SCALING Scaling is the process of allocating resources to match the performance requirements. It is used to match capacity as per demand. There are various ways of scaling. Some of them are as follows:  By adjusting the number of VM instances serving requests.  By adjusting the instance size.  By deploying websites to multiple regions.
  • 18. SCALING Adjusting number of instances: We can scale out (increase) the number of instances to support load in business hours and scale in (decrease) the number of instances during less busy hours to save cost. We can do scale in or scale out automatically or manually. There are two ways for auto scaling websites:  Autoscaling by scheduling. Autoscaling by metric.
  • 19. SCALING Autoscaling by scheduling:  Autoscaling can be enabled by using scale out or scale in options provided in appservice.  We have to create rule in which we can define condition for scaling and we can schedule it for dialy, monthy or weekly.
  • 21. SCALING Autoscaling based on metric: We can automatically adjust the number of instances provided to your web hosting plan based on one or more configured rules, where each rule has a condition, metric and an action to take in response to threshold being exceeded. Some of the performance metric are as follows:  Cpu percentage : Percent of cpu utilization.  Memory percentage : Percent of memory utilization.  Disk Queue length: Count of pending disk operations.  Http Queue length : Count of pending HTTP operations.  Data in : Amount of traffic ingress in kilobytes.  Data out : Amount of traffic egress in kilobytes.
  • 22. SCALING Create rule for autoscaling based on metric: Rule can be configured by defining various parameters. One of the example for rule is as follows:  Metric : cpu percentage  Threshold : Greater than 80 percent  Over past : 20 minutes  Scale Up By: 1 instance  Cool down : 20 minutes. After implementing this rule the instance will be increased when cpu utilization in greater than 80 percent. However, the cpu utilization remains at 80 percent for next five minutes even with the additional instance helping to reduce cpu load. Autoscale will not trigger again for another 15 minutes because it is within cool down period
  • 24. SCALING USING TRAFFIC MANAGER  Traffic manager provides ability to control the distribution of user traffic for service endpoints in different datacenters.  Traffic manager can also be used with external and non-azure endpoints.  Traffic manager use the domain name system (DNS) to direct client requests to most appropriate endpoint based on traffic routing method and health of endpoints.  To implement traffic manager CNAME is used to point domain name to traffic manager domain name.  When a client, such as browser, first tries to browse to www.testurl.com, it does domain lookup and ultimately leads to traffic manager. Traffic manager evaluates endpoint based on rules and route request to appropriate endpoint.  For a period of time the ip address which is resolved by traffic manager is cached. So that there is no need of evaluation of endpoint by traffic manager for subsequent request. This period of time is known as TTL (Time to live)
  • 25. SCALING USING TRAFFIC MANAGER Traffic manager Load balancing methods:  Failover: When a DNS query comes from a client, Traffic manager picks the first endpoint from the ordered list of endpoints that is determines is healthy based on periodic monitoring of the endpoints.  Round Robin : Traffic manager treats each active endpoint in the list of endpoints equally and tries to evenly distribute traffic among the endpoints in round-robin manner.  Performance : Traffic manager picks the closet endpoint from the configured list of endpoints that should have the lowest latency for the client.