Azure / Azure/azure-cli

The display name of Azure Policy assignment is optional or not

Open
#25,089 4 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-codegen-extensibility-squad Auto-Assign customer-reported Policy Portal question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

According to the document: https://learn.microsoft.com/en-us/cli/azure/policy/assignment?view=azure-cli-latest#az-policy-assignment-create-optional-parameters & https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/subscription_policy_assignment, **--display-name** is an optional parameter for Azure Policy Assignment.

However, the assignment name is required in Azure Portal. Yes, we can deploy the policy without display-name successfully. It is pretty confused for users since they see different behaviours in Azure Portal. Any ideas?
image

---
#### Document Details

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

* ID: 1c6760bb-c278-da56-a95c-4e82e221f1e8
* Version Independent ID: e25cbd2a-b415-214f-7d50-c403992c9361
* Content: [az policy assignment](https://learn.microsoft.com/en-us/cli/azure/policy/assignment?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/policy/assignment.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/policy/assignment.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.