> 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/runbook-references/org/general/enrolled-devices-report_scheduled.md).

# 登録済みデバイス レポート（スケジュール済み）

Windows Autopilot デバイスの最近の初回登録をレポートする

{% hint style="info" %}
これはスケジュール実行の runbook です。単一のオブジェクトによってトリガーされるのではなく、繰り返しスケジュールで実行されるように設計されています。詳細は [スケジューリング](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/scheduling.md) runbook のスケジュールを構成する方法の詳細は。
{% endhint %}

### 説明

選択した週数内に初めて登録された、Autopilot に登録された Windows デバイスを一覧表示します。国や部署など、任意の属性でグループ化されるため、新しいデバイスがどこに現れるかを確認できます。iOS、Android、macOS のデバイス、および Autopilot を使わずに登録された Windows デバイスは含まれません。レポートは CSV として Azure Storage Account にエクスポートし、そこからダウンロードできます。

### どのデバイスが含まれるか

レポートは Intune の Windows Autopilot デバイス ID から開始するため、Autopilot に登録された Windows デバイスのみを一覧表示します。iOS、Android、macOS のデバイス、および Autopilot を使わずに登録された Windows デバイスは、時間範囲内に登録されていても含まれません。

* **Autopilot プロファイルの割り当て日** Autopilot プロファイルが割り当てられた日からデバイスをカウントします。
* **Intune 登録日** Intune に登録された日からデバイスをカウントします。Intune オブジェクトがない Autopilot デバイスは一覧に含まれません。

### グループ化に使用する属性

この属性は、次の下で選択したオブジェクトのプロパティです **グループ化の元となるデータ**、たとえば `国` または `部署` Entra ID ユーザーの `製造元` Intune デバイスの `groupTag` Autopilot デバイスのものです。空であってはならず、 `apDevice`, `intuneDevice`, `APAssignmentDate` と `IntuneEnrolledDate` は、レポートが内部で使用する名前です。これらのいずれかの値があると、データを読み取る前に実行はエラーで停止します。

### 失敗したルックアップ

各デバイスについて、runbook は Intune デバイスを読み取り、グループ化方法に応じて Entra ID のユーザーまたはデバイスを読み取ります。存在しないデバイスまたはユーザーは、未登録として扱われるか、属性が空になります。403 Forbidden などの Graph 権限不足やサービス エラーなど、その他のエラーはカウントされます。レポートは引き続き作成、アップロードされ、出力データとして表示されますが、デバイスが欠落したり列が空になったりする場合があるため、その場合、失敗したルックアップ数と最初のエラーとともに実行は失敗として終了します。

### CSV エクスポート用の Storage Account を構成する

CSV エクスポートでは、既存の Azure Storage Account にレポートをアップロードし、ダウンロード リンクを返します。runbook はコンテナーがない場合は作成しますが、Storage Account は作成しません。Automation Account のマネージド ID には、 `Reader and Data Access` Storage Account 上のロールが必要です。

Tenant 設定で Storage Account を設定します `RJReport.StorageAccount`、これはすべてのレポート runbook で使用される同じ設定です（参照 [Runbook レポート設定](https://docs.realmjoin.com/automation/runbooks/runbook-report-settings)). `LinkExpiryDays` ダウンロード リンクの有効期限が切れるまでの日数を設定します。これがないと、リンクは 6 日後に期限切れになります。 `SubscriptionId` は省略可能ですが、推奨されます。これにより、アップロードが Storage Account を含むサブスクリプションを使用することが保証されます（参照 [Storage Account のサブスクリプション](https://docs.realmjoin.com/automation/runbooks/runbook-report-settings#subscription-of-the-storage-account)).

```json
{
  "Settings": {
    "RJReport": {
      "StorageAccount": {
        "ResourceGroup": "rj-test-runbooks-01",
        "StorageAccountName": "rjrbexports01",
        "SubscriptionId": "00000000-0000-0000-0000-000000000000",
        "LinkExpiryDays": 6
      }
    }
  }
}
```

runbook 固有の設定 `EnrolledDevicesReport.ResourceGroup` と `EnrolledDevicesReport.StorageAccount.Name` は引き続き読み取られ、次より優先されます `RJReport.StorageAccount`. `EnrolledDevicesReport.StorageAccount.Location` と `EnrolledDevicesReport.StorageAccount.Sku` はもはや不要であり、無視されます。コンテナー名は次から取得されます `EnrolledDevicesReport.Container`。これがない場合、runbook は次を使用します `enrolled-devices-<weeks>w-<date>`.

runbook のカスタマイズ方法の詳細については、 [Runbook カスタマイズ ガイド](https://docs.realmjoin.com/automation/runbooks/runbook-customization).

### 場所

Organization → General → Enrolled Devices Report (Scheduled)

**完全な Runbook 名**

rjgit-org\_general\_enrolled-devices-report\_scheduled

### 詳細

| プロパティ    | 値                                                                                                                  |
| -------- | ------------------------------------------------------------------------------------------------------------------ |
| バージョン    | 1.1.0                                                                                                              |
| 必須モジュール  | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>Microsoft.Graph.Authentication (>= 2.41.2)<br>Az.Accounts (>= 5.5.2)</p> |
| スケジュール可能 | はい                                                                                                                 |

### アクセス許可

#### アプリケーションのアクセス許可

* **型**: Microsoft Graph
  * Device.ReadWrite.All
    * *デバイス プロパティによるグループ化のために Entra のデバイス オブジェクトを読み取ります*
  * DeviceManagementManagedDevices.Read.All
    * *各 Intune デバイスの登録日とユーザー情報を読み取ります*
  * DeviceManagementServiceConfig.Read.All
    * *レポートの基礎データセットとしてすべての Autopilot デバイスを一覧表示します*
  * User.Read.All
    * *ユーザー プロパティでグループ化する場合、各デバイスのユーザーからグループ化属性を読み取ります*

#### 権限に関する注意事項

Azure Storage Account: Automation Account のマネージド ID に対する対象 Storage Account 上の 'Reader and Data Access' ロール - アップロードでは listKeys を介してアカウント キーを取得します（CSV エクスポートでのみ必要）

### パラメーター

#### 週

最初の登録をさかのぼって何週間分を調べるか。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 4     |
| 型     | Int32 |

#### dataSource

Autopilot プロファイルの割り当て日では、Autopilot プロファイルが割り当てられた日からデバイスをカウントし、Intune 登録日では、Intune に登録された日からデバイスをカウントします。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 0     |
| 型     | Int32 |

#### groupingSource

グループ化属性の取得元: グループ化なし、Entra ID のユーザーまたはデバイスのプロパティ、Intune デバイスのプロパティ、または Autopilot デバイスのプロパティ。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 1     |
| 型     | Int32 |

#### groupingAttribute

デバイスがグループ化される属性の名前。たとえば国や部署。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 国     |
| 型     | 文字列   |

#### exportCsv

レポートを CSV として Storage Account にアップロードし、ダウンロード リンクを返します。構成済みの Storage Account が必要です。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | True  |
| 型     | ブール値  |

#### ContainerName

レポートのアップロード先となる Storage Account のコンテナー。Tenant 設定 EnrolledDevicesReport.Container から取得し、ない場合は runbook ごとに設定します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### ResourceGroupName

レポートのアップロード用 Storage Account のリソース グループ。Tenant 設定 EnrolledDevicesReport.ResourceGroup から取得し、設定されていない場合は RJReport.StorageAccount.ResourceGroup を使用します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### StorageAccountName

レポートのアップロード用 Storage Account。Tenant 設定 EnrolledDevicesReport.StorageAccount.Name から取得し、設定されていない場合は RJReport.StorageAccount.StorageAccountName を使用します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### SubscriptionId

ResourceGroupName と StorageAccountName で指定された Storage Account のサブスクリプション ID。Tenant 設定からは取得されません。空の場合は、マネージド ID がサインインするサブスクリプションが使用されます。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### StorageAccountLocation

Storage Account はもう作成されないため、もはや使用されません。既存のスケジュールと API 呼び出しが引き続き開始できるように残されています。値を渡しても、実行に非推奨警告が追加されるだけです。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### StorageAccountSku

Storage Account はもう作成されないため、もはや使用されません。既存のスケジュールと API 呼び出しが引き続き開始できるように残されています。値を渡しても、実行に非推奨警告が追加されるだけです。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### RJReportResourceGroupName

レポートのアップロード用 Storage Account のリソース グループ。Tenant 設定 RJReport.StorageAccount.ResourceGroup から取得し、EnrolledDevicesReport.ResourceGroup が設定されていない場合に使用します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### RJReportStorageAccountName

レポートのアップロード用 Storage Account。Tenant 設定 RJReport.StorageAccount.StorageAccountName から取得し、EnrolledDevicesReport.StorageAccount.Name が設定されていない場合に使用します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### RJReportSubscriptionId

レポート アップロード用の Storage Account のサブスクリプション ID。Tenant 設定 RJReport.StorageAccount.SubscriptionId から取得され、Storage Account が RJReport.StorageAccount から取得される場合に使用されます。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   |       |
| 型     | 文字列   |

#### LinkExpiryDays

ダウンロード リンクの有効期間（日数）。テナント設定 RJReport.StorageAccount.LinkExpiryDays から取得します。

| プロパティ | 値     |
| ----- | ----- |
| 必須    | false |
| 既定値   | 6     |
| 型     | Int32 |

[Runbook リファレンスの概要に戻る](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# 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/runbooks/runbook-references/org/general/enrolled-devices-report_scheduled.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.
