# ARM Deployment History

When a identity has the permissions `Microsoft.Resources/deployments/read` and `Microsoft.Resources/subscriptions/resourceGroups/read`, it can read the deployment history.

### Deployment history

Each resource group maintains a deployment history for up to 800 deployments. They are a a rich resource of information. It can contain sensitive information like passwords "String" type.&#x20;

<figure><img src="/files/Iem0Iy3ucgsGH7qMphsY" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
There are no logs for reading these templates
{% endhint %}

### Common scenario

A inline command that is being executed:

<figure><img src="/files/elf8VlhCJeAT7E4eUEso" alt=""><figcaption></figcaption></figure>


---

# 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://notes.incendium.rocks/pentesting-notes/cloud/azure/privilege-escalation/arm-deployment-history.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.
