Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about update Az Module related to #5 #15

Closed
hannwang1 opened this issue Jul 6, 2019 · 2 comments
Closed

Question about update Az Module related to #5 #15

hannwang1 opened this issue Jul 6, 2019 · 2 comments

Comments

@hannwang1
Copy link

I have an automation account I am going to only use Az module. From Azure doc https://docs.microsoft.com/en-us/azure/automation/az-modules, AzureRM modules are still installed when create automation account and there is no way to remove the AzureRM modules. The doc says "When a new Automation Account is created the existing AzureRM modules will still be installed and the tutorial runbooks will still be authored with AzureRM cmdlets." This means both AzureRM and Az modules are installed for my automation account. The ReadMe of this "Update-AutomationAzureModulesForAccount" says "Avoid starting this runbook on Automation accounts that contain both AzureRM and Az modules."

I am confused. My question is, can this runbook be used to update Az Modules on the automation account? Because every automation account will have AzureRM modules installed by default. I haven't found an option to remove AzureRM modules (the delete button is not available).
Thanks for your help in advance.

@AnatoliB
Copy link
Member

AnatoliB commented Jul 8, 2019

This advice is outdated, it should be removed:

Avoid starting this runbook on Automation accounts that contain both AzureRM and Az modules

Thank you for noticing this. Older versions of this runbook were not designed to handle Az modules well, so this advice was relevant. The latest version does not have this restriction, you just need to pass a correct value to the AzureModuleClass parameter.

@AnatoliB
Copy link
Member

AnatoliB commented Jul 8, 2019

README is fixed.

@AnatoliB AnatoliB closed this as completed Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants