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:

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s