Azure / Azure/azure-cli

az policy definition show

Open
#16,687 1 comment 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
feature-request Policy
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Can you change the "az policy definition show --name" parameter to actually be the policy name, it currently uses the definition id. I want to get the id once I have created it, by using the name

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 436bf02d-dfe3-ef6e-2be8-1bd7b1f39623
* Version Independent ID: e8b92df3-9e3d-c4c7-1965-0b6b3f7d00ea
* Content: [az policy definition](https://docs.microsoft.com/en-us/cli/azure/policy/definition?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/policy/definition.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/master/latest/docs-ref-autogen/policy/definition.yml)
* Service: **azure-resource-manager**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.