> 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/connecting-azure-automation/required-permissions.md). Agents can also search and read this documentation through its [MCP server](https://docs.realmjoin.com/~gitbook/mcp).

# Runbook Management アプリのアクセス許可

RealmJoin が Azure Automation Account に対してどのように認証し、runbook の同期と実行にどの Azure アクセス許可が必要かを説明します。

このページでは、RealmJoin 自身が Azure Automation と runbook とやり取りするために必要な権限について説明します。

参照 [Runbook 実行要件](https://docs.realmjoin.com/ja/zi-dong-hua/connecting-azure-automation/azure-ad-roles-and-permissions.md) runbooks があなたの環境で役立つように、Automation Account のマネージド ID に付与しなければならない権限についてです — それらは別の権限セットです。

## RealmJoin Azure Resources

Tenants onboarded with the [RealmJoin PowerShell module](https://docs.realmjoin.com/ja/zi-dong-hua/connecting-azure-automation.md) は、RealmJoin 独自のマルチテナント アプリケーションを通じてアクセスされます、 **RealmJoin Azure Resources**。セットアップを実行すると、あなたのテナント内にそのための Service Principal が作成されます。

RealmJoin はそれを使って次を更新します： [Azure Automation の runbooks](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks.md) あなたのテナント内で、〜から [RealmJoin の共有 runbook リポジトリ](https://github.com/realmjoin/realmjoin-runbooks)、および RealmJoin の RBAC を通じてリクエストをフィルタリングした後に runbook 実行をトリガーするために [RealmJoin の RBAC](https://docs.realmjoin.com/ja/to/permission.md) と [Runbook の権限](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-permissions.md).

このアプリは **API 権限はありません** あなたのテナント内にあります。あなた側にはクライアント シークレットはありません。

### Azure リソースの権限

Service Principal には次が付与されます **Contributor**、RealmJoin が管理する Automation Account にスコープが限定されています。周囲のリソース グループ、他のリソース、またはサブスクリプションに対する権限はありません。

同じ Service Principal は、次の統合にも使用されます： [Log Analytics](https://docs.realmjoin.com/ja/torogu/log-analytics.md) その統合では、ワークスペースとそのデータ収集ルールに対して独自の別個のロールが付与されます。

## RealmJoin Runbook Management (レガシー)

PowerShell ベースのオンボーディングより前に構成されたテナントは、次の名前のアプリ登録を使用します： **RealmJoin Runbook Management**、あなたのテナント内で個別に作成されます。RealmJoin はそのクライアント ID とクライアント シークレットで認証し、このアプリは通常、Automation Account をホストするリソース グループ全体で Contributor です。

このアプリはあなたのテナント向けに個別に作成されるため、 [RealmJoin Portal のアプリ](https://docs.realmjoin.com/ja/zhan-kai/required-permissions.md)のようなグローバルに知られた Application ID はありません。

{% hint style="info" %}
この方法は引き続き機能しますが、有効期限のあるクライアント シークレットを管理し続けることになります。参照： [RealmJoin 管理アプリへの切り替え](https://docs.realmjoin.com/ja/zi-dong-hua/connecting-azure-automation/managed-app-migration.md) 移行するには。
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/connecting-azure-automation/required-permissions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
