May be helpful to follow this example here: https://github.com/kinvolk/azure-cvm-tooling/blob/main/az-cvm-vtpm/az-snp-vtpm/example/src/main.rs