/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.IMonitoringConfigurationOperations. /// </param> /// <param name='resourceUri'> /// Required. The resource identifier of the configuration. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the operation. /// </param> /// <returns> /// The create or update monitoring setting response. It's marked as /// empty. We only pass it to ensure json error handling. /// </returns> public static MonitoringConfigurationCreateOrUpdateResponse CreateOrUpdateStorageConfiguration(this IMonitoringConfigurationOperations operations, string resourceUri, CreateOrUpdateStorageConfigurationParameters parameters) { return(Task.Factory.StartNew((object s) => { return ((IMonitoringConfigurationOperations)s).CreateOrUpdateStorageConfigurationAsync(resourceUri, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult()); }
/// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Insights.IMonitoringConfigurationOperations. /// </param> /// <param name='resourceUri'> /// Required. The resource identifier of the configuration. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the operation. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <OperationResponse> UpdateStorageConfigurationAsync(this IMonitoringConfigurationOperations operations, string resourceUri, CreateOrUpdateStorageConfigurationParameters parameters) { return(operations.UpdateStorageConfigurationAsync(resourceUri, parameters, CancellationToken.None)); }