Azure Automation module import stuck in “Importing newer version”

Lately I’ve seen this a few times at a customer, where we’re deploying Azure Automation and importing modules, as part of an ARM template. The module doesn’t finish importing, it’s just stuck in “Importing newer version”.

Luckilly, there’s an easy fix for this. Using Azure PowerShell we can remove the module, and import it again:

First do a Get-AzAutomationModule and you’ll see ProvisioningState is “Creating”:

Get-AzAutomationModule -ResourceGroupName RGNAME -AutomationAccountName AUTOMATIONACCOUNTNAME -Name MODULENAME | Remove-AzAutomationModule

That’s all..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s