Importing SCCM cmblet Module into Azure Automation

Jonathan (Jon) Johnson 1 Reputation point
2021-04-15T22:11:58.453+00:00

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,172 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 101.5K Reputation points MVP
    2021-04-16T06:16:49.203+00:00

    Hi @Jonathan (Jon) Johnson ,

    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

    0 comments No comments