/// <summary>
 /// Create a variable.  (see
 /// http://aka.ms/azureautomationsdk/variableoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IVariableOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the create variable operation.
 /// </param>
 /// <returns>
 /// The response model for the create variable operation.
 /// </returns>
 public static VariableCreateResponse Create(this IVariableOperations operations, string automationAccount, VariableCreateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IVariableOperations)s).CreateAsync(automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Create a variable.  (see
 /// http://aka.ms/azureautomationsdk/variableoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IVariableOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the create variable operation.
 /// </param>
 /// <returns>
 /// The response model for the create variable operation.
 /// </returns>
 public static Task<VariableCreateResponse> CreateAsync(this IVariableOperations operations, string automationAccount, VariableCreateParameters parameters)
 {
     return operations.CreateAsync(automationAccount, parameters, CancellationToken.None);
 }