Schedules
  • 21 Jan 2025
  • 7 Minutes to read
  • Dark
    Light
  • PDF

Schedules

  • Dark
    Light
  • PDF

Article summary

Introduction

The main goal of Cost Analyzer is to provide an effective cost management service that helps users minimize the Azure subscription cost based on resource utilization.

The first step towards cost management is to allow users to optimize the resource cost by scheduling them to deallocate/scale down based on the up and down hours of the business.

Schedules in Cost Analyzer is a feature that enables users to create optimization schedules with resources associated by defining the tiers, throughput values, and the resource state with respect to the Up and Down hours of a Week/Month.

Additionally, it allows users to set up recurrence, enabling the optimization schedule to run automatically at regular intervals.

Savings from scheduled resources.PNG

Supported resource types

Cost Optimization supports the following resource types:

1. App Service Plan

  • An app service plan's pricing tier can be scheduled to run at a higher tier during Up hours and a lower tier during Down hours.

  • The Up and Down config values determine the tiers that should be set to the resources in the Up and Down hours, respectively.

Appserviceplan1.PNG

2. Cosmos SQL Container

  • The throughput value of a Cosmos SQL Container can be scheduled to run at a higher value during Up hours and a lower value during Down hours.

  • The Up and Down config values determine the throughput values that should be set to the resources in the Up and Down hours, respectively.

CosmosSQLcontainer.PNG

3. Cosmos SQL Database

  • The throughput value of a Cosmos SQL Database can be scheduled to run at a higher value during Up hours and a lower value during Down hours.

  • The Up and Down config values determine the throughput values that should be set to the resources in the Up and Down hours, respectively.

CosmosSQLdatabase 1.PNG

4. Cosmos Table

  • The throughput value of a Cosmos Table can be scheduled to run at a higher value during Up hours and a lower value during Down hours.

  • The Up and Down config values determine the throughput values that should be set to the resources in the Up and Down hours, respectively.

cosmosSQLtable.PNG

5. Data Factory Pipelines

  • Pipeline triggers can be scheduled to start in Up hours and stop in Down hours.

datafactorypipeline1.PNG

6. Logic Apps

  • Logic Apps can be scheduled to run in the Up hours and stopped in the Down hours.

logicapp1.PNG

7. SQL Database

  • The pricing tier of an SQL DB can be scheduled to run at a higher tier during Up hours and a lower tier during Down hours.

  • The Up and Down config determines the pricing tier that should be set to the resources in the Up and Down hours, respectively.

SQLdb1.PNG

  • The DTU count and Data max size can be customized for the DTU-based purchasing model. In contrast, the hardware configuration for Vcore-based purchasing models can be customized.

SQLdb2.PNG

8. SQL Elastic Pool

  • The pricing tier of an SQL Elastic pool can be scheduled to run at higher tier during Up hours and a lower tier during Down hours.

  • The Up and Down config determines the pricing tier that should be set to the resources in the Up and Down hours, respectively.

SQLelasticpool1.PNG

  • The DTU count and Data max size can be customized for the DTU-based purchasing model. In contrast, the hardware configuration for Vcore-based purchasing models can be customized.

SQLelasticpool2.PNG

9. SQL Managed Instances

  • The Up and Down config of an SQL Managed Instance can be scheduled to run at a higher tier during Up hours and a lower tier during Down hours (or) initiate a startup/shutdown.

SQLmanagedinstance1.PNG

  • The Up and Down config determines the pricing tier that should be set to the resources in the Up and Down hours, respectively.

  • The Vcore, Data max size, and Hardware configuration can be customized based on the Service tier.

SQLmanagedinstance2.PNG

10. Synapse Pipelines

  • Pipeline triggers can be scheduled to start in Up hours and stop in Down hours.
    synapsepipeline1.PNG

11. Virtual Machine

  • The Up and Down hours can be scheduled to upgrade/downgrade the virtual machine service tier (or) initiate startup/shutdown.

VirtualMachine2.PNG

12. Virtual Machine Scale Set

  • The Up and Down hours can be scheduled to upgrade/downgrade the service tier of virtual machine scalesets (or) initiate startup/shutdown.

Virtualmachinescaleset1.PNG

Note:
  • The Optimization schedule runs only once every hour, irrespective of the Up, Down, and Skip hours specified, and performs the necessary action.
  • The Optimization schedule run history data will be available only when the previous state and the next state are different.

Schedule recommendations

  • Cost Analyzer offers schedule recommendations by analyzing resource usage patterns within the cost management group. It suggests users to create schedules with predefined up and down hours to achieve significant savings by shutting down or resizing the resources during non-active periods.

  • Schedule recommendations summary can be accessed by navigating to Optimization -> Schedules within a cost management group.

Schedulerecommendation2.png

How to setup recommendations?

Follow the below steps to receive schedule recommendations for a Cost Management group:

  1. Go to Recommendation settings and enable the Schedule Recommendations toggle in General Settings.
  2. Define values for currency, frequency, timezone, and minimum no. of continuous up and down hours to receive customized recommendations.

RecommendationSetting2.PNG

  1. Configure metrics and threshold values defining the downtime of the resources within this Cost management group.

Thresholdmetrics1.PNG

  1. Click Apply.

Clicking the View recommendations option in the Schedule summary allows you to view recommended resources for scheduling. The widget provides a list of all possible schedules that can be created for the associated resources in the Cost Management group.

View recommended resources.png

Resources eligible for savings are recommended with pre-defined up and down hours, determined by analyzing the usage patterns of the resource’s default metrics.

Clicking on the resource name displays the cost details, along with potential savings, recommendations to scale down to a smaller size or shut down during off-peak hours, and suggested scheduling hours. This helps reduce resource costs during periods of inactivity.

It also shows when the recommended resource has a rightsizing recommendation.

ResourceDetails1.png

Ignore recommendations

Recommendations can be disregarded if you prefer to use the resource with its existing SKU. This can be done by selecting the recommendations and clicking Actions -> Ignore to ignore them.

The ignore action offers two options: either completely ignoring the resource from recommendations or ignoring it until a specified date range.
ignoringschedulerecommendation.gif

The ignored ones are accessible in Actions -> View ignored recommendations.

Recommendation notification

Scheduled recommendations can be notified as a recommendation report, allowing a specific team (or) team member to prioritize actions for a particular resource.

  1. Select a Schedule recommendation.
  2. Click Actions -> Trigger notifications

Triggernotification1.png

  1. Choose the desired channels (or) configure recipient mail address
  2. Click Send
    Triggernotification2.PNG

The recommendation data will be sent as a report to the configured channels.

Notification can only be initiated for one recommendation at a time.

A bell icon will appear next to any recommendation for which a notification has been triggered. Clicking the icon will reveal the notification details.

bellicon1.png

The View Logs button, accessible when viewing a recommendation with an active notification, will also display the details of that notification.

Viewlogs1.png

Below is an image of recommendation report received via mail after triggering it for a schedule recommendation:

RecommendationReport1.PNG

Export Schedule recommendations

Schedule recommendations can be downloaded as an excel workbook.

  1. Click Actions -> Download as excel option to export the schedule recommendations in an excel worksheet.

Downloaded excel file contains the basic details of the resources and its recommendation.

ExportScheduleRecommendation.png

Create schedules based on recommendations

  1. Click on the name of the recommended resource in the schedule recommendations blade
  2. Click the Add to schedule option in the recommendation details blade.
  3. Provide basic schedule details and click Next.
  4. The scheduling hours configuration is defined based on recommendation and can be adjusted. Additionally, recurrence can be set to run the schedule at regular intervals.
  5. Only the resource recommended for the schedule will be available to configure in the Resource Selection screen.
  6. Choose the desired notification channels and create the schedule.

The illustration shown below depicts creating a schedule based on recommendation:

Create schedule from recommendation4.gif

Recommendation Settings

The recommendation settings are split into two categories: General and Resources.

General

The following settings are required to be configured to receive recommendations based on user preferences:

i) The currency in which the recommendation details are displayed.

ii) The time zone for processing the schedule.

ii) The evaluation period for analyzing resource usage, which is considered in providing the recommendation.

iv) The minimum continuous up and down hours must be configured to ensure the recommended resource stays up or down without interruption. An individual hour will count as an 'up/down' hour if it is part of a sequence of n continuous up/down hours.

Recommendationsettings6.gif

Resources

  • Schedule recommendations are based on default metrics like CPU and memory consumption, as well as other standard metrics. Users who need to include additional metrics for their resource recommendations can customize the metric configuration.

Recommendationsettings3.gif

  • For resource types like Virtual Machines, Virtual Machine Scale Sets, and SQL Managed Instances, Users can configure both recommendations to stop resources during off-peak hours or downsize them, allowing the same resource to receive both recommendations.

Stopanddownsize1.gif

  • Enabling the Family restriction checkbox for Virtual Machine (or) Virtual Machine Scale sets ensures that their schedule recommendations are within the bounds of the Current SKU family. This option can be used when you want to exclude certain non-production VM families from being recommended for your production VMs.

  • Excluding VM families for Virtual Machines or Virtual Machine Scale Sets ensures that their recommended SKU do not come from the excluded VM families.

RestrictVMfamilies.PNG

Recommendation refresh

  • Schedule recommendations for a cost group will be updated every two days based on the last updated date range.

  • It is also possible to perform a manual refresh to view recommendations instantly.

Schedulerecommendationrefresh.gif


Was this article helpful?

ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence