Share via


az policy metadata

Get policy metadata resources.

Commands

Name Description Type Status
az policy metadata list

List policy metadata resources.

Core GA
az policy metadata show

Get a single policy metadata resource.

Core GA

az policy metadata list

List policy metadata resources.

az policy metadata list [--top]

Examples

Get all policy metadata resources.

az policy metadata list

Get policy metadata resources, limit the output to 5 resources.

az policy metadata list --top 5

Optional Parameters

--top

Maximum number of records to return.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

az policy metadata show

Get a single policy metadata resource.

az policy metadata show --name

Examples

Get the policy metadata resource with the name 'ACF1000'.

az policy metadata show --name ACF1000

Required Parameters

--name -n

The name of the metadata resource.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.