> 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 のファイル名

shared runbook repository には、特定のファイル構成と命名構造を想定しています [shared runbook repository](https://github.com/realmjoin/realmjoin-runbooks)。RealmJoin は、GitHub からこれらのフォルダーとファイルを顧客の Azure Automation Account にインポートします。

ダッシュ（"-"）はスペースに変換されます。フォルダーは、runbook を "context" と "category" に分けるために使用されます。例: `user\general`。ファイル名はスクリプトの目的を表すものにしてください。

インポートされるすべての runbook には、次のプレフィックスがあります `rjgit-`。その後に context が続き、いずれかの `org`, `group`, `ユーザー` 、次に category が続きます。例: `_general_`, `_security_`, `_mail_` そして、スクリプト自体の名前、たとえば `add-additional-alias`.

### 例:

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

* `rjgit-user_general_add-additional-alias` Azure Automation Account で
* runbook カテゴリ "General" の User オブジェクト上で、RealmJoin Portal では "Add Additional Alias" と表示されます。

一般的なカテゴリ

* 一般
* セキュリティ
* Mail
* Userinfo

追加のカテゴリは定義できますが、context は定義できません。

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

これにより、RealmJoin Portal で runbook を自動的に埋め込み、名前を付けることができます。また、 `rjgit-` このプレフィックスにより、ローカル／顧客固有の runbook との名前の競合を避けることができます。このプレフィックスを持たない runbook は、RealmJoin のインポート ロジックの対象外になります。

## 非公開 / 顧客固有の Runbook

Azure Automation Account で非公開（ローカル）の runbook をホストできます。これらの runbook は、共有 runbook と同様に RealmJoin Portal に表示されます。ローカル runbook は同期プロセスの対象にならず、他の顧客には表示されません。

ローカル runbook を作成するには、 `rjgit-` 接頭辞を命名規則から हट...

例: Azure AD グループの context で、カテゴリが "General" の runbook "Private Runbook" を提供したい場合、次のように名前を付けます `group_general_private-runbook` を Azure Automation Account に。

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

![GitHub / Azure Automation の runbook 名](/files/87d5953507e2c490b8d688d64eec8f90f3d46022)

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

![RealmJoin Portal の runbook 名](/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:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/naming-conventions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
