- 02 Aug 2023
- 3 Minutes to read
- Print
- DarkLight
- PDF
Managing optimization schedules
- Updated on 02 Aug 2023
- 3 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 specify the Up hours and Down hours of a week for the resources.
The hours in green will be considered Up hours, and those in red will be considered Down hours.
The resources will be set to the Up configuration value or started at the beginning of every Up hour and be set to the Down configuration value or stopped at the beginning of every Down hour based on the resource type.
- 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
- Logic Apps
- SQL Database
- 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 cannot 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.
The below illustration depicts the process of creating an optimization schedule in the Cost Management Group:
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 cannot be added to multiple optimization schedules.
Unscheduled resources
All the unscheduled resources matching the filter provided while scheduling the resource will be listed in the Unscheduled Resources tab within the Resources section.
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.
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