Azure / Azure/azure-powershell

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

Open
#21,235 1 comment 0 reactions 2 assignees Claimed by @ryanosh View on GitHub
bug DesktopVirtualization Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### 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 :
CloudPcResource : False
Description :
Etag :
FriendlyName :
Id : /
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

```PowerShell
N/A
```

### Environment data

```PowerShell
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

```PowerShell
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

```PowerShell
N/A
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.