> 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/ja/zi-dong-hua/runbooks/scheduling.md).

# Runbook のスケジュール設定

Runbook を定期的に繰り返し実行します

runbook のいくつかのユースケースは、サービスの正常性の監視やストレージの残容量の確認のように、対話なしで繰り返し実行するのにより適しています。

そのような場合、runbook にスケジュールを割り当て、希望のスケジュールで Azure に自動実行させることができます。

RealmJoin Portal では、runbook にスケジュールを割り当てるだけでなく、スケジュールの管理や作成も行えます。

## スケジュール可能性

既定では、すべての runbook がスケジュール可能としてフラグ付けされているわけではありません。これは、どの runbook が定期実行に適していて、どの runbook は対話的に使用するのが望ましいかを簡単に示すためです。

既定では、接尾辞を持つ runbook は `_scheduled` がスケジュール可能としてフラグ付けされます。この動作は次を使用して上書きできます。 [Runbook のアクセス許可](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-permissions.md).

## スケジュールの割り当て

runbook がスケジュール可能としてフラグ付けされている場合、その runbook の横にある「スケジュール」ボタンが有効になります。

<figure><img src="https://3438325150-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 とスケジュール不可の runbook</p></figcaption></figure>

スケジュール ダイアログでは、次を選択できます。 [スケジュール ](#managing-schedules)また、runbook 実行のパラメーターを構成できます。パラメーターが空のままの場合は、runbook の既定値が使用されます。

<figure><img src="https://3438325150-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>スケジュール済み runbook の構成</p></figcaption></figure>

RealmJoin Portal では、runbook を参照すると既存のスケジュール割り当てが表示されます。

<figure><img src="https://3438325150-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</p></figcaption></figure>

## スケジュールの管理

Azure Automation では、管理者が runbook 用のカスタム スケジュールを定義できます。RealmJoin Portal を使用して、既存の Azure Automation スケジュールを管理したり、新しいスケジュールを作成したりできます。

左側のナビゲーションで、Runbook ログを選択します ![](https://3438325150-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) すると、 **スケジュール** タブ。

<figure><img src="https://3438325150-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>Runbook スケジュール</p></figcaption></figure>

追加できます。 **新しいスケジュール**, **編集** または **削除** ここから既存のスケジュールを編集できます。

### 既定のスケジュール

まだスケジュールが存在しない場合、RealmJoin Portal では次を利用できます。 **既定のスケジュールを作成** ボタン:

<figure><img src="https://3438325150-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>スケジュールを作成</p></figcaption></figure>

このボタンを押すと、上記のとおり、既定のスケジュール セット（「毎時」「毎日」「毎週」「毎月」）が作成されます。

### スケジュールの新規作成 / 編集

スケジュールの作成または編集時に、名前、説明、開始および終了の日時、頻度を変更できます。

runbook の実行は、開始日と頻度で定義された日付に行われます。

たとえば、1 週間間隔の週次頻度を 2023 年 3 月 9 日木曜日開始で設定すると、runbook は 3 月 9 日以降の毎週木曜日に実行されます。間隔を 2 週間にすると、3 月 9 日に実行され、その後は 1 週おき（「every second」）の木曜日にのみ実行されるようになります。

開始時刻は、実行がいつ行われるかを定義します。タイムゾーンを設定すると、その時刻がそれに応じて解釈されます。

<figure><img src="https://3438325150-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>スケジュールを編集</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/ja/zi-dong-hua/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.
