/// <summary> /// Sets the policy for a given kind of TEE. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='tenantBaseUrl'> /// The tenant name, for example https://mytenant.attest.azure.net. /// </param> /// <param name='tee'> /// Specifies the trusted execution environment to be used to validate the /// evidence. Possible values include: 'SgxEnclave', 'OpenEnclave', /// 'CyResComponent', 'AzureGuest' /// </param> /// <param name='newAttestationPolicy'> /// JWT Expressing the new policy /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> SetAsync(this IPolicyOperations operations, string tenantBaseUrl, string tee, string newAttestationPolicy, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.SetWithHttpMessagesAsync(tenantBaseUrl, tee, newAttestationPolicy, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }