/// <summary> /// Adds a new attestation policy certificate to the set of policy management /// certificates. /// </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='policyCertificateToAdd'> /// An RFC7519 JSON Web Token containing a claim named "aas-policyCertificate" /// whose value is an RFC7517 JSON Web Key which specifies a new key to add. /// The RFC7519 JWT must be signed with one of the existing signing /// certificates /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<object> AddAsync(this IPolicyCertificatesOperations operations, string tenantBaseUrl, string policyCertificateToAdd, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddWithHttpMessagesAsync(tenantBaseUrl, policyCertificateToAdd, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } }