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