# Creating Jobs

## About this task

NOTE

Jobs require existing Tasks or Workflows. See the appropriate section of HPE Morpheus Enterprise docs for more on creating [Tasks](https://docs.morpheusdata.com/en/latest/provisioning/automation/automation.html#tasks) and [Workflows](https://docs.morpheusdata.com/en/latest/provisioning/automation/automation.html#workflows).

To create a new Job:

## Procedure

1. Navigate to Provisioning > Jobs
2. Select + ADD
3. Enter the following 

   - NAME: Name of the Job in HPE Morpheus Enterprise
   - JOB TYPE: A Task Job will execute a selected Task, a Workflow Job will execute a selected Workflow
   - ENABLED: When checked, the Job will run as scheduled
4. Select NEXT
5. Configure the Job 

   Task Jobs
   :   TASK: Select target Task. If relevant to the Task, Input fields will be presented

       SCHEDULE:
       :   Manual: Job is not scheduled but can be executed from Provisioning > Jobs and selecting Actions > ExecuteDate And Time: Job will be executed at one specific point in time and not again (unless rescheduled or executed manually) Schedule: Select a configured Execution Schedule. Execution Schedules are created in Library > Automation > Execute Scheduling

           NOTE

           HPE Morpheus Enterprise provides two default execution schedules, `Daily at Midnight` and `Weekly on Sunday at Midnight`. Any additional schedules were created by a User. Additional schedules can be added in Library > Automation > Execute Scheduling

           INCLUDE POWER STATE: Select All, On, or Off. The default configuration is “All” and indicates the Job will run on all relevant Instances or servers at the proper schedule time. Selecting “On” or “Off” indicates the Job should only run against targets specifically having either an on or off power state

           CONTEXT TYPE: Server or Instance

           CONTEXT SERVER/INSTANCE: Select the Server or Instance you wish to target with the Job

           RUN NOW: When checked, the Job will execute on save regardless of `SCHEDULE` setting.

       Workflow Jobs
       :   WORKFLOW: Select target Workflow. If relevant to the Workflow, Input fields will be presented

           SCHEDULE:
           :   Manual: Job is not scheduled but can be executed from Provisioning > Jobs and selecting Actions  >  Execute

               Date And Time: Job will be executed at one specific point in time and not again (unless rescheduled or executed manually)

               Schedule: Select a configured Execution Schedule. Execution Schedules are created in Library > Automation > Execute Scheduling

               NOTE

               HPE Morpheus Enterprise provides two default execution schedules, `Daily at Midnight` and `Weekly on Sunday at Midnight`. Any additional schedules were created by a User. Additional schedules can be added in Library > Automation > Execute Scheduling

           INCLUDE POWER STATE: Select All, On, or Off. The default configuration is “All” and indicates the Job will run on all relevant Instances or servers at the proper schedule time. Selecting “On” or “Off” indicates the Job should only run against targets specifically having either an on or off power state

           CONTEXT TYPE: Server or Instance

           CONTEXT SERVER/INSTANCE: Select the Server or Instance you wish to target with the Job

           RUN NOW: When checked, the Job will execute on save regardless of `SCHEDULE` setting.
6. Select NEXT
7. Select COMPLETE
