---
title: "POST /providers/Microsoft.Resources/calculateTemplateHash"
method: POST
path: "/providers/Microsoft.Resources/calculateTemplateHash"
tags: ["Deployments"]
---

# POST /providers/Microsoft.Resources/calculateTemplateHash

`POST /providers/Microsoft.Resources/calculateTemplateHash`

Calculate the hash of the given template.

## Query parameters

- `api-version` string, required

## Request body

- object

## Response `200`

OK - Returns the hash.

- TemplateHashResult — Result of the request to calculate template hash. It contains a string of minified template and its hash.
  - `minifiedTemplate` string — The minified template string.
  - `templateHash` string — The template hash.

## Other responses

- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/resourcemanagementclient.md) · [All operations](https://skmtc.net/azure/apis/resourcemanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/resourcemanagementclient/revisions/917e67faecf0/schema)
