---
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.

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Request body

- unknown

## Response `200`

The request has succeeded.

- 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` — An unexpected error response.

## Changes

- **2026-07-13** (2015-11-01) `ea64f4e7e898` — 1 warning
  - deleted the `query` request parameter `api-version`

[Change history](https://skmtc.dev/azure/apis/resources-microsoft-resources-deployments/changes/providers/Microsoft.Resources/calculateTemplateHash/post.md)

---

[API](https://skmtc.dev/azure/apis/resources-microsoft-resources-deployments.md) · [All operations](https://skmtc.dev/azure/apis/resources-microsoft-resources-deployments/llms.txt) · [OpenAPI document](https://skmtc.dev/azure/apis/resources-microsoft-resources-deployments/revisions/ea64f4e7e898?raw)
