Skip to main content

scheduled_query_rule

Creates, updates, deletes, gets or lists a scheduled_query_rule resource.

Overview

Namescheduled_query_rule
TypeResource
Idazure.monitor.scheduled_query_rule

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
networkSecurityPerimeterobjectInformation about a network security perimeter (NSP).
profileobject:vartype profile: ~azure.mgmt.monitor.models.NetworkSecurityProfile
provisioningIssuesarrayList of provisioning issues, if any.
provisioningStatestringKnown values are: "Succeeded", "Creating", "Updating", "Deleting", "Accepted", "Failed", and "Canceled". (Succeeded, Creating, Updating, Deleting, Accepted, Failed, Canceled)
resourceAssociationobject:vartype resource_association: ~azure.mgmt.monitor.models.ResourceAssociation
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_nspselectresource_group_name, rule_name, network_security_perimeter_configuration_name, subscription_idGets a network security perimeter configuration.
list_nspselectresource_group_name, rule_name, subscription_idGets a list of NSP configurations for specified scheduled query rule.
reconcile_nspexecresource_group_name, rule_name, network_security_perimeter_configuration_name, subscription_idReconcile network security perimeter configuration for ScheduledQueryRule resource.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
network_security_perimeter_configuration_namestringThe name for a network security perimeter configuration. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
rule_namestringThe name of the rule. Required.
subscription_idstring

SELECT examples

Gets a network security perimeter configuration.

SELECT
id,
name,
networkSecurityPerimeter,
profile,
provisioningIssues,
provisioningState,
resourceAssociation,
systemData,
type
FROM azure.monitor.scheduled_query_rule
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND rule_name = '{{ rule_name }}' -- required
AND network_security_perimeter_configuration_name = '{{ network_security_perimeter_configuration_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

Lifecycle Methods

Reconcile network security perimeter configuration for ScheduledQueryRule resource.

EXEC azure.monitor.scheduled_query_rule.reconcile_nsp 
@resource_group_name='{{ resource_group_name }}' --required,
@rule_name='{{ rule_name }}' --required,
@network_security_perimeter_configuration_name='{{ network_security_perimeter_configuration_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;