Azure / Azure/azure-powershell
The -PipelineVariable doesn't work for a number of Get-AzAd* cmdlets
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
The -PipelineVariable doesn't work for a number of Get-AzAd* cmdlets (Get-AzADUser, Get-AzADGroup, Get-AzADApplication...).
The following command, for example, doesn't return anything:
```powershell
Get-AzADApplication -PipelineVariable app | ForEach-Object {$app.AppId}
```
### Issue script & Debug output
```PowerShell
$DebugPreference = 'Continue'
```
### Environment data
```PowerShell
$PSVersionTable
Name Value
---- -----
PSVersion 7.3.2
PSEdition Core
GitCommitId 7.3.2
OS Microsoft Windows 10.0.22000
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
AZ v9.4.0
```
### Error output
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.