Managing optimization schedules
  • 02 Aug 2023
  • 3 Minutes to read
  • Dark
    Light
  • PDF

Managing optimization schedules

  • Dark
    Light
  • PDF

Article Summary

Create a Schedule

  1. Go to Optimization section in a Cost group
  2. Click Add / Create optimization schedule
  3. Enter a name for the schedule
  4. Set a timezone based on which scheduling is to be performed
  5. Click Next

Basic details.png

Scheduling configuration

  1. The next step is to specify the Up hours and Down hours of a week for the resources.

Hours Configuration.png

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.

  1. Click Next

Resource selection

  1. Choose the required resources available in the selected subscriptions for optimization.

MicrosoftTeams-image 24.png

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
  1. Provide the Up and Down config values to the corresponding resources for the selected Up and Down hours
  2. Click Next

The same resource cannot be added to multiple optimization schedules.

Notification Settings

  1. Configure notification channels to the schedule to receive notification when the optimization schedule run is complete
  2. 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.

Notification selection.png

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.

Schedule summary.png

  1. Click Create optimization schedule to finish creating the schedule.

The Schedule runs once in every hour based on the provided timezone.

Note:
  • 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:

schedule.gif

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.

Currency selection.png

The currency type can be updated from the Schedule settings as well.

Currency selection.png

Scheduled & Unscheduled resources

Scheduled resources

Scheduled resources.png

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

Unscheduled resources.png

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.

  1. Navigate to the following path: Optimization schedule -> Resources -> Scheduled Resources
  2. The Up and Down config values can be modified
  3. Click Update

Update configuration values.gif

Update a Schedule

  1. Go to Optimization schedule -> Settings.
  2. The schedule name, currency type, timezone, and scheduling configuration can be modified.
  3. Click Update.

Update schedule settings.png

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.

Run details.png

Delete a Schedule

  1. Navigate to Optimization section in a Cost Group
  2. Click the Delete icon next to the schedule to be deleted
  3. Click Delete

Delete schedule.png


Was this article helpful?

What's Next