- 19 Nov 2024
- 6 Minutes to read
- Print
- DarkLight
- PDF
Schedules
- Updated on 19 Nov 2024
- 6 Minutes to read
- Print
- DarkLight
- PDF
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, optimization schedules display a chart showing the costs that can be saved when resources are scheduled.
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.
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.
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.
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.
5. Data Factory Pipelines
- Pipeline triggers can be scheduled to start in Up hours and stop in Down hours.
6. Logic Apps
- Logic Apps can be scheduled to run in the Up hours and stopped in the Down hours.
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.
- 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.
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.
- 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.
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.
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.
10. Synapse Pipelines
- Pipeline triggers can be scheduled to start in Up hours and stop in Down hours.
11. Virtual Machine
- The Up and Down hours can be scheduled to upgrade/downgrade the virtual machine service tier (or) initiate startup/shutdown.
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.
- 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 create schedules with predefined up and down hours to achieve significant savings by shutting down or resizing resources during non-active periods.
Schedule recommendations summary can be accessed by navigating to Optimization -> Schedules within a cost management group.
How to setup recommendations?
Follow the below steps to receive schedule recommendations for a Cost Management group:
- Go to Recommendation settings and enable the Schedule Recommendations toggle in General Settings
- Define values for currency, frequency and timezone to receive customized recommendations.
- Configure metrics and threshold values defining the downtime of the resources within this Cost management group.
- Click Apply.
Recommended schedules can be viewed by clicking the View recommendations option in the Schedule summary. The following widget displays all the potential schedules that can be created within the Cost Management group.
Resources eligible for savings are assigned to recommended schedules with pre-defined up and down hours, determined by analyzing the usage patterns of the resource’s default metrics.
Click Actions -> View Resources to view the resources assigned to recommended schedules. The resource details and potential savings are provided, along with a recommendation to scale down to a smaller size or shutdown during off-peak hours. This helps reduce resource costs during periods of inactivity.
The recommended schedule hours can be viewed by selecting Actions -> View schedule hours for the relevant schedule.
Create schedules based on recommendations
- Click Actions -> Create schedule in a recommended schedule.
- Provide basic schedule details and click Next.
- The scheduling hours configuration is defined based on recommendation and cannot be changed.
- Only the resources recommended by the schedule will be available to configure in the Resource Selection screen.
- Choose the desired notification channels and create the schedule.
The illustration shown below depicts creating a schedule based on recommendation:
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.
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.
- For resource types like Virtual Machines, Virtual Machine Scale Sets, and SQL Managed Instances, users can choose to either stop the resources during off-peak hours or downsize them.
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.
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.