Payload/Artifacts required in TPM Attest REST API data field

Abdul Moiz 0 Reputation points
2025-06-18T16:04:44.2433333+00:00

I am trying to perform TPM attestation from Azure confidential virtual machine, using TPM attest REST API by following docs here, (https://learn.microsoft.com/en-us/rest/api/attestation/attestation/attest-tpm?view=rest-attestation-2022-08-01&tabs=HTTP)

API - POST {instanceUrl}/attest/Tpm?api-version=2022-08-01

The problem I am facing is, in the docs it's mentioned the API requires "data" field in request body, but it's not mentioned what fields/payload should be included in data field. IMG-20250618-WA0000

I am unable to find which fields/artifacts need to be base64 encoded in "data" field for above mentioned API, any help is appreciated.

Update Jan 19, 5:14 PM

I am using Intel Xeon based Confidential Virtual Machine (DC2es v5, East US 2).

Thanks!

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.