/// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Monitoring.Autoscale.ISettingOperations.
 /// </param>
 /// <param name='resourceId'>
 /// The resource ID.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse Delete(this ISettingOperations operations, string resourceId)
 {
     try
     {
         return(operations.DeleteAsync(resourceId).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Monitoring.Autoscale.ISettingOperations.
 /// </param>
 /// <param name='resourceId'>
 /// The resource ID.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteAsync(this ISettingOperations operations, string resourceId)
 {
     return(operations.DeleteAsync(resourceId, CancellationToken.None));
 }