SuppressionsOperationsExtensions.Create Method

Definition

Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.

public static Microsoft.Azure.Management.Advisor.Models.SuppressionContract Create (this Microsoft.Azure.Management.Advisor.ISuppressionsOperations operations, string resourceUri, string recommendationId, string name, Microsoft.Azure.Management.Advisor.Models.SuppressionContract suppressionContract);
static member Create : Microsoft.Azure.Management.Advisor.ISuppressionsOperations * string * string * string * Microsoft.Azure.Management.Advisor.Models.SuppressionContract -> Microsoft.Azure.Management.Advisor.Models.SuppressionContract
<Extension()>
Public Function Create (operations As ISuppressionsOperations, resourceUri As String, recommendationId As String, name As String, suppressionContract As SuppressionContract) As SuppressionContract

Parameters

operations
ISuppressionsOperations

The operations group for this extension method.

resourceUri
String

The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.

recommendationId
String

The recommendation ID.

name
String

The name of the suppression.

suppressionContract
SuppressionContract

The snoozed or dismissed attribute; for example, the snooze duration.

Returns

Applies to