Use sample application for guest attestation

The guest attestation feature helps you to confirm that a confidential VM runs on a hardware-based trusted execution environment (TEE) with security features enabled for isolation and integrity.

Sample applications for use with the guest attestation APIs are available on GitHub.

Depending on your type of scenario, you can reuse the sample code in your client program or workload code.


Use sample application

To use a sample application in C++ for use with the guest attestation APIs, follow the instructions for your operating system (OS).

  1. Sign in to your VM.

  2. Clone the sample Linux application.

  3. Install the build-essential package. This package installs everything required for compiling the sample application.

    sudo apt-get install build-essential
  4. Install the libcurl4-openssl-dev and libjsoncpp-dev packages.

    sudo apt-get install libcurl4-openssl-dev
    sudo apt-get install libjsoncpp-dev
  5. Download the attestation package from

  6. Install the attestation package. Make sure to replace <version> with the version that you downloaded.

    sudo dpkg -i azguestattestation1_<latest-version>_amd64.deb

Next steps