# Office365ライセンスレポート

### 説明

この runbook は、Microsoft 365 サブスクリプション SKU に基づいてライセンス レポートを作成し、必要に応じて Exchange Online 関連のレポートを含めます。結果を Azure Storage にエクスポートし、ダウンロード用の SAS リンクを生成できます。

### 場所

Organization → General → Office365 License Report

**ランブックの完全名**

rjgit-org\_general\_office365-license-report

### アクセス許可

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

* **種類**: Microsoft Graph
  * Reports.Read.All
  * Directory.Read.All
  * User.Read.All
  * ReportSettings.ReadWrite.All

### パラメーター

#### printOverview

true に設定すると、短いライセンス使用状況の概要を出力します。

| プロパティ | 値       |
| ----- | ------- |
| 必須    | false   |
| 既定値   | True    |
| 種類    | Boolean |

#### includeExchange

true に設定すると、Exchange Online 関連のレポート（共有メールボックスのライセンス付与）を含めます。

| プロパティ | 値       |
| ----- | ------- |
| 必須    | false   |
| 既定値   | False   |
| 種類    | Boolean |

#### includeUserData

true に設定すると、Graph アクティビティ レポートに UPN などの実ユーザー データを含めるために、Microsoft 365 レポートのプライバシー設定が一時的に無効化されます（現在有効な場合）。設定は、実行後に常に元の状態に戻されます。注意: このオプションを有効にすると、エクスポートされたレポート内で個人を特定できる情報（UPN）が公開されるため、使用前に組織のデータ保護ポリシーへの準拠を確認してください。

| プロパティ | 値       |
| ----- | ------- |
| 必須    | false   |
| 既定値   | False   |
| 種類    | Boolean |

#### exportToFile

true に設定すると、構成されている場合にレポートを Azure Storage にエクスポートします。

| プロパティ | 値       |
| ----- | ------- |
| 必須    | false   |
| 既定値   | True    |
| 種類    | Boolean |

#### exportAsZip

true に設定すると、レポートを単一の ZIP ファイルとしてエクスポートします。

| プロパティ | 値       |
| ----- | ------- |
| 必須    | false   |
| 既定値   | False   |
| 種類    | Boolean |

#### produceLinks

true に設定すると、エクスポートされた成果物用の SAS トークン/リンクを作成します。

| プロパティ | 値       |
| ----- | ------- |
| 必須    | false   |
| 既定値   | True    |
| 種類    | Boolean |

#### ContainerName

アップロードに使用するストレージ コンテナー名。

| プロパティ | 値                        |
| ----- | ------------------------ |
| 必須    | false                    |
| 既定値   | rjrb-licensing-report-v2 |
| 種類    | 文字列                      |

#### ResourceGroupName

Storage Account を含むリソース グループ。

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

#### StorageAccountName

アップロードに使用する Storage Account 名。レポートを実行する前に、そのアカウントが存在している必要があります。

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

#### SubscriptionId

ストレージ操作に使用する Azure サブスクリプション ID。

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

[ランブック リファレンスの概要に戻る](/ja/zi-dong-hua/runbooks/runbook-references.md)


---

# Agent Instructions: 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:

```
GET https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/general/office365-license-report.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
