Skip to main content

vw_governance_rules

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

Overview

Namevw_governance_rules
TypeView
Idazure.security.vw_governance_rules

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
type as type,
systemData as system_data,
JSON_EXTRACT(properties, '$.tenantId') as "tenant_id",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.remediationTimeframe') as "remediation_timeframe",
JSON_EXTRACT(properties, '$.isGracePeriod') as "is_grace_period",
JSON_EXTRACT(properties, '$.rulePriority') as "rule_priority",
JSON_EXTRACT(properties, '$.isDisabled') as "is_disabled",
JSON_EXTRACT(properties, '$.ruleType') as "rule_type",
JSON_EXTRACT(properties, '$.sourceResourceType') as "source_resource_type",
JSON_EXTRACT(properties, '$.excludedScopes') as "excluded_scopes",
JSON_EXTRACT(properties, '$.conditionSets') as "condition_sets",
JSON_EXTRACT(properties, '$.includeMemberScopes') as "include_member_scopes",
JSON_EXTRACT(properties, '$.ownerSource') as "owner_source",
JSON_EXTRACT(properties, '$.governanceEmailNotification') as "governance_email_notification",
JSON_EXTRACT(properties, '$.metadata') as "metadata",
scope,
ruleId
FROM azure.security.governance_rules
WHERE scope = 'replace-me';