> 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-nodepuroi/permissions/azure-app-registration.md).

# Azure アプリの登録

{% hint style="info" %}
～にのみ関連 [Split-Tenancy](/ja/azure-gou-cheng/split-tenancy.md) 構成です。
{% endhint %}

SCEPman は、ユーザーとデバイスの証明書および OCSP 検証を提供するために、Azure Active Directory と Intune のエンドポイントと連携する必要があります。SCEPman に必要な権限を付与するには、テナント内に App Registration を作成する必要があります。

## App Registration を作成する（Application ID を取得する）

1. にログインする [Azure Portal](https://portal.azure.com)
2. へ移動する **Azure Active Directory**
3. クリック **アプリ登録**

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-a8211f3372358b01f2c1ff91c9a0ee59ebb5be32%2F2021-07-23-08_47_59-app-registrations-microsoft-azure-and-2-more-pages-c4a8-ehamed-microsoft-.png?alt=media)

4\. クリック **新規登録** を入力し、 **名前**、たとえば SCEPman です。サポートされているアカウントの種類として **この組織ディレクトリ内のアカウントのみ** を選んで、登録をクリックします。

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-d81e9875a6fa2c82c5699da28eb304ed3474b23b%2F2021-07-23-08_49_37-register-an-application-microsoft-azure-and-2-more-pages-c4a8-ehamed-micro.png?alt=media)

5\. 次のものをコピーしてもかまいません: **Application (client) ID** 今のうちに。ID は重要で、後で SCEPman のデプロイで必要になります。

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-4cf962236038fceeb58fbdd74d99173f2c5fb851%2F2021-07-23-08_50_59-scepmanreg-microsoft-azure-and-2-more-pages-c4a8-ehamed-microsoft-edge.png?alt=media)

SCEPman app service で、次の名前の新しい環境変数を作成します: [AppConfig:AuthConfig:ApplicationId](/ja/scepman-gou-cheng/application-settings/dependencies-azure-services/azure-ad.md#appconfig-authconfig-applicationid) そして、コピーした Application ID を値として貼り付けます。

## シークレットを生成する（Client Secret Value を取得する）

1\. のままにしておき、 **アプリ登録** そして **Certificates & secrets**

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-9052dbda134bade7a7df444f27b509349ae5cd9f%2F2021-07-23-08_52_08-scepmanreg-microsoft-azure-and-2-more-pages-c4a8-ehamed-microsoft-edge.png?alt=media)

2\. クリック **新しいクライアント シークレット**を追加し、説明を入力して、有効期限を選択します。推奨は **24 か月**です。これにより、2 年間の継続的なサービス提供に役立ちます。シークレットはいつでも取り消せます。クリック **追加**

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-c0f38ab422f7bbf2eb2833fe7dcdcf2478a380d3%2F2021-07-23-09_06_11-azure-app-registration-scepman-docs-and-1-more-page-work-microsoft-edge.png?alt=media)

3\. **シークレット値をコピーする** そして、安全な場所に控えておいてください。

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

{% hint style="warning" %}
Client Secret 値をすぐにコピーしてください。このサブメニューを離れると、後で取得できなくなります。
{% endhint %}

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-f348682d643335d15ad88a2f328f9092a58dc4d8%2Fimage.png?alt=media)

4. SCEPman の設定を作成する [AppConfig:AuthConfig:ApplicationKey](/ja/scepman-gou-cheng/application-settings/dependencies-azure-services/azure-ad.md#appconfig-authconfig-applicationkey) にクライアント シークレット値を設定します。

## 権限を構成する

のままにしておき、 **アプリ登録** そして **API のアクセス許可**

1. **削除** 既定の **ユーザー** **Read** アクセス許可。

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-933a5d5c8b03d177791b167d8b930da721afc276%2Fscreenshot-2020-02-03-at-10.54.48%20\(1\).png?alt=media)

2\. をクリックして **アクセス許可の追加** を選択し、 **Microsoft Graph**。選択したら、 **アプリケーションのアクセス許可** を選択し、directory を検索します。追加する **Directory.ReadAll** をアクセス許可として追加します。

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-094488757869a78f699616a5b1863d36ae1ce657%2Fapp-permission-graph%20\(1\).png?alt=media)

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-db95402d9089c53ce050e1cde83aaf6beea474e8%2Fapp-permission-directory-read%20\(1\)%20\(1\)%20\(1\).png?alt=media)

3\. 次に **アクセス許可の追加** を選択し、 **Intune**。選択したら、 **アプリケーションのアクセス許可** をクリックして scep を検索します。追加する **scep\_challenge\_provider** をアクセス許可として

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-45b33cc616a68aedbb3cc63341c2405cabc8d206%2Fapp-permission-intune%20\(1\)%20\(1\).png?alt=media)

![](https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2Fgit-blob-46eb2ea92e7d1accaae30f634f98212f1cddc6c7%2Fapp-permission-scep%20\(1\).png?alt=media)

4. 次の Graph のアクセス許可も検索して追加してください: `DeviceManagementConfiguration.Read.All` および `DeviceManagementManagedDevices.Read.All`
5. 最後に **管理者の同意を付与** してから **確認します** このアプリ登録に対する同意を確認します。

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FBxwHTG0eXVTMLzESdIWH%2F2024-03-13%2012_10_27-SCEPman-api.png?alt=media&amp;token=19ae6761-59f2-4fde-99f3-498bea4b2a9b" alt=""><figcaption></figcaption></figure>

6. 権限の付与が成功すると、各アクセス許可が緑色のステータスで表示されます。

<figure><img src="https://114237723-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LoGejQeUQcw7lqnQ3WX%2Fuploads%2FPqHvqGEiBsnquNtgQifc%2F2024-03-13%2012_12_18-SCEPman-api.png?alt=media&amp;token=dcf94b12-3800-42dc-832c-4c0882d40fa9" alt=""><figcaption></figcaption></figure>

アプリ登録は完了です。


---

# 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-nodepuroi/permissions/azure-app-registration.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.
