/// <summary>
 /// Generate Service Access Token.
 /// </summary>
 /// <remarks>
 /// Gets access token that can be used for calling service.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// The Azure Subscription ID.
 /// </param>
 /// <param name='resourceGroup'>
 /// The Name of the resource group in which the workspace is located.
 /// </param>
 /// <param name='workspace'>
 /// The name of the workspace.
 /// </param>
 /// <param name='id'>
 /// The Service Id.
 /// </param>
 public static AuthToken GetServiceToken(this IServicesOperations operations, System.Guid subscriptionId, string resourceGroup, string workspace, string id)
 {
     return(operations.GetServiceTokenAsync(subscriptionId, resourceGroup, workspace, id).GetAwaiter().GetResult());
 }