Azure / azure-powershell

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

Information traces for generated cmdlets do not provide any useful information about the command being run. #12896

Open Francisco-Gamino opened 4 years ago

Francisco-Gamino commented 4 years ago

Description

Information traces for generated cmdlets do not provide any useful information about the command being run.

When a user runs a command with -InformationAction Continue, additional messages are printed but no useful information is diplayed. E.g.,


PS E:\> Get-AzFunctionApp -Name MyFunctionName -ResourceGroupName MyResourceGroupName -InformationAction Continue
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData
Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.EventData

Name           Status  OSType  Runtime    Location   AppServicePlan       ResourceGroupName    SubscriptionId
----           ------  ------  -------    --------   --------------       -----------------    --------------
MyFunctionName Running Windows PowerShell Central US MyPlan-premiumplan   MyResourceGroupName  75ff11d7-900a-4cc3-9b62-ab65127957bd

Steps to reproduce

Environment data

Module versions

Debug output

Error output

dingmeng-xue commented 4 years ago

@Francisco-Gamino , normally we use -Debug or $DebugPreference="Continue". Please check if output is your expected.

The output on information level seems not make sense. We will remove redundant information.

Below issue is created. https://github.com/Azure/autorest.powershell/issues/689