> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/dependencies-azure-services/azure-ad.md).

# Microsoft Entra ID (Azure AD)

{% hint style="info" %}
これらの設定は SCEPman App Service にのみ適用し、Certificate Master には適用しないでください。以下を参照してください [SCEPman 設定](/ja/scepman-gou-cheng/application-settings.md).
{% endhint %}

## AppConfig:AuthConfig:ApplicationId

*Linux: AppConfig\_\_AuthConfig\_\_ApplicationId*

この [Application (client) ID](/ja/scepman-nodepuroi/permissions/azure-app-registration.md#basic-app-registration-application-id) Microsoft Entra ID (Azure AD) のアプリ登録から取得します。この設定はセットアップ中に構成されます。

{% hint style="warning" %}
これを「Client Secret ID」と混同しないでください。ここで必要なのは「Application (client) ID」です。
{% endhint %}

{% hint style="danger" %}
変更はサービスに悪影響を及ぼす可能性があります！
{% endhint %}

## AppConfig:AuthConfig:ApplicationKey

*Linux: AppConfig\_\_AuthConfig\_\_ApplicationKey*

この [アプリケーション キー（クライアント シークレット **値**)](/ja/scepman-nodepuroi/permissions/azure-app-registration.md#azure-app-registration-client-secret) Microsoft Entra ID (Azure AD) のアプリ登録から取得します。この設定は SCEPman 1.x バージョンのセットアップ中に構成されます。SCEPman 2.x では通常この設定は使用せず、代わりに [Managed Identity 認証](/ja/scepman-nodepuroi/permissions/post-installation-config.md).

{% hint style="warning" %}
これを「Client Secret **ID**」と混同しないでください。必要なのは「Client Secret **Value**」です。
{% endhint %}

{% hint style="danger" %}
変更はサービスに悪影響を及ぼす可能性があります！
{% endhint %}

## AppConfig:AuthConfig:TenantId

*Linux: AppConfig\_\_AuthConfig\_\_TenantId*

Microsoft Entra ID (Azure AD) の Tenant ID。この設定はセットアップ中に自動的に構成されます。

{% hint style="danger" %}
変更はサービスに悪影響を及ぼす可能性があります！
{% endhint %}

## AppConfig:AuthConfig:HomeTenantId

*Linux: AppConfig\_\_AuthConfig\_\_HomeTenantId*

SCEPman を Intune とは異なる Tenant で実行する場合、これは SCEPman Azure リソースをホストしている Tenant の Id を指定します。一方で [AppConfig:AuthConfig:TenantId](#appconfig-authconfig-tenantid) Intune の Tenant を指定します。この場合、より便利な [Managed Identities に基づく認証](/ja/scepman-nodepuroi/permissions/post-installation-config.md)、ただし認証を使用しなければなりません [Azure アプリ登録とクライアント シークレット](/ja/scepman-nodepuroi/permissions/azure-app-registration.md).

{% hint style="danger" %}
変更はサービスに悪影響を及ぼす可能性があります！
{% endhint %}

## AppConfig:AuthConfig:HomeApplicationId

*Linux: AppConfig\_\_AuthConfig\_\_HomeApplicationId*

この設定は、SCEPman が Intune とは異なる Tenant で実行される場合にのみ使用されます。HomeApplicationId は、あなたの `scepman-api` SCEPman および Certificate Master App Services が実行されている Tenant のアプリ登録です。 [AppConfig:AuthConfig:ApplicationId](#appconfig-authconfig-applicationid) および [AppConfig:AuthConfig:ApplicationKey](#appconfig-authconfig-applicationkey) Intune が実行されている Tenant のアプリ登録に対して、それぞれアプリケーション ID と Client Secret Value を指定します。

{% hint style="warning" %}
これを「Client Secret ID」と混同しないでください。ここで必要なのは「Application (client) ID」です。
{% endhint %}

{% hint style="danger" %}
変更はサービスに悪影響を及ぼす可能性があります！
{% endhint %}

## AppConfig:AuthConfig:ManagedIdentityEnabledOnUnixTime

*Linux: AppConfig\_\_AuthConfig\_\_ManagedIdentityEnabledOnUnixTime*

必要な権限が Managed Identity に付与された時刻（Unix epoch）です。SCEPman は、この時刻の後しばらくしてからのみ（SCEPman 2.0 では 60 秒後）、Managed Identity を使用してトークンを取得します。これは、その時点で初めて、トークン内のロールが CMDlet によって追加された正しい権限を反映するためです。トークンはキャッシュされ、 [キャッシュを強制的に更新する方法はなく、24 時間保持されます](https://docs.microsoft.com/en-us/azure/app-service/overview-managed-identity?tabs=portal%2Cdotnet#configure-target-resource)そのため、SCEPman がトークンを取得した後に権限を追加した場合、SCEPman がこの新しい権限を使用できるようになるまで最大 24 時間待つ必要があります。

{% hint style="danger" %}
変更はサービスに悪影響を及ぼす可能性があります！
{% 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.scepman.com/ja/scepman-gou-cheng/application-settings/dependencies-azure-services/azure-ad.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.
