Format Types/Azure.ResourceGroup.format.ps1xml
<?xml version="1.0" encoding="utf-8" ?> <Configuration> <ViewDefinitions> <View> <Name>AzureResourceGroup</Name> <ViewSelectedBy> <TypeName>Microsoft.Azure.Commands.Resources.Models.PSResourceGroup</TypeName> </ViewSelectedBy> <TableControl> <TableHeaders> <TableColumnHeader> <Width>30</Width> </TableColumnHeader> <TableColumnHeader> <Width>14</Width> </TableColumnHeader> <TableColumnHeader> <Width>12</Width> </TableColumnHeader> <TableColumnHeader> <Width>50</Width> </TableColumnHeader> </TableHeaders> <TableRowEntries> <TableRowEntry> <TableColumnItems> <TableColumnItem> <PropertyName>ResourceGroupName</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>Location</PropertyName> </TableColumnItem> <TableColumnItem> <PropertyName>ProvisioningState</PropertyName> </TableColumnItem> <TableColumnItem> <ScriptBlock>$PSItem.Tags | ForEach-Object -Begin { $TagList = '' } -Process { $TagList += '{0}={1};' -f $PSItem.Name, $PSItem.Value; } -End { $TagList }</ScriptBlock> </TableColumnItem> </TableColumnItems> </TableRowEntry> </TableRowEntries> </TableControl> </View> </ViewDefinitions> </Configuration> |