> 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 の命名規則

RealmJoin runbook の命名規則: コンテキストとカテゴリによって、共有リポジトリの runbook 名が Azure Automation とポータルにどのようにマッピングされるか。

## GitHub のファイル名

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

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

インポートされたすべてのランブックには、次のプレフィックスが付きます `rjgit-`、続いてコンテキスト、つまり `org`, `group`, `user` または `device` 次にカテゴリ、たとえば `_general_`, `_security_`, `_mail_` と、スクリプト名そのもの、たとえば `add-additional-alias`.

### 例:

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

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

一般的なカテゴリ

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

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

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

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

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

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

ローカル ランブックを作成するには、 `rjgit-` プレフィックスを命名規則から削除し、残りの命名構造はそのままにします。

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

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

![GitHub / Azure Automation のランブック名](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fdv7DajK5q1sVfnlQKurb%2Fnaming-ing1.png?alt=media\&token=136ada07-f577-4210-bd23-4cae6e83fce0)

RealmJoin ポータルでは次のように表示されます:

![RealmJoin ポータルのランブック名](https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2FwGCdu4ikL2Qvubpf3K2a%2Fnaming-ing2.png?alt=media\&token=917652eb-4cec-4607-8165-f62356477c87)


---

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