Create Pull Request
| Date | Scan | Status | Result |
|---|---|---|---|
| 2025-07-12 23:44 | #41 | cancelled |
Biased
|
| 2025-07-12 00:58 | #8 | cancelled |
Clean
|
| 2025-07-10 05:06 | #7 | processing |
Clean
|
| 2025-07-09 23:22 | #6 | cancelled |
Clean
|
## Schedule runbooks to run more frequently The most frequent interval for which a schedule in Azure Automation can be configured is one hour. If you require schedules to run more frequently than that, there are two options: * Create a [webhook](../automation-webhooks.md) for the runbook, and use [Azure Logic Apps](../../logic-apps/logic-apps-overview.md) to call the webhook. Azure Logic Apps provides more fine-grained granularity to define a schedule. * Create four schedules that all start within 15 minutes of each other and run once every hour. This scenario allows the runbook to run every 15 minutes with the different schedules. ## Disable a schedule When you disable a schedule, any runbook linked to it no longer runs on that schedule. You can manually disable a schedule or set an expiration time for schedules with a frequency when you create them. When the expiration time is reached, the schedule is disabled. ### Disable a schedule from the Azure portal 1. In your Automation account, on the left-hand pane select **Schedules** under **Shared Resources**. 1. Select the name of a schedule to open the details pane. 1. Change **Enabled** to **No**. > [!NOTE] > If you want to disable a schedule that has a start time in the past, you must change the start date to a time in the future before you save it. ### Disable a schedule with PowerShell Use the [Set-AzAutomationSchedule](/powershell/module/Az.Automation/Set-AzAutomationSchedule) cmdlet to change the properties of an existing schedule. To disable the schedule, specify False for the `IsEnabled` parameter. The following example shows how to disable a schedule for a runbook by using an Azure Resource Manager cmdlet.
## Remove a schedule When you're ready to remove your schedules, you can either use the Azure portal or PowerShell. Remember that you can only remove a schedule that has been disabled as described in the previous section. ### Remove a schedule using the Azure portal 1. In your Automation account, on the left-hand pane select **Schedules** under **Shared Resources**. 2. Select the name of a schedule to open the details pane. 3. Click **Delete**. ### Remove a schedule with PowerShell You can use the `Remove-AzAutomationSchedule` cmdlet as shown below to delete an existing schedule.
Edit the following parameter values and save the template as a JSON file: * Job schedule object name: A GUID (Globally Unique Identifier) is used as the name of the job schedule object. >[!IMPORTANT] > For each job schedule deployed with an ARM template, the GUID must be unique. Even if you're rescheduling an existing schedule, you'll need to change the GUID. This applies even if you've previously deleted an existing job schedule that was created with the same template. Reusing the same GUID results in a failed deployment.</br></br> > There are services online that can generate a new GUID for you, such as this [Free Online GUID Generator](https://guidgenerator.com/). * Schedule name: Represents the name of the Automation job schedule that will be linked to the specified runbook. * Runbook name: Represents the name of the Automation runbook the job schedule is to be associated with. Once the file has been saved, you can create the runbook job schedule with the following PowerShell command. The command uses the `TemplateFile` parameter to specify the path and filename of the template.
## Link a schedule to a runbook A runbook can be linked to multiple schedules, and a schedule can have multiple runbooks linked to it. If a runbook has parameters, you can provide values for them. You must provide values for any mandatory parameters, and you also can provide values for any optional parameters. These values are used each time the runbook is started by this schedule. You can attach the same runbook to another schedule and specify different parameter values. ### Link a schedule to a runbook with the Azure portal 1. In the Azure portal, from your automation account, select **Runbooks** under **Process Automation**. 1. Select the name of the runbook to schedule. 1. If the runbook isn't currently linked to a schedule, you're offered the option to create a new schedule or link to an existing schedule. 1. If the runbook has parameters, you can select the option **Modify run settings (Default:Azure)** and the **Parameters** pane appears. You can enter parameter information here. ### Link a schedule to a runbook with PowerShell Use the [Register-AzAutomationScheduledRunbook](/powershell/module/Az.Automation/Register-AzAutomationScheduledRunbook) cmdlet to link a schedule. You can specify values for the runbook’s parameters with the Parameters parameter. For more information on how to specify parameter values, see [Starting a Runbook in Azure Automation](../start-runbooks.md). The following example shows how to link a schedule to a runbook by using an Azure Resource Manager cmdlet with parameters.