Azure / Azure/azure-powershell

The -PipelineVariable doesn't work for a number of Get-AzAd* cmdlets

Open
#21,042 6 comments 0 reactions 1 assignee Claimed by @VeryEarly View on GitHub
Azure PS Team bug customer-reported Graph.Microsoft Tracking
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

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.