> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/es/automatizacion/runbooks/scheduling.md).

# Programación de Runbook

Ejecuta Runbooks repetidamente a lo largo del tiempo

Algunos casos de uso para los runbooks son más adecuados para ejecutarse repetidamente sin interacción, como supervisar el estado de un servicio o comprobar la capacidad restante de un almacenamiento.

En esos casos, puedes asignar una programación a un runbook y hacer que Azure lo ejecute automáticamente por ti en la programación que desees.

RealmJoin Portal te permite asignar programaciones a runbooks, así como administrar y crear programaciones.

## Programabilidad

De forma predeterminada, no todos los runbooks están marcados como programables. Esto pretende indicar fácilmente qué runbooks son útiles de manera programada y cuáles conviene usar de forma interactiva.

De forma predeterminada, los runbooks que tienen el sufijo `_scheduled` se marcan como programables. Puedes sobrescribir este comportamiento usando [Permisos de Runbook](https://docs.realmjoin.com/es/automatizacion/runbooks/runbook-permissions.md).

## Asignación de programaciones

Si un runbook está marcado como programable, el botón "Programar" junto al runbook se activará.

<figure><img src="https://3832142177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FL54TwFjr1xMGZpGGtQtt%2Fimage.png?alt=media&amp;token=dc8fecc0-9b47-4e5e-bf20-e0121947427c" alt=""><figcaption><p>Runbook programable frente a no programable</p></figcaption></figure>

El cuadro de diálogo de programación te permite elegir una [programación ](#managing-schedules)y configurar los parámetros de la ejecución del runbook. Si los parámetros se dejan vacíos, se usarán los valores predeterminados del runbook.

<figure><img src="https://3832142177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FAivwZ4D3LP6dggeUNgMn%2Fimage.png?alt=media&amp;token=f6481b90-be7b-4443-81fb-8ce5c107a3ec" alt=""><figcaption><p>Configuración de un runbook programado</p></figcaption></figure>

RealmJoin Portal mostrará las asignaciones de programación existentes al navegar por los runbooks.

<figure><img src="https://3832142177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FGGOotMi9lWdICfGz3uQV%2Fimage.png?alt=media&amp;token=20300526-0b7c-4794-8a13-2831a2a3f175" alt=""><figcaption><p>Runbook programado</p></figcaption></figure>

## Administración de programaciones

Azure Automation permite a los administradores definir programaciones personalizadas para runbooks. Puedes usar RealmJoin Portal para administrar las programaciones existentes de Azure Automation o para crear nuevas.

Usa la navegación de la izquierda, seleccionando los registros del runbook ![](https://3832142177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FiSjlSSR375ebVGEuZX3r%2Fjobs.png?alt=media\&token=92b3ba64-7c6e-46eb-b401-9304699d7943) y se obtuvieron los **Programaciones** pestaña.

<figure><img src="https://3832142177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FWpUCzOSuVODK7Qb4OUyd%2Fimage.png?alt=media&amp;token=4dda4e68-9c45-4d38-a4b8-146c8db08384" alt=""><figcaption><p>Programaciones de runbook</p></figcaption></figure>

Puedes añadir una **Nueva programación**, **Editar** o **Eliminar** una programación existente desde aquí.

### Programaciones predeterminadas

Si aún no existen programaciones, RealmJoin Portal ofrecerá un **Crear programaciones predeterminadas** botón:

<figure><img src="https://3832142177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2F9kTPYJeQf3ERYN0PHVzk%2Fimage.png?alt=media&amp;token=251c4a66-40e5-4a02-aaee-3464b484d68f" alt=""><figcaption><p>Crear programaciones</p></figcaption></figure>

Al pulsar este botón se creará un conjunto predeterminado ("Hourly", "Daily", "Weekly", "Monthly") de programaciones, como se ve arriba.

### Nueva / Editar programación

Al crear o editar una programación, puedes modificar su nombre, descripción, fecha y hora de inicio y finalización, y frecuencia.

La ejecución del runbook ocurrirá en los días definidos por la fecha de inicio y la frecuencia.

Por ejemplo: si configuras una frecuencia semanal con un intervalo de 1 semana, comenzando el jueves 9 de marzo de 2023, entonces el runbook se ejecutará todos los jueves a partir del 9 de marzo, inclusive. Establecer un intervalo de 2 semanas hará que se ejecute el 9 de marzo y solo cada dos jueves ("cada segundo jueves") a partir de entonces, y así sucesivamente.

La hora de inicio define a qué hora se realizará la ejecución. Establecer la zona horaria garantiza que la hora se interprete en consecuencia.

<figure><img src="https://3832142177-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FikJ2G80BAtv82MSfOvZF%2Fimage.png?alt=media&amp;token=7fdbaf4d-545b-4916-9cfd-446c1009dff1" alt=""><figcaption><p>Editar programación</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/es/automatizacion/runbooks/scheduling.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
