Scheduled Query Rules - Delete

Deletes a scheduled query rule.

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}?api-version=2023-03-15-preview

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.

Regex pattern: ^[^#<>%&:\?/{}*]{1,260}$

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 a scheduled query rule

204 No Content

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

Other Status Codes

ErrorContract

Error response describing why the operation failed.

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 a scheduled query rule

Sample request

DELETE https://management.azure.com/subscriptions/dd4bfc94-a096-412b-9c43-4bd13e35afbc/resourceGroups/QueryResourceGroupName/providers/Microsoft.Insights/scheduledQueryRules/heartbeat?api-version=2023-03-15-preview

Sample response

Definitions

Name Description
ErrorContract

Describes the format of Error response.

ErrorResponseAdditionalInfo

The resource management error additional info.

ErrorResponseDetails

Error Response

ErrorContract

Describes the format of Error response.

Name Type Description
error

ErrorResponseDetails

Error Response
The error details.

ErrorResponseAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorResponseDetails

Error Response

Name Type Description
additionalInfo

ErrorResponseAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorResponseDetails[]

The error details.

message

string

The error message.

target

string

The error target.