public static async Task <TokenCredentials> GetAzureManagementTokenCredentialsAsync( this IAuthenticationManager authenticationManager, CancellationToken cancellationToken = default ) { var azureManagementAuthenticationResult = await authenticationManager .AcquireAzureManagementAuthenticationResultAsync(cancellationToken); var azureManagementTokenCredentials = authenticationManager .GenerateTokenCredentials(azureManagementAuthenticationResult); return(azureManagementTokenCredentials); }