Highway To AZ-204 – Creating Azure App Service Internet Apps
Introduction
This text’s intention is to clarify the primary expertise measured on this sub-topic of the AZ-204 Certification. The principle matter right here is Azure Internet Apps and we’re going by means of creating, deploying, logging, auto-scaling, and configuring Azure Internet Apps. These strategies can have their fundamentals defined right here, alongside a sensible instance.
This certification could be very in depth and this text approaches solely the primary subjects, be sure you know these parts deeply earlier than taking the examination. One other nice tip is doing examination simulators earlier than the official examination so as to validate your information.
What’s the Certification AZ-204 – Growing Options for Microsoft Azure?
The AZ-204 – Growing Options for Microsoft Azure certification measures designing, constructing, testing, and sustaining expertise of an utility and/or service in Microsoft Azure Cloud setting. It approaches, amongst others, the next parts:
- Azure Digital Machines
- Docker
- Azure Containers
- Service Internet App
- Azure Capabilities
- Cosmos DB
- Azure Storage
- Azure AD
- Azure Key Vault
- Azure Managed Identities
- Azure Redis Cache
- Azure Logic App
- Azure Occasion Grid
- Azure Occasion Hub
- Azure Notification Hub
- Azure Service Bus
- Azure Queue Storage
Goal Viewers
Any IT skilled keen to enhance his information in Microsoft Azure is inspired to take this certification, it’s a good way to measure your expertise inside trending applied sciences. However, some teams of execs are keener to take most benefit of it:
- Azure Builders, with at the very least 1 12 months of expertise with Microsoft Azure;
- Skilled Software program Builders, searching for an Architect place in a hybrid setting;
- Software program Builders, working to maneuver purposes to the cloud setting.
Expertise Measured
In line with as we speak’s date, the talents which might be measured within the examination are break up as follows:
- Develop Azure compute options (25-30%)
- Develop for Azure storage (10-15%)
- Develop options that use Cosmos DB storage
- Develop options that use blob storage
- Implement Azure safety (15-20%)
- Implement person authentication and authorization
- Implement safe cloud options
- Monitor, troubleshoot, and optimize Azure options (10-15%)
- Combine caching and content material supply inside options
- Instrument options to assist monitoring and logging
- Hook up with and devour Azure companies and third-party companies (25- 30%)
- Develop an App Service Logic App
- Implement API Administration
- Develop event-based options
- Develop message-based options
Advantages of Getting Licensed
The principle profit right here is having a worldwide acknowledged certification that proves that you’ve information of this matter. Amongst intrinsic and extrinsic advantages, we have now:
- Greater progress potential, as certifications are a giant plus;
- Reductions and offers in Microsoft merchandise and companions, like PluralSight and UpWork;
- MCP Newsletters, with trending applied sciences;
- Greater publicity on LinkedIn, as recruiters normally seek for particular certifications;
- Greater wage, you may be extra precious to your organization;
- Distinctive happiness when getting the end result and also you have been authorized, realizing that every one your efforts have been price it;
Primary expertise Measured by this Subject
What’s an Azure Internet App?
An Azure Internet App is an Azure Service targeted on Internet Functions, chances are you’ll deploy your Internet Functions and Relaxation APIs in .NET, .NET Core, Java, Ruby, Node.js, PHP, or Python in a Home windows or Linux setting paying just for the used sources. Azure Internet Apps are nice if you don’t thoughts concerning the web site infrastructure and your solely concern is to have your Internet App working on-line as a result of Azure affords your many built-in infrastructure options as:
- Safety
- Load Balancing
- Autoscaling
- Automated Administration
- Simple and quick integration with Azure DevOps
SKUs and Sizes
Azure App Service affords several types of Skus so as to attend several types of wants. It has since free shared SKUs to Remoted Service Plans, the place you might have a spread of various sizes. It’s possible you’ll examine the checklist of accessible mixtures of Skus and Sizes beneath, in line with the Digital Machine operational system that hosts your Azure App Service.
Runtime Stack
Azure App Service hosts purposes working in the primary expertise stack, like .NET, .NET Core, Java, Ruby, Node.js, PHP, or Python
Why diagnostics logging?
Diagnostics logging is a crucial a part of any Internet Utility operation, with logs chances are you’ll troubleshoot exceptions, non-exception errors, alerts, warnings, and in addition, observe the person expertise so as to enhance it.
With Azure Diagnostics Logging chances are you’ll log:
- Utility occasions generated by your app;
- Internet Server logging, with a uncooked model of requests made to your app. Solely accessible for the Home windows platform.
- Detailed Error Pages, saving copies of the error pages offered to your person. Solely accessible for the Home windows platform.
- Failed request tracing, with detailed info concerning failed requests. Solely accessible for the Home windows platform.
- Deployment logging, logging detailed details about the deployment course of so as to troubleshoot when a deployment fails.
What’s AutoScale?
Autoscaling is the method of adjusting a server infrastructure functionality so as to fulfill incoming requests out of your internet utility. It normally takes seconds for the modifications to take impact, and may be accomplished routinely in line with pre-configured metrics. It doesn’t want any new deploy or coding.
There are 2 choices for scaling an app:
- Horizontal: whenever you add/take away internet servers out of your load balancer. Instance: rising from 1 Digital Machine to three Digital Machines throughout peak hours.
- Vertical: including/eradicating sources out of your internet servers, reminiscent of CPU, reminiscence, or storage. Instance: enhance your storage capability so as to retailer extra logs.
Configuring Azure Internet App Settings
Your Azure Internet Apps settings may be simply configured by means of Azure CLI or Azure Portal, with the likelihood to edit in bulk by means of the Azure Portal. The principle settings which may be configured on your Azure Internet App are the next:
- SSL, to have a safe and encrypted communication channel
- API Settings, like expertise stack or platform settings
- APP Settings, to override your configs saved on the Internet.Config
- Connection Strings, so as to would not have it written on the Internet.Config
- Default Paperwork, displaying default internet pages when accessing the foundation of your Web site URL
- Path Mappings, configuring settings in line with the person OS
Creating an Azure App Service Internet App
Although Visual Studio
Proper Click on on the Internet Mission and click on on Publish. Then, choose Azure and click on Subsequent.
Choose App Service. Right here we’re going to use the Azure App Service ( Home windows ).

Create a brand new Azure App Service

Choose your App Service Identify, Subscription, Useful resource Group, and Internet hosting Plan. You may also create a brand new Useful resource Group or Internet hosting Plan to host your Azure App Service.

After Azure validates your enter information, choose the not too long ago created Azure App Service, and click on end. A brand new publish profile might be seen and your Azure Internet App is already created.

By Azure Portal
Choose the Internet App Useful resource

Choose your Internet App Settings like Identify, Useful resource Group, Runtime Stack, Working System, Area, and App Service Plan. You may also configure Utility Insights and tags right here after which click on on Evaluation + create.

After Azure runs its validation, click on on Create. After a profitable deployment, go to your not too long ago created useful resource.

For those who examine in your App Service URL, you’ll be able to see that it’s already on-line with Azure Default Empty Template.

Enabling diagnostics logging
Go to your App Service after which, underneath Monitoring, choose App Service logs.

Log recordsdata location
- Linux/container apps: https://<app-name>.scm.azurewebsites.internet/api/logs/docker/zip
- Home windows apps: https://<app-name>.scm.azurewebsites.internet/api/dump
Instance for Home windows apps,
https://netcorecalculator20201013202205.scm.azurewebsites.internet/api/dump
Utility logging
It’s possible you’ll log your recordsdata to a Filesystem or to a Blob. For storing Utility logs in blobs, you want to choose an Azure Storage Account.
It’s a must to choose the extent of logs to be saved and for Utility Logging utilizing Blob, you additionally need to set retention days to purge previous recordsdata so as to clear area.

Internet Server logging
Log into Azure Storage. It is advisable to configure your Azure Storage account that can retailer the logs alongside the logs retention interval.

Log into the File System. It’s a must to choose the quota restrict of logs to be saved and in addition the retention interval.

Detailed Error Logs
It’s enabled right here however you want to configure the logs in your code.

Failed Request Traces
Quite simple to be enabled

Streaming Logs
Go to your App Service after which, underneath Monitoring, choose Log Stream. It’s possible you’ll choose to see Utility logs or Internet Server Logs

Deploying code to an internet app
By Visual Studio
Proper-click on the Internet App Mission and click on on publish, you may be redirected to your Publish Profile. Validate your settings and click on on Publish.

After deploy success, you may be redirected to your new Azure App Service.

Configuring internet app settings together with SSL, API, and connection strings
Configuring your API and APP Settings and your Connection Strings and Utility Maps
Go to your App Service after which to Configuration

Utility Settings, grouped by Key-Worth pairs.

Connection Strings, with title, worth, and database kind.

Common Settings, like expertise stack, platform settings, distant debugging, and consumer certificates.

Default Paperwork, to be displayed within the root of your Web site URL

Path Mappings, to configure your handler mappings and digital purposes/directories.

Configuring SSL
Go to your App Service after which TSL/SSL settings.
Right here you’ll be able to configure your Internet App bindings, import your current certificates, or purchase a brand new certificates.

Azure App Service Scaling
In all sub-topics, right here we’re going to be speaking about horizontal scaling, which implies that we’re going to improve the variety of cases that host our Internet App.
- For horizontal scaling, or scaling out, go to your App Service and underneath Settings choose Scale-out
- For vertical scaling, or scaling up, go to your App Service and underneath Settings choose Scale-up
Scaling Manually
Change the variety of cases and click on on save.

AutoScaling
By Scheduled periodicity, operational and system metrics. Choose Scale based mostly on a metric.

Occasion limits
Have the minimal, most, and default quantity of cases to be working in line with your guidelines. In line with your scaling guidelines your variety of working cases goes to drift from most to minimal, staying within the default if no rule is triggered.
Schedule
It’s possible you’ll schedule your rule to be executed in a selected vary of dates or to be repeated each week on particular weekdays. You may also configure the timezone and vary of time the place your scaling guidelines might be utilized.
Scaling Guidelines

Standards
Right here we outline the factors that need to be met so as to take any scaling motion:
- Time Aggregation defines the vary of time that might be used so as to combination the metrics. For instance, Time Aggregation = “Common” ought to combination the sampled metrics by taking the typical.
- Metric Identify defines the title of the metric used to judge these standards.
- Time Grain Statistics defines the metric sampling kind.
- The operator defines the comparability operator.
- The edge defines the goal worth to set off this scaling criterion.
- Period defines the period of time the dimensions standards will look again.
Motion
Right here we outline the motion that might be executed when the factors are met:
- Operation defines which kind of operation we wish to execute, like rising or lowering the occasion depend.
- Occasion depend defines the variety of cases that might be elevated or decreased.
- Cooldown defines the ready time so as to execute one other motion.
Exterior References
- Highway To AZ-204 – Implementing IaaS options
- Configure an App Service app within the Azure portal