-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
GetAzureAutomationScheduledRunbook fails when schedule has credential parameters #3776
Comments
I ran into the same issue recently as well in #3744 In both cases it looks like the the sdk is expecting nested strings for the values. |
Hi, @jonsabo. Thanks. Looks like we're both hitting the same issue. |
@safeermohammed Hey Safeer, would you mind taking a look at this issue? |
Yes, looks like the cmdlet was expecting json value and was trying to deserialize the value (Convert-FromJson) hence the error "Invalid JSON primitive" Will take a look |
This is still an issue today with what I encountered. |
@safeermohammed Any update on this issue? |
This still seems to be an issue but doesn't necessarily require a credential parameter to generate an issue. I see the same problem if I try to use the cmdlet to get the ScheduledRunbook object from an Update Management schedule. There seems to be no traction to this issue at all in a year. Any plans to address this? |
I am still running into this issue. Any idea if/when this will be fixed? |
Cmdlet(s)
Get-AzureRmAutomationScheduledRunbook
PowerShell Version
Module Version
Get-Module
reports version ofAzureRM.Automation
is 2.7OS Version
10.0.15063.138
Description
I logged this because the Automation Team's script was failing on
Get-AzureRmAutomationScheduledRunbook
when the schedule had a Credential object associated with it.The exception:
Debug Output
The relevant section of the debug output is the JSON body response from the API call:
Script/Steps for Reproduction
Get-AzureRmAutomationScheduledRunbook
using the overload that takes as paramatersAutomationAccount
,ResourceGroup
,JobScheduleId
The text was updated successfully, but these errors were encountered: