Azure / Azure/azure-cli

az policy assignment create is missing metadata argument

Open
#30,713 2 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM Auto-Assign Azure CLI Team customer-reported potential-pruning question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

`az policy assignment create` & `az policy assignment update` and are missing the metadata argument. This is necessary to provide, among else, the category information.

![Image](https://github.com/user-attachments/assets/e56c9a13-2dd9-4101-a727-0cc16751fb69)

Azure PowerShell module (Az.Resources) cmdlet [New-AzPolicyAssignment](https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azpolicyassignment?view=azps-13.1.0) & [Update-AzPolicyAssignment](https://learn.microsoft.com/en-us/powershell/module/az.resources/update-azpolicyassignment?view=azps-13.1.0) do provide the argument `-Metadata`

similar to issues #5798 & #10768

# Environment Summary
Install Method is `curl -sL https://aka.ms/InstallAzureCLIDeb | bash `
Host OS: MacOS 15.2 (Intel)
DevContainer: Ubuntu:22.04

![Image](https://github.com/user-attachments/assets/b9959824-509c-4d66-ac9e-c17aac0b2b82)

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.