# Export Policy Report

### Description

This runbook exports configuration policies from Intune and Entra ID and writes the results to a Markdown report. It can optionally export raw JSON and create downloadable links for exported artifacts.

### Location

Organization → General → Export Policy Report

**Full Runbook name**

rjgit-org\_general\_export-policy-report

### Permissions

#### Application permissions

* **Type**: Microsoft Graph
  * DeviceManagementConfiguration.Read.All
  * Policy.Read.All

#### Permission notes

Azure Storage Account: Contributor role on the Storage Account used for exporting reports

### Parameters

#### produceLinks

If set to true, creates links for exported artifacts based on settings.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | True    |
| Type          | Boolean |

#### exportJson

If set to true, also exports raw JSON policy payloads.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | False   |
| Type          | Boolean |

#### renderLatexPagebreaks

If set to true, adds LaTeX page breaks to the generated Markdown.

| Property      | Value   |
| ------------- | ------- |
| Required      | false   |
| Default Value | True    |
| Type          | Boolean |

#### ContainerName

Storage container name used for uploads.

| Property      | Value                    |
| ------------- | ------------------------ |
| Required      | false                    |
| Default Value | rjrb-licensing-report-v2 |
| Type          | String                   |

#### ResourceGroupName

Resource group that contains the storage account.

| Property      | Value  |
| ------------- | ------ |
| Required      | false  |
| Default Value |        |
| Type          | String |

#### StorageAccountName

Storage account name used for uploads.

| Property      | Value  |
| ------------- | ------ |
| Required      | false  |
| Default Value |        |
| Type          | String |

#### StorageAccountLocation

Azure region for the storage account.

| Property      | Value  |
| ------------- | ------ |
| Required      | false  |
| Default Value |        |
| Type          | String |

#### StorageAccountSku

Storage account SKU.

| Property      | Value  |
| ------------- | ------ |
| Required      | false  |
| Default Value |        |
| Type          | String |

[Back to Runbook Reference overview](/automation/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/automation/runbooks/runbook-references/org/general/export-policy-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.
