> 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 にスケジュールを割り当て、Azure によって希望のスケジュールで自動的に実行させることができます。

RealmJoin Portal では、runbook にスケジュールを割り当てることに加え、スケジュールの管理と作成も行えます。

## スケジュール設定可否

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

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

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

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

<figure><img src="/files/11155e3e75ed8cb14ca4d6beb2a365d8e65d2f0d" alt=""><figcaption><p>スケジュール設定可能な runbook と非スケジュール設定可能な runbook</p></figcaption></figure>

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

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

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

<figure><img src="/files/74ffb6821e66ac504d2aacd99657d4a1852e85c5" alt=""><figcaption><p>スケジュールされた runbook</p></figcaption></figure>

## スケジュールの管理

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

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

<figure><img src="/files/1030ab5e33ff7e6c40b1381fb3b8a80df12f6c0d" alt=""><figcaption><p>Runbook のスケジュール</p></figcaption></figure>

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

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

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

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

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

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

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

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

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

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

<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.
