Default output for cmdlets should be displayed in table view
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
@vivsriaus please take a look
By design. We use the list output format pretty consistently across the Azure cmdlets.
@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
Reopened on request of @pcgeek86.
@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 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.
- 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
- [ ] 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
Closing in favor of more specific issues: #6583, #6582, #6581, #6580, #6579, #6578, #6577