AttestationClient.AttestAzureGuestAsync(BinaryData, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attest an Azure confidential or Trusted Launch virtual machine.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Security.Attestation.SealedAttestationResult>> AttestAzureGuestAsync(BinaryData attestationInfo, System.Threading.CancellationToken cancellationToken = default);
abstract member AttestAzureGuestAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.Attestation.SealedAttestationResult>>
override this.AttestAzureGuestAsync : BinaryData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Security.Attestation.SealedAttestationResult>>
Public Overridable Function AttestAzureGuestAsync (attestationInfo As BinaryData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of SealedAttestationResult))
Parameters
- attestationInfo
- BinaryData
The attestation information collected inside the virtual machine, such as by the guest attestation library.
- cancellationToken
- CancellationToken
Cancellation token used to cancel the request.
Returns
A SealedAttestationResult whose token is encrypted to the virtual machine's TPM.
Remarks
The client cannot decrypt the token, so it does not validate it; see SealedAttestationResult for how to use it.