Azure / Azure/azure-powershell

[Feature]: Get-AzResourceGroup should support multiple Tags

Open
#27,714 1 comment 0 reactions 0 assignees View on GitHub
act-identity-squad ARM Azure PS Team customer-reported feature-request Investigate :mag: Tracking
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description of the new feature

Getting a single KV pair seems to work for Get-AzResourceGroup, but multiple tags seem to error.

The command `Get-AzResourceGroup -Tag @{"CostCenter" = "Platform" ; "Product" = "Stuff"}`

Currently gives error: `Get-AzResourceGroup: Invalid tag format. Expect @{tagName = $null} or @{tagName = "tagValue"}`

I noticed that Get-AzResource seems to work fine with multiple tags already.

### Proposed implementation details (optional)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the multiple-tag command shown in the issue, then compare Get-AzResourceGroup's tag handling with Get-AzResource, which already supports multiple tags. Locate the cmdlet implementation and its tests in the Azure PowerShell repository; done means the example accepts both tag pairs without the invalid-format error while existing single-tag behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, powershell
Domain
cli, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.