I'm looking for information on how to accomplish importing SCCM Cmdlet module into Azure Automation so I can use the SCCM cmdlets inside of a powershell runbook.
I'm looking for information on how to accomplish importing SCCM Cmdlet module into Azure Automation so I can use the SCCM cmdlets inside of a powershell runbook.
@JonathanJonJohnson-6229 Did you get chance to look into community answer ? Kindly revert if you have any further questions.
this blog post describes how to a a custom module into Azure Automation.
https://blog.kloud.com.au/2018/05/23/creating-your-own-powershell-modules-for-azure-automation-part-1/
Maybe this helps to get the SCCM module imported into Azure Automation.
The PowerShell runbook is planned to be executed by Azure Hybrid Workers (on-premises)? If so, you don't need the module in Azure Automation. Just install the module on every Hybrid Worker. This should work, at least it did here with the SCSM SMLets cmdlets.
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
5 people are following this question.