Book Image

Implementing Microsoft Azure Architect Technologies: AZ-303 Exam Prep and Beyond - Second Edition

By : Brett Hargreaves, Sjoukje Zaal
Book Image

Implementing Microsoft Azure Architect Technologies: AZ-303 Exam Prep and Beyond - Second Edition

By: Brett Hargreaves, Sjoukje Zaal

Overview of this book

From designing solutions on Azure to configuring and managing virtual networks, the AZ-303 certification validates your knowledge and skills for all this and much more. Whether you want to take the certification exam or gain hands-on experience in administering, developing, and architecting Azure solutions, this study guide will help you get started. Divided into four modules, this book systematically takes you through the wide range of concepts and features covered in the AZ-303 exam. The first module demonstrates how to implement and monitor infrastructure. You'll develop the skills required to deploy and manage core Azure components such as virtual machines, networking, storage, and Active Directory (AD). As you progress, you'll build on that knowledge and learn how to create resilient and secure applications before moving on to working with web apps, functions, and containers. The final module will get you up to speed with data platforms such as SQL and Cosmos DB, including how to configure the different high availability options. Finally, you'll solve mock tests and assess yourself with the answers provided to get ready to take the exam with confidence. By the end of this book, you'll have learned the concepts and techniques you need to know to prepare for the AZ-303 exam and design effective solutions on Microsoft Azure.
Table of Contents (25 chapters)
1
Section 1: Implement and Monitor Azure Infrastructure
10
Section 2: Implement Management and Security Solutions
14
Section 3: Implement Solutions for Apps
18
Section 4: Implement and Manage Data Platforms
21
Chapter 17: Mock Exam Questions
22
Chapter 18: Mock Exam Answers

Managing costs

Because Azure is a Pay As You Go service, and due to the range and power of the available components, it can be easy to lose sight of costs.

Fortunately, Azure provides several tools to help monitor and alert you on your ongoing and forecast spend:

  1. Navigate to the Azure portal by opening https://portal.azure.com.
  2. In the left-hand menu, select or search for Subscriptions.
  3. Select the subscription you wish to view.

The overview page of a subscription shows you a high-level view of your current spend, broken down by your most costly resources, and a forecast based on currently deployed infrastructure, as shown here:

Figure 1.29 – Example costs dashboard

Figure 1.29 – Example costs dashboard

For a more detailed analysis, you can use the Cost Analysis tools.

Cost Analysis

In the Subscription blade, under Cost Management, click the Cost Analysis left-hand menu option. This view shows a more detailed and customizable set of charts. As shown in the following screenshot, the default view provides a breakdown by Service name, Location, and Resource group name:

Figure 1.30 – Cost analysis details

Figure 1.30 – Cost analysis details

This view can be configured as per your requirements using a mixture of the filtering and selection options in the top menu. You can view costs as charts or text and set timespans or grouping options.

As an example of what can be achieved through this view, we shall create a monthly cost per resource table that can then be exported to CSV:

  1. From the current Costs Analysis View, click the View menu, which by default will be Accumulated costs. The following screenshot shows the available options:
    Figure 1.31 – Example subscription costs

    Figure 1.31 – Example subscription costs

  2. Change the view to Cost by Resource.
  3. Now select the Granularity option and change it from None to Monthly:
    Figure 1.32 – Changing the Granularity to Monthly

    Figure 1.32 – Changing the Granularity to Monthly

  4. From the top menu, click Download, choose your export format, such as CSV, then click Download data.

Now that we have created a monthly cost per resource table, let’s take a look at budgets.

Budgets

Being able to view your current and forecast spend is, of course, important, but even more useful is the ability to alert you when thresholds are met. For this, we can use Budgets:

  1. From the current Subscription blade, click the Budgets option in the left-hand menu.
  2. Click Add on the top menu.
  3. Set the name, for example, MonthlyBudget.
  4. Set a budget amount, for example, 30. The budget amount is specified in your local currency.
  5. Click Next.
  6. Set an alert as an amount of your monthly budget. For example, if you want to be alerted when you have spent 80% of your budget, enter 80.
  7. Assign an action group if you set one up previously.
  8. Enter a recipient email for whoever should be alerted when the budget alert is reached.
  9. Click Create.

Setting budgets doesn’t prevent you from overspending, but it will alert you when your set thresholds are met.

Summary

In this chapter, we covered the Implement and Monitor Azure Infrastructure objective. We covered the various aspects of Azure Monitor and showed how you can use metrics to monitor all of your Azure resources and alerts to get notified when certain things are happening with your Azure resources.

We saw how Log Analytics and created queries so that we can get valuable data out of the logs. We looked at how Network Watcher can help you identify and resolve connectivity problems between devices. We covered how Activity Logs can highlight and notify you of security events. Finally, we also looked at how we can use the cost reporting and alerting features to help control costs.

In the next chapter, we will cover the second part of this exam objective. We will learn how to create and configure storage accounts.