# Power Scheduling

Set weekly schedules for shutdown and startup times for Instances and VM’s, apply Power Schedules to Instances pre or post-provisioning, apply Power Schedule policies on Group or Clouds, or use Guidance to automatically recommend and apply optimized Power Schedules.

## Create Power schedules

### Procedure

1. Navigate to Library > Automation > Power Scheduling
2. Select + ADD
3. Configure the following options: 

   NAME
   :   Name of the Power Schedule

   DESCRIPTION
   :   Description for the Power Schedule

   TIME ZONE
   :   Time Zone the Power Schedule times correlate to.

   TYPE
   :   Power On
       :   Power Up and then Down at scheduled times

       Power off
       :   Power Down then Up at scheduled times

       Enabled
       :   Check for Power Schedule to be Active. Uncheck to disable Power Schedule.

       DAYS
       :   Slide the start and end time controls for each day to configure each days Schedule. Green sections indicate Power on, red sections indicate Power Off. Time indicated applies to selected Time Zone. The sliders can be used to set time in 15-minute steps, for single-minute granularity click the pencil icon and enter a specific time down to the minute.

   ![../../_images/powerSchedule.png](https://support.hpe.com/hpesc/public/api/document/sd00007732en_us/GUID-3FAFD413-3475-44A9-811A-575B689D836D-high.png)
4. Select SAVE CHANGES

### Results

TIP

To view the Instances a power schedule is currently set on, select the name of a Power Schedule to go to the Power Schedule Detail Page.

## Add Power Schedule to Instance

### Procedure

1. Navigate to Provisioning > Instances
2. Select an Instance
3. Select EDIT
4. In the POWER SCHEDULE dropdown, select a Power Schedule.
5. Select SAVE CHANGES

## Add Power Schedule to Virtual Machine

### Procedure

1. Navigate to Infrastructure  >  Compute  >  Virtual Machines
2. Select a Virtual Machine
3. Select EDIT
4. Expand the Advanced Options section
5. In the POWER SCHEDULE dropdown, select a Power Schedule.
6. Select SAVE CHANGES

## Add Power Schedule Policy

### About this task

NOTE

Power Schedule Policies apply to Instances created after the Policy is enabled.

### Procedure

1. Navigate to Administration > Policies
2. Select + ADD
3. Select TYPE Power Schedule
4. Configure the Power Schedule Policy: 

   NAME
   :   Name of the Policy

   DESCRIPTION
   :   Add details about your Policy for reference in the Policies tab.

   Enabled
   :   Policies can be edited and disabled or enabled at any time. Disabling a Power Schedule Policy will prevent the Power Schedule from running on the Clouds Instances until re-enabled.

   ENFORCEMENT TYPE
   :   - User Configurable: Power Schedule choice is editable by User during provisioning.
       - Fixed Schedule: User cannot change Power Schedule setting during provisioning.

   POWER SCHEDULE
   :   Select Power Schedule to use in the Policy. Power schedule can be added in Library > Automation > Power Scheduling

   SCOPE
   :   Global
       :   Applies to all Instances created while the Policy is enabled

       Group
       :   Applies to all Instances created in or moved into specified Group while the Policy is enabled

       Cloud
       :   Applies to all Instances created in specified Cloud while the Policy is enabled

       User
       :   Applies to all Instances created by specified User while the Policy is enabled

       Role
       :   Applies to all Instances created by Users with specified Role while the Policy is enabled

   Permissions- TENANTS
   :   Leave blank to apply to all Tenants, or search for and select Tenants to enforce the Policy on specific Tenants.
5. Select SAVE CHANGES
