> 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/naming-conventions.md).

# Runbook の命名規則

## GitHub のファイル名

共有ランブックリポジトリには、特定のファイル構成と命名構造を想定しています [共有ランブックリポジトリ](https://github.com/realmjoin/realmjoin-runbooks)。RealmJoin は、これらのフォルダーとファイルを GitHub から顧客の Azure Automation アカウントにインポートします。

ダッシュ（"-"）はスペースに変換されます。フォルダーは、ランブックを「コンテキスト」と「カテゴリ」に分けるために使用されます。例： `user\general`ファイル名はスクリプトの目的を表している必要があります。

すべてのインポートされたランブックには、次のプレフィックスが付きます `rjgit-`、その後にコンテキストが続き、次のいずれかになります `org`, `グループの設定を開き`, `ユーザー` 次にカテゴリが続き、たとえば `_general_`, `_security_`, `_mail_` と、スクリプト自体の名前。例えば `add-additional-alias`.

### 例:

GitHub 上のランブックでは `user\general` という名前で `add-additional-alias.ps1` 次のように表示されます：

* `rjgit-user_general_add-additional-alias` Azure Automation アカウント内で
* 「一般」ランブックカテゴリの User オブジェクト上で、RealmJoin Portal では「Add Additional Alias」と表示されます。

一般的なカテゴリ

* 一般
* セキュリティ
* メール
* ユーザー情報

追加のカテゴリは定義できますが、コンテキストは定義できません。

### これは何のためですか？

これにより、RealmJoin Portal 内のランブックを自動的に入力し、名前を付けることができます。さらに、 `rjgit-` プレフィックスにより、ローカル／顧客固有のランブックとの名前の競合を避けられます。このプレフィックスのないランブックは、RealmJoin のインポートロジックの対象になりません。

## 非公開 / 顧客固有のランブック

Azure Automation アカウントで非公開（ローカル）のランブックをホストできます。これらのランブックは、共有ランブックと同様に RealmJoin Portal に表示されます。ローカルランブックは当社の同期処理の対象とならず、他の顧客には表示されません。

ローカルランブックを作成するには、 `rjgit-` 命名規則からプレフィックスを削除し、命名構造の他の部分はそのまま維持してください。

例: Azure AD グループをコンテキストとし、カテゴリを「一般」として「Private Runbook」というランブックを提供したい場合、 `group_general_private-runbook` と Azure Automation アカウント内で名付けます。

Azure Automation では次のように表示されます：

![GitHub / Azure Automation のランブック名](/files/87d5953507e2c490b8d688d64eec8f90f3d46022)

RealmJoin Portal では次のように表示されます：

![RealmJoin Portal のランブック名](/files/1e3c9fcbbeae04b8dfc4097624a4809ae175057c)


---

# 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/naming-conventions.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.
