> 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 のスケジューリング

ランブックの一部のユースケースは、サービスの正常性の監視やストレージの残容量の確認のように、対話なしで繰り返し実行するのに適しています。

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

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

## スケジュール可能性

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

デフォルトでは、接尾辞 `_scheduled` を持つランブックはスケジュール可能としてフラグ付けされます。この動作は次を使って上書きできます。 [Runbook の権限](/ja/zi-dong-hua/runbooks/runbook-permissions.md).

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

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

<figure><img src="/files/11155e3e75ed8cb14ca4d6beb2a365d8e65d2f0d" alt=""><figcaption><p>スケジュール可能なランブックとスケジュール不可のランブック</p></figcaption></figure>

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

<figure><img src="/files/4ef50e1ca67b57d01251a1c1052d3af55e68efc2" alt=""><figcaption><p>スケジュールされたランブックの構成</p></figcaption></figure>

RealmJoin Portal では、ランブックを閲覧すると既存のスケジュール割り当てが表示されます。

<figure><img src="/files/74ffb6821e66ac504d2aacd99657d4a1852e85c5" alt=""><figcaption><p>スケジュールされたランブック</p></figcaption></figure>

## スケジュールの管理

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

左側のナビゲーションを使用し、「Runbook Logs」を選択し ![](/files/ea6c59a09b92c988f16738e4573af9f436c6187c) そして **スケジュール** タブ。

<figure><img src="/files/1030ab5e33ff7e6c40b1381fb3b8a80df12f6c0d" alt=""><figcaption><p>ランブックのスケジュール</p></figcaption></figure>

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

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

まだスケジュールが存在しない場合、RealmJoin Portal では **「既定のスケジュールを作成」** ボタン：

<figure><img src="/files/074a96b1516eaf31d49bbfc1d15a4ed3f008967a" alt=""><figcaption><p>スケジュールを作成</p></figcaption></figure>

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

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

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

ランブックの実行は、開始日と頻度で定義された日に行われます。

例えば、2023年3月9日木曜日を開始日として、1週間の間隔で週次頻度を設定した場合、ランブックは3月9日以降のすべての木曜日に実行されます。間隔を2週間に設定すると、3月9日に実行され、その後は隔週（「2回に1回」）の木曜日にのみ実行され、以下同様になります。

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

<figure><img src="/files/15df58c15f120daab9d02a11da78e119466baa72" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/scheduling.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
