Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-AzureResourceGroup tags property #397

Closed
DexterPOSH opened this issue May 16, 2015 · 6 comments
Closed

Get-AzureResourceGroup tags property #397

DexterPOSH opened this issue May 16, 2015 · 6 comments
Labels
ARM Service Attention This issue is responsible by Azure service team.
Milestone

Comments

@DexterPOSH
Copy link
Contributor

Get-AzureResourceGroup cmdlet returns PSResourceGroup with property Tags which are the Key-Value pairs , but the object's tag property returns the key of the tags as literal 'Name' and 'Value'. This is counter intuitive in my opinion.

For Example - added a tag Environment (Key)--> LAB (Value) to my Resource Group and would expect Tag to contain Environment as the key in the hashtable returned.

Current Result
PS> $ResourceGroups = Get-AzureResourceGroup | Where tags
PS>$ResourceGroups[0].tags

Name Value


Value LAB
Name Environment
Value TestValue
Name TestKey


Expected Result

PS> $ResourceGroups = Get-AzureResourceGroup | Where tags
PS>$ResourceGroups[0].tags

Name Value


Environment LAB
TeskKey TestValue

@ravbhatnagar
Copy link
Contributor

Unfortunately, currently the way the tag API is implemented is that it supports tagging resources with one value (ex - Lab) or two values (ex - Environment = Lab). We will look into how we can provide some better representation on top of it.

huangpf added a commit to AzureRT/azure-powershell that referenced this issue Feb 10, 2016
HPF PR: dev <- Azure:dev
@ravbhatnagar ravbhatnagar added this to the May 2016 milestone Apr 7, 2016
@ravbhatnagar
Copy link
Contributor

#726

@ravbhatnagar
Copy link
Contributor

We have a PR ready for fixing the usability of tags. This will be addressed as part of that. Since it was a breaking change we have postponed it to June release and added a deprecation message to state about the coming changes.

@ravbhatnagar
Copy link
Contributor

Since this turned out to be a change impacting a lot of cmdlets from different teams, we are pushing this out by a month. The reason is to fix this across the board for all Azure cmdlets and give some warning about the upcoming change to customers of all those different cmdlets. The warning we added in added the last release was only to a subset of these cmdlets.

So in the June release, all the cmdlets using this param will show this warning and then we will actually change it in the July release.

@ravbhatnagar ravbhatnagar modified the milestones: August 2016, July 2016 Aug 12, 2016
@ravbhatnagar
Copy link
Contributor

Fixed in Aug Release

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
@mozehgir mozehgir added the ARM label Aug 14, 2019
@ghost
Copy link

ghost commented Aug 14, 2019

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rthorn17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARM Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

6 participants