-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-AzAutomationJob (Az.Automation 1.7.0): Conversion from JSON failed with error: Unexpected character encountered while parsing value #15707
Comments
Following up, I tested on Windows PowerShell and the cmdlet worked as expected, so this must be an issue with PS7.
Output of
Output of
|
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jaspkaur28. Issue DetailsDescription
Steps to reproduceGet-AzAutomationJob -Id 'MYJOBID' -AutomationAccountName 'MYAA' -ResourceGroupName 'MYAARESOURCEGROUP' Environment data
Module versionsModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 2.5.2 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzContextAutosave,…
Script 1.7.0 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomati…
Script 4.16.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New…
Script 3.4.5 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertific…
Script 0.11.0 Az.ResourceGraph Core,Desk {Search-AzGraph, Get-AzResourceGraphQuery, New-AzReso…
Script 4.3.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAssignment, Ge…
Script 3.10.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccountKey, New-A…
Script 1.0.4 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-A…
Manifest 2.1.0 AzTable Desk {Add-AzTableRow, Get-AzTableRow, Get-AzTableRowAll, G… Debug output
Error output
|
Hi @jaspkaur28 do you have any information to provide regarding this issue? |
Haven't been able to repro the issue on my machine. I am using windows 10.
|
@RylandDeGregory Is it only happening for a certain Linux distro? |
@mahakjain314, I use MacOS Big Sur 11.5.2 on a M1 MacBook Air. |
@RylandDeGregory Would it be possible for you to share the job parameters from the debug response? |
Hey @mahakjain314 it looks like I am no longer able to reproduce the issue...? I haven't changed anything about my environment, so I'm not sure why it works now... |
Excellent. Good to hear that. Maybe try with the same job id once for which you originally raised the issue? It had some parameters. |
I tried again with the original job and it is also now working. The job parameters contain resource names and IDs that are private in nature, so unfortunately I cannot share the specific values in a public forum. Thank you for your assistance! |
Description
Get-AzAutomationJob
fails on the latest version of Az.Automation with an error about JSON parsing. This error is identical to #7977 but on a different cmdlet...Steps to reproduce
Environment data
Module versions
Debug output
Error output
The text was updated successfully, but these errors were encountered: