- 13 Nov 2024
- 4 Minutes to read
- Print
- DarkLight
- PDF
Managing optimization schedules
- Updated on 13 Nov 2024
- 4 Minutes to read
- Print
- DarkLight
- PDF
Create a Schedule
- Go to Optimization section in a Cost group.
- Click Add / Create optimization schedule.
- Enter a name for the schedule.
- Set a timezone based on which scheduling is to be performed.
- Click Next.
Scheduling configuration
- The next step is to define the up, down, or skip hours for the selected schedule type for the associated resources.
The optimization schedule includes two types for processing the associated resources, which are:
Weekly Schedule: Enables the user to configure the resource's uptime and downtime on a weekly basis based on usage patterns.
Monthly Schedule: Enables the user to configure the resource's uptime and downtime on a monthly basis based on usage patterns.
The hours in green will be considered Up hours, those in red will be considered Down hours, and grey will be considered Skip hours.
The resources will be configured to the Up setting or started at the beginning of each Up hour, set to the Down setting or stopped at the beginning of each Down hour, or skipped at the beginning of each skip hour, based on the specified configuration.
- Click Next.
Resource selection
- Choose the required resources available in the selected subscriptions for optimization.
At present, the following resource types are available for optimization:
- App service plan
- Cosmos SQL container
- Cosmos SQL database
- Cosmos table
- Data Factory Pipeline
- Logic Apps
- SQL Database
- SQL Elastic pool
- SQL Managed Instances
- Synapse Pipeline
- Virtual machine
- Virtual machine scale set
Provide the Up and Down config values to the corresponding resources for the selected Up and Down hours.
Click Next.
The same resource can be added to multiple optimization schedules.
Notification Settings
- Configure notification channels to the schedule to receive notification when the optimization schedule run is complete.
- Click Next.
The user can also choose to receive alerts only when there is a failure for any of the scheduled resources while running the optimization schedule.
Summary
The schedule summary displays detailed information about the optimization schedule, including a Cost Savings chart that helps users gain insights on the cost that can be saved when resources are scheduled for optimization.
- Click Create optimization schedule to finish creating the schedule.
The Schedule runs once in every hour based on the provided timezone.
- The optimized SKU can only be applied when the Service Principal has Contributor access.
Currency selection
When creating a schedule, the Currency filter available in Resource selection allows users to select any available currency types to display cost values based on their preferences.
If the currency filter value is updated, any resource chosen prior to the update will be updated with the new currency type.
The currency type can be updated from the Schedule settings as well.
Scheduled & Unscheduled resources
Scheduled resources
A resource can be added to an existing optimization schedule at any point by using the Schedule resources option available in the Scheduled Resources tab within Resources section.
All the scheduled resources will be listed in the Scheduled Resources tab within the Resources section.
The same resource can be added to multiple optimization schedules.
Unscheduled resources
The Unscheduled Resources tab in the Resources section will list all the resources that were not chosen from the resource types fetched during the scheduling process.
Adding resources to the schedule
Any unscheduled resource can be added to a schedule by clicking the Schedule resources option and selecting the required resource.
The Unscheduled resources data for the corresponding schedule will be updated again based on the retrieved resource types and resources by next day at 12am UTC.
Enable/Disable scheduled resources
The user can enable or disable resources mapped to a schedule to determine their inclusion or exclusion in the subsequent run.
- Enable/Disable the toggle next to the required resource
- Click Update
Scheduling for mapped resources will be reflected based on the recent changes made to the toggle status.
Update configuration values
The configuration values of App Service Plans and Cosmos resources can be updated even after creating the schedule.
- Navigate to the following path: Optimization schedule -> Resources -> Scheduled Resources.
- The Up and Down config values can be modified.
- Click Update.
Update a Schedule
- Go to Optimization schedule -> Settings.
- The schedule name, currency type, timezone, and scheduling configuration can be modified.
- Click Update.
On demand runs
Optimization schedules can be started manually right away, without having to wait for their scheduled time.
- Navigate to the following path: Cost group -> Optimization -> Schedules.
- Click the Run Schedule icon next to the relevant schedule. The resources mapped to the schedule will be listed here, allowing for selection according to user preferences.
- Choose Start (Scale Up) or Stop (Scale Down) to trigger the schedule according to the Up and Down settings configured for the mapped resources.
- Click Initiate to run the schedule.
Run history
The optimization schedule runs only once every hour, irrespective of the Up and Down hours specified, and performs the necessary action.
The History section of an optimization schedule will display the details of the schedule run only when the previous and the next state are different.
Delete a Schedule
- Navigate to Optimization section in a Cost Group.
- Click the Delete icon next to the schedule to be deleted.
- Click Delete.