09-PaaS Compute Options Flashcards
Azure App Service Plan
Define set of compute resources for web app to run
Determine performance, price, and features
One or more apps can be configure to run in the same App Service plan
Region where compute resources will be created
# of virtual machine instances
Size of virtual machine instances
Pricing tier
App Service Plan Pricing Tiers
Free
Shared
Basic
Standard
Premium
Isolated
What is Shared Compute
Free and Shared
Run apps on same Azure VM as other App Service apps, and the resources cannot scale out
What is Dedicated Compute
Basic, Standard, Premium
Run apps in the same plan in dedicated Azure VMs
What is Isolated
Runs apps on dedicated Azure VMs in dedicated Azure virtual networks
App Service Plan Scaling
Scale up
Scale out
App Service Plan Scale Out
Adjust available resources based on the current demand
Improve availability and fault tolerance
Scale based on a metric (CPU percentage, memory percentage, HTTP requests)
fill in
Azure App Service
Fully managed environment enabling high productivity development
Platform-as-a-service (PaaS) offering for building and deploying highly available cloud apps for web and mobile
Platform handles infrastructure so developers focus on core web apps and services
Developer productivity using .NET .NET Core, Java, Python and host of others
Provide enterprise-grade security and compliance
Creating an App Service
Name must be unique
Access using azurewebsites.net - can map to a custom domain
Publish code (Runtime Stack)
Publish Docker Container
Linux or Windows
Region closest to your users
App Service Plan
Continuous Deployment
Work in a single source control
Whenever code updates are pushed to source control, then the website or web app will automatically pick up the updates
Continuous deployment workflow publishes the most recent updates from a project
Use portal for continuous deployments from GitHub, Bitbucket, or Azure DevOps
Deployment Slots
Validate code in live environment before publishing it
Can swap from staging from production and vice versa
Creating Deployment Slots
Select whether to clone an app configuration from another deployment slot
When you clone, pay attention to the settings
Not all settings are sticky (endpoints, custom domain names, SSL certificates, scaling)
Review and edit your setting before swapping
Securing an App Service
Authentication
- enable authentication
- log in with 3rd party identity provider
Security
- troubleshoot with diagnostics logs - failed request, app logging
- add an SSL certificate - HTTPS
- define a priority ordered allow/deny list to control network access to the app
- store secrets in the Azure Key Vault
Custom Domain Names
Redirect the default web app URL
Validate the custom domain in Azure
Use the DNS registry for your domain provider
fill in
Backup an App Service
Create app backups manually or on a schedule
Backup the configuration, file content, and database connected to the app
Requires Standard or Premium plan
Backups can be up to 10 GB of app and database content
Configure partial backups and exclude items from the backup
Restore your app on-demand to a previous state, or create a new app