Skip to content

Commit 674123b

Browse files
divyeshg94Divyesh GovaerdhananVeryEarly
authored
Start-AzAutomationRunbook Object ref error (#26924)
* Start-AzAutomationRunbook Object ref error * Update ChangeLog.md --------- Co-authored-by: Divyesh Govaerdhanan <[email protected]> Co-authored-by: Yabo Hu <[email protected]>
1 parent 17b0c4c commit 674123b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Automation/Automation/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed Bug: Start-AzAutomationRunbook throws object reference error when the automation account is not available in the subscription
2122
* Upgraded nuget package to signed package.
2223

2324
## Version 1.10.0

src/Automation/Automation/Common/AutomationPSClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2158,7 +2158,7 @@ private IDictionary<string, string> ProcessRunbookParameters(string resourceGrou
21582158
i++;
21592159
}
21602160
}
2161-
else
2161+
else if(runbook != null)
21622162
{
21632163
runbookParameters = runbook.Parameters.Cast<DictionaryEntry>().ToDictionary(k => k.Key.ToString(), k => (RunbookParameter)k.Value);
21642164

0 commit comments

Comments
 (0)