question

JonathanJonJohnson-6229 avatar image
0 Votes"
JonathanJonJohnson-6229 asked SwathiDhanwada-MSFT commented

Importing SCCM cmblet Module into Azure Automation

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.

azure-automation
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@JonathanJonJohnson-6229 Did you get chance to look into community answer ? Kindly revert if you have any further questions.

0 Votes 0 ·

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @JonathanJonJohnson-6229 ,

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 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.