Example #1
0
 /// <summary>
 /// Stop 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> StopAsync(this IWatcherOperations operations, string resourceGroupName, string automationAccount, string watcherName)
 {
     return(operations.StopAsync(resourceGroupName, automationAccount, watcherName, CancellationToken.None));
 }
Example #2
0
 /// <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 Stop(this IWatcherOperations operations, string resourceGroupName, string automationAccountName, string watcherName)
 {
     operations.StopAsync(resourceGroupName, automationAccountName, watcherName).GetAwaiter().GetResult();
 }