Skip to content

Commit

Permalink
Start-AzAutomationRunbook Object ref error (#26924)
Browse files Browse the repository at this point in the history
* Start-AzAutomationRunbook Object ref error

* Update ChangeLog.md

---------

Co-authored-by: Divyesh Govaerdhanan <divyesh.govaerdhanan@plateauinc.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
  • Loading branch information
3 people authored Jan 8, 2025
1 parent 17b0c4c commit 674123b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Automation/Automation/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Fixed Bug: Start-AzAutomationRunbook throws object reference error when the automation account is not available in the subscription
* Upgraded nuget package to signed package.

## Version 1.10.0
Expand Down
2 changes: 1 addition & 1 deletion src/Automation/Automation/Common/AutomationPSClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@ private IDictionary<string, string> ProcessRunbookParameters(string resourceGrou
i++;
}
}
else
else if(runbook != null)
{
runbookParameters = runbook.Parameters.Cast<DictionaryEntry>().ToDictionary(k => k.Key.ToString(), k => (RunbookParameter)k.Value);

Expand Down

0 comments on commit 674123b

Please sign in to comment.