Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.87k forks source link

[Az.DesktopVirtualization] Default View output for Get-AzWvdWorkspace shows inappropriate properties #21235

Open JimMoyle opened 1 year ago

JimMoyle commented 1 year ago

Description

Get-AzWvdWorkspace -Name $WorkSpaceName -ResourceGroupName $ResourceGroupName

Shows the following as the default view

Get-AzWvdWorkspace -Name $WorkSpaceName -ResourceGroupName $ResourceGroupName

Etag IdentityPrincipalId IdentityTenantId IdentityType Kind Location ManagedBy Name                PlanName PlanProduct PlanPromotionCode PlanPublisher PlanVersion SkuCapacity SkuFamily SkuName SkuSize SkuTier
---- ------------------- ---------------- ------------ ---- -------- --------- ----                -------- ----------- ----------------- ------------- ----------- ----------- --------- ------- ------- -------
                                                            uksouth            TelemetryValidation

There are 16 properties shown by default, only 2 of which have values. It is also formatted as a table whereas if you want o show more than 5 properties the convention is a list.

Here are the possibilities:

ApplicationGroupReference : <removed for privacy>
CloudPcResource           : False
Description               : 
Etag                      : 
FriendlyName              : 
Id                        : /<removed for privacy>
Identity                  : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.Identity
IdentityPrincipalId       : 
IdentityTenantId          : 
IdentityType              : 
Kind                      : 
Location                  : uksouth
ManagedBy                 : 
Name                      : TelemetryValidation
ObjectId                  : 3ec67464-66f2-4af1-aa73-ca9890c482b2
Plan                      : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.Plan
PlanName                  : 
PlanProduct               : 
PlanPromotionCode         : 
PlanPublisher             : 
PlanVersion               : 
Sku                       : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.Sku
SkuCapacity               : 
SkuFamily                 : 
SkuName                   : 
SkuSize                   : 
SkuTier                   : 
Tag                       : Microsoft.Azure.PowerShell.Cmdlets.DesktopVirtualization.Models.Api10.ResourceModelWithAllowedPropertySetTags
Type                      : Microsoft.DesktopVirtualization/workspaces

I would suggest keeping it to <= 5 properties and for those to be non null

  1. Name
  2. Location
  3. Id

Are the properties I would suggest you show.

Issue script & Debug output

N/A

Environment data

Name                           Value
----                           -----
PSVersion                      7.3.3
PSEdition                      Core
GitCommitId                    7.3.3
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.11.2                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     3.1.1                 Az.DesktopVirtualization            {Disconnect-AzWvdUserSession, Expand-AzWvdMsixImage, Get-AzWvdApplication, Get-AzWvdApplicationGroup…}

Error output

N/A
microsoft-github-policy-service[bot] commented 2 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @alec-baird, @costinhagiu.