/// <summary>
 /// Delete the module by name.
 /// <see href="http://aka.ms/azureautomationsdk/moduleoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='moduleName'>
 /// The module name.
 /// </param>
 public static void Delete(this IModuleOperations operations, string resourceGroupName, string automationAccountName, string moduleName)
 {
     operations.DeleteAsync(resourceGroupName, automationAccountName, moduleName).GetAwaiter().GetResult();
 }
Exemple #2
0
 /// <summary>
 /// Delete the module by name.  (see
 /// http://aka.ms/azureautomationsdk/moduleoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IModuleOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='moduleName'>
 /// Required. The module name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IModuleOperations operations, string automationAccount, string moduleName)
 {
     return(operations.DeleteAsync(automationAccount, moduleName, CancellationToken.None));
 }