/// <summary> /// Add new entity to servicePrincipals /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftGraphServicePrincipal> CreateServicePrincipalAsync(this IServicePrincipalsOperations operations, MicrosoftGraphServicePrincipal body, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateServicePrincipalWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }