Skip to main content

policy_metadata

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

Overview

Namepolicy_metadata
TypeResource
Idazure.policy_insights.policy_metadata

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.
additionalContentUrlstringUrl for getting additional content about the resource metadata.
categorystringThe category of the policy metadata.
descriptionstringThe description of the policy metadata.
metadataobjectAdditional metadata.
metadataIdstringThe policy metadata identifier.
ownerstringThe owner of the policy metadata.
requirementsstringThe requirements of the policy metadata.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
titlestringThe title of the policy metadata.
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_resourceselectresource_nameGet policy metadata resource.
listselect$topGet a list of the policy metadata resources.

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
resource_namestringThe name of the policy metadata resource. Required.
$topintegerMaximum number of records to return. Default value is None.

SELECT examples

Get policy metadata resource.

SELECT
id,
name,
additionalContentUrl,
category,
description,
metadata,
metadataId,
owner,
requirements,
systemData,
title,
type
FROM azure.policy_insights.policy_metadata
WHERE resource_name = '{{ resource_name }}' -- required
;