Azure / Azure/azure-powershell
Output section is not shown in Auto-generated cmdlets' examples in PowerShell
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
For auto-generated cmdlets, the output section is not shown when running the command `Get-Help -Full`.
```
PS D:\code\azure-powershell\src\StorageMover [Az.StorageMover]> get-help get-azstoragemover -examples
NAME
Get-AzStorageMover
SYNOPSIS
Gets a Storage Mover resource.
-------------------------- EXAMPLE 1 --------------------------
PS > Get-AzStorageMover
-------------------------- EXAMPLE 2 --------------------------
PS > Get-AzStorageMover -ResourceGroup myResourceGroup
```
The expected behavior is to have the output printed under the example as input.
```
Get-AzStorageMover
```
```
Location Name
-------- ----
eastus myStorageMover1
eastus myStorageMover2
```
### Issue script & Debug output
```PowerShell
PS D:\code\azure-powershell\src\StorageMover [Az.StorageMover]> get-help get-azstoragemover -examples
NAME
Get-AzStorageMover
SYNOPSIS
Gets a Storage Mover resource.
-------------------------- EXAMPLE 1 --------------------------
PS > Get-AzStorageMover
-------------------------- EXAMPLE 2 --------------------------
PS > Get-AzStorageMover -ResourceGroup myResourceGroup
```
### Environment data
```PowerShell
Name Value
---- -----
PSVersion 7.2.5
PSEdition Core
GitCommitId 7.2.5
OS Microsoft Windows 10.0.19044
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
N/A
```
### Error output
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.