Editor's note: The following post was written by Cloud and Datacenter Management MVP Timothy Warner as part of our Technical Tuesday series. Daron Yondem of the MVP Award Blog Technical Committee served as the technical reviewer for this piece.
Are you familiar with the shared responsibility model of cloud computing? This model states that Microsoft's responsibility is providing a highly available resource pool for your use, and your responsibility is optimizing and securing the resources you use.
As I'm sure you know, Microsoft Azure represents an enormous variety of cloud capabilities, and caring for them at once taxes even the most Azure -capable teams. In this article I'll introduce you to Azure Advisor, and show how you can apply some of Microsoft's cloud intelligence to your environment.
- Virtual machines
- Availability sets
- Application gateways
- App Services apps
- Azure SQL virtual servers and databases
- Redis Cache
If for no other reason, you should use Advisor because it's free with your subscription. The most important reason, though, is that Advisor helps you save money, meet your service-level agreement (SLA) targets, and certify with your requisite compliance programs. Advisor presents recommendations to you along four axes:
- High availability
Let's dive into the Azure portal and examine Advisor's behavior.
Advisor in Action - High Availability
In the Azure portal, place your cursor in the Search resources global search box, type advisor, and press Enter. Voila! Azure Advisor appears. At first launch, click Get recommendations to register your subscription with Advisor; this is a one-time operation.
Members of the Owner, Contributor, or Reader role-based access control (RBAC) roles can view Advisor recommendations for subscriptions, resource groups, and individual resources. Figure 1 shows you Azure Advisor.
On the Advisor toolbar you can view recommendations from each category, or see them all on one screen. Figure 2 shows the Azure's High Availability recommendations for my subscription:
Advisor in Action - Security
Do you see how practical Advisor is? Next, let's investigate my Security recommendation. As you can see in Figure 4, viewing the Security recommendations (1) and selecting a security recommendation (2) opens the Azure Security Center recommendations list (3). From here you can visit Azure Security Center (4) or apply recommendations directly from Advisor.
See my MVP blog post, "Integrating Azure Security Center into Your Workday," for more details on Azure Security Center. You can also consider the following common Azure Security Center recommendations to get a feel for how the tool can help you:
- Enable endpoint protection
- Apply just-in-time (JIT) VM access
- Customize network security group (NSG) rules
Like Advisor, Azure Security Center also provides detailed remediation guidance for its suggestions. For example, Azure Security Center can initiate an auto-installation of endpoint protection or the Azure VM Agent.
Advisor in Action - Cost
Figure 5 shows my Advisor cost recommendations. Notice how Azure provides a potential savings value for my virtual machine pool - color me interested!
Advisor analyzed my virtual machine runtime patterns and recommended resizing or stopping selected VMs. Doing so may result in cost savings without service degradation. You can see this behavior in action in Figure 6.
In this case, you can see clearly that my vm2 virtual machine has had low CPU utilization over the past week. Therefore, I can save money by resizing that instance, or even scheduling shutdown during off-peak hours.
Advisor in Action - Performance
Azure Advisor performance recommendations center on three Azure resources:
- Azure SQL Database
- App Service
- Redis cache
For Azure SQL Database recommendations, Advisor links to SQL Database Advisor. For Redis cache recommendations, Advisor links to Redis Cache Advisor. For Azure App Service recommendations, Advisor presents suggestions based on Microsoft's own best practice guidelines.
For example, SQL Database Advisor may recommend:
- creating or dropping indexes
- parameterizing Transact-SQL queries
- editing the database schema for better security or performance
The Redis Cache advisor lets you know where cache performance may be negatively affected by high memory usage, network bandwidth, or server utilization.
There you have it! If you haven't done so, please add "check Advisor recommendations" to your weekly or even daily Azure administration workflow. The Advisor toolbar has buttons to create one-click reports in Adobe Acrobat Portable Document Format (PDF) or comma-separated value (CSV) format. Figures 7 and 8 show you examples of these reports.
As usual, I will leave you with resources for further learning. Take good care!
Timothy Warner is a Microsoft Most Valuable Professional (MVP) in Cloud and Datacenter Management who is based in Nashville, TN. His professional specialties include Microsoft Azure, cross-platform PowerShell, and all things Windows Server-related. You can reach Tim via Twitter @TechTrainerTim, LinkedIn or his personal website, techtrainertim.com.