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

# Runbook 管理アプリの権限

RealmJoin が Azure Automation Account に対してどのように認証するか、および runbook の同期と実行にどの Azure 権限が必要かを説明します。

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

参照してください [Runbook 実行の要件](/ja/zi-dong-hua/connecting-azure-automation/azure-ad-roles-and-permissions.md) runbook があなたの環境で有用になるように Automation Account のマネージド ID に付与する必要がある権限については、こちらを参照してください — それらは別のセットです。

## RealmJoin Azure リソース

～でオンボードされた Tenant は [RealmJoin PowerShell モジュール](/ja/zi-dong-hua/connecting-azure-automation.md) は、RealmJoin 独自のマルチテナント アプリケーションを通じてアクセスされます。 **RealmJoin Azure リソース**セットアップを実行すると、あなたの Tenant にそれ用の Service Principal が作成されます。

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

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

### Azure リソース権限

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

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

## RealmJoin Runbook Management（レガシー）

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

このアプリはあなたの Tenant ごとに個別に作成されるため、次のようなグローバルに既知の Application ID はありません [RealmJoin Portal のアプリ](/ja/zhan-kai/required-permissions.md)。このアプリにも API 権限はありません。

{% hint style="info" %}
この方法でも引き続き動作しますが、有効期限のある client secret を管理する必要があります。参照してください [RealmJoin managed app への切り替え](/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 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/connecting-azure-automation/required-permissions.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.
