Metric Alerts - Delete

Delete an alert rule definition.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}?api-version=2018-03-01

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The name of the resource group. The name is case insensitive.

ruleName
path True

string

The name of the rule.

subscriptionId
path True

string

The ID of the target subscription.

api-version
query True

string

The API version to use for this operation.

Responses

Name Type Description
200 OK

Successful request to delete an metric alert rule

204 No Content

No content: the request was successful, but the response is empty

Other Status Codes

ErrorResponse

BadRequest

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Delete an alert rule

Sample request

DELETE https://management.azure.com/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Insights/metricAlerts/chiricutin?api-version=2018-03-01

Sample response

Definitions

Name Description
AdditionalInfo

An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.

Error
ErrorDetail

Describes details of an error response.

ErrorResponse

Describes the format of Error response.

AdditionalInfo

An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.

Name Type Description
info

object

The additional information specific to the type.

type

string

The type of additional information.

Error

Name Type Description
additionalInfo

AdditionalInfo[]

An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.

code

string

Unlocalized string which can be used to programmatically identify the error.

details

ErrorDetail[]

An array of additional nested error response info objects, as described by this contract.

message

string

Describes the error in detail and provides debugging information. If Accept-Language is set in the request, it must be localized to that language.

target

string

The target of the particular error (for example, the name of the property in error).

ErrorDetail

Describes details of an error response.

Name Type Description
additionalInfo

AdditionalInfo[]

An array of objects with 'type' and 'info' properties. The schema of 'info' is service-specific and dependent on the 'type' string.

code

string

Unlocalized string which can be used to programmatically identify the error.

message

string

Describes the error in detail and provides debugging information.

target

string

The target of the particular error (for example, the name of the property in error).

ErrorResponse

Describes the format of Error response.

Name Type Description
error

Error