Develop Azure compute solutions Flashcards
What is Azure App Service?
An HTTP-based service for hosting web applications, REST APIs, and mobile back ends.
What are the two built in auto scale support for web apps? Which is preferred?
Scale up / down refers to scaling hardware. Cores, and memory. Scaling out refers to adding more machines to the process.
Azure Apps support scale out / in.
How can you deploy an app with Azure Web apps?
Through integration with Azure DevOps, GitHub, Bitbucket, or even a local repository.
What are Deployment slots?
Allow for deploying code without having to shut down production, being able to swap to the new code and back if needed.
Must be Standard, Premium, or Isolated tier
What pricing tiers are there for web apps?
Shared, Free, Standard, Premium, PremiumV2, PremiumV3, Isolated
Consumption for function apps.
How would you deploy an app to Azure with the Azure CLI?
az webapp up - app name –resource-group azResourceGroup
Types of authentication available to web apps?
You can use built in in your code, but there are a number of identity providers: /.auth/login/aad - Azure Active Director /.auth/login/facebook /.auth/login/google /.auth/login/twitter /.aut/login/ - OpenID Connect
What are the ways you can control authorization in azure web apps?
Allow unauthenticated requests - Allows the passing of http headers, providing flexibility in handling anonymous requests.
Require authentication - reject any unauthenticated traffic to your application.
What is multitenant public service?
This allows for apps to be accessible on internet-hosted endpoints. Available on all service plans, except for isolated in which there is single tenant sign in.
To find in azure properties: possibleOutboundAddresses
Or in azure cli: az webapp show \ --resource-group \ --name \ --query outboundIpAddresses \ --output tsv
Where are applications settings found in webapps?
In ASP.NET it’s either WEb.config or appsettings.json
This can house things such as connection strings.
How can you configure path mappings?
In windows you can add a “new handler” - this allows for file extension, script processor, and arguments.
Linux and containerized apps can also be configured with an azure Storage mount.
What type of logging can you have from app services?
Application logging - app service file system and / or azure storage blobs
Web server logging - App service system or Azure storage blobs
Detailed error logging - App service File
Failed request tracing - App service file
Deployment logging - App service file
How can you view log streams in Azure CLI?
az webapp log tail –name appname –resource-group myResourceGroup
How can you configure security certificates in azure app service?
- Create a free app service managed certificate
- Must be basic, standard, premium, or isolated tier
- Purchase an App service certificate
- Import a certificate from Key Vault
- Upload a private certificate
- Upload a public certificate
What is a feature flag?
A binary state of on or off that you can use in code to tell which operation should happen, as an environment variable from the azure app service.
Feature manager helps to support feature flags. Managed in appsettings.json