/// <summary> /// Delete the dsc node identified by node id. /// <see href="http://aka.ms/azureautomationsdk/dscnodeoperations" /> /// </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='nodeId'> /// The node id. /// </param> public static void Delete(this IDscNodeOperations operations, string resourceGroupName, string automationAccountName, string nodeId) { operations.DeleteAsync(resourceGroupName, automationAccountName, nodeId).GetAwaiter().GetResult(); }
/// <summary> /// Delete the dsc node identified by node id. (see /// http://aka.ms/azureautomationsdk/dscnodeoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IDscNodeOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. Automation account name. /// </param> /// <param name='nodeId'> /// Required. The node id. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IDscNodeOperations operations, string resourceGroupName, string automationAccount, Guid nodeId) { return(operations.DeleteAsync(resourceGroupName, automationAccount, nodeId, CancellationToken.None)); }