Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.27k stars 3.88k forks source link

Get-AzAutomationJobOutputRecord output not properly matching Azure Runbook output #21727

Open aphutter opened 1 year ago

aphutter commented 1 year ago

Description

The Get-AzAutomationJobOutput and Get-AzAutomationJobOutputRecord formatting is completely different from the same job's output in the AA RB itself. I misexpected the Get-AzAutomationJobOutputRecord command to be able to spit out the runjobs output in a similar format to the AA RB's output. Is there anyway i can manipulate the Get-AzAutomationJobOutputRecord output display to match that within the actual AA RB?

Thank you

Issue script & Debug output

Azure Automation Runbook Output:

Assigning dayNOC agents to their respective queue's

TenantId                                             : allmytenantnumbers
Name                                                 : allmynames
Identity                                             : allmyidentity
RoutingMethod                                        : RoundRobin
DistributionLists                                    : {}
Users                                                : {myagent}
DistributionListsLastExpanded                        : 5/8/2023 3:01:56 PM +00:00
Agents                                               : {myagent}
AllowOptOut                                          : False
ConferenceMode                                       : True
PresenceBasedRouting                                 : False
AgentsCapped                                         : False
AgentsInSyncWithDistributionLists                    : True
AgentAlertTime                                       : 60
LanguageId                                           : en-US
OverflowThreshold                                    : 200
OverflowAction                                       : Forward
OverflowActionTarget                                 : Microsoft.Rtc.Management.Hosted.CallQueue.Models.Target
OverflowSharedVoicemailTextToSpeechPrompt            : 
OverflowSharedVoicemailAudioFilePrompt               : 
OverflowSharedVoicemailAudioFilePromptFileName       : 
EnableOverflowSharedVoicemailTranscription           : False
EnableOverflowSharedVoicemailSystemPromptSuppression : False

Get-AzAutomationJobOutput(Record) output:


ResourceGroupName     : rgn
AutomationAccountName : aa
JobId                 : jid
StreamRecordId        : jid
Time                  : 2023-05-08 5:01:39 PM +00:00
Summary               :
Type                  : Output

Value                 : {[value,
                        Assigning dayNOC agents to their respective queue's]}
ResourceGroupName     : rgn
AutomationAccountName : aa
JobId                 : jid
Time                  : 2023-05-08 5:01:39 PM +00:00
Summary               :
                        Assigning dayNOC agents to their respective queue's
Type                  : Output

### Environment data

```PowerShell
$PsVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.4
PSEdition                      Core
GitCommitId                    7.3.4
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

PS C:\Windows\System32> Get-Module Az*

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     2.11.2                Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzConte…
Script     1.9.0                 Az.Automation                       {Export-AzAutomationDscConfiguration, Export-AzAu…

Error output

No response

ghost commented 1 year ago

Thank you for your feedback. This has been routed to the support team for assistance.

PramodValavala-MSFT commented 1 year ago

@aphutter Thanks for the feedback! We will review and update accordingly.

microsoft-github-policy-service[bot] commented 3 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jaspkaur28, @sanjkum.