Azure-docs: The Runbook will Add the AZ modules but cannot remove the old AzureRM

Created on 23 Aug 2019  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-docs

When a new Automation account is created it comes by pre-installed with AzureRM modules.
This runbook will add the AZ modules no worries. But it does not remove the AzureRM. Neither you can delete the old AzureRm modules


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 automatiosvc cxp process-automatiosubsvc product-question triaged

All 3 comments

@omerzubair Thanks for the comment. We are actively investigating on your ask and will get back to you shortly with an update.

Hi @omerzubair You will not be able to delete global modules - modules that Automation provides out of the box. Same note is added in the document now.

Easiest way to find which all modules in your Automation account are global is by using PowerShell cmdlet Get-AzAutomationModule as shown below.

Get-AzAutomationModule -AutomationAccountName "<AutomationAccountName>" -ResourceGroupName "<ResourceGroupName>" | Select Name, IsGlobal

In the output, if the value corresponding to 'IsGlobal' Parameter is 'True' then that particular module is a global module. Hope this helps!

@omerzubair Verified that the document is updated with the changes. Closing this issue for now. If there are further questions regarding this matter or feedback on the documentation, please do let us know and we will gladly continue the discussion.

Was this page helpful?
0 / 5 - 0 ratings