azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Default output for cmdlets should be displayed in table view

Open pcgeek86 opened this issue 11 years ago • 9 comments

The default output format for Get-AzureResourceGroup should be tabular, not list.

This can be accomplished using PowerShell "type formatting" files <type>.format.ps1xml.

https://technet.microsoft.com/en-us/library/Hh847831.aspx

Cheers, Trevor Sullivan Microsoft MVP PowerShell http://trevorsullivan.net http://twitter.com/pcgeek86

pcgeek86 avatar Sep 06 '15 18:09 pcgeek86

@vivsriaus please take a look

stankovski avatar Sep 09 '15 16:09 stankovski

By design. We use the list output format pretty consistently across the Azure cmdlets.

ravbhatnagar avatar Feb 12 '16 01:02 ravbhatnagar

@ravbhatnagar This might be "by design," but it's not very useful in list form. Please re-open, and reconsider the usability aspect. In this case, there might be an opportunity to improve formatting across the board for this module, or at least in key areas, like Resource Groups.

Customers need to visually consume this information, and it makes the most sense in tabular form, considering the data we're dealing with here.

Cheers, Trevor Sullivan Microsoft MVP: PowerShell

pcgeek86 avatar Feb 13 '16 01:02 pcgeek86

Reopened on request of @pcgeek86.

devigned avatar Feb 13 '16 16:02 devigned

@pcgeek86 - Can you please provide more insight into your recommendation here? We do have the option of using the built in PS output formatting options?

ravbhatnagar avatar Apr 14 '16 22:04 ravbhatnagar

@ravbhatnagar grab the most important properties from the object and emit those formatted as a table, instead of list form. As a general rule, customers don't need the full ResourceId, and just want to see basic user-defined data, such as Resource Group Name, Location, and Tags. This is much more human-consumable in tabular form.

pcgeek86 avatar Apr 18 '16 10:04 pcgeek86

  • Single object: table
  • Multiple objects: table
  • Provide list view for output objects so user can pipe result to fl
  • In the future, look to use list view by default for single object

cormacpayne avatar Jan 30 '18 23:01 cormacpayne

  • [ ] Update documentation for default table view using new tools (as above)
    • [x] Include mechanisms for marking output properties for inclusion in table view
  • [ ] Work with core teams to change default to table view for their cmdlets
    • [ ] Profile
    • [ ] Compute
    • [ ] Resource Manager
    • [ ] Network
    • [ ] Storage
    • [ ] KeyVault
    • [ ] WebApps
    • [ ] Sql
    • [ ] Automation

markcowl avatar Feb 12 '18 03:02 markcowl

Closing in favor of more specific issues: #6583, #6582, #6581, #6580, #6579, #6578, #6577

vladimir-shcherbakov avatar Jul 16 '18 21:07 vladimir-shcherbakov