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

Auto discover AA account if executen in AA #8

Closed
wants to merge 3 commits into from
Closed

Auto discover AA account if executen in AA #8

wants to merge 3 commits into from

Conversation

mortenlerudjordet
Copy link

Added logic for autodiscover of AA account, and made ResourceGroupName and AutomationAccountName optional input parameter. So the logic still can be run from outside AA.

@AnatoliB
Copy link
Member

@mortenlerudjordet Thank you, this PR looked like a good idea to me. I would just ask you to do it after PR#6 is merged, to make sure Az modules are supported and not mixed with AzureRM.

@mortenlerudjordet
Copy link
Author

mortenlerudjordet commented Jun 8, 2019

@AnatoliB : I modified Update-ModulesInAutomationToLatestVersion in the AA team github instead, and split it into two parts one for importing modules from PSGallery like Az, and one for updating either all modules or only the Azure ones. Liked the recursion of the module and did the work on that instead.

https://github.com/mortenlerudjordet/runbooks/blob/Dev/Utility/ARM/Import-PSGalleryModulesToAA.ps1

https://github.com/mortenlerudjordet/runbooks/blob/Dev/Utility/ARM/Import-PSGalleryModulesToAAaz.ps1

https://github.com/mortenlerudjordet/runbooks/blob/Dev/Utility/ARM/Update-PSGalleryModulesInAA.ps1

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

Successfully merging this pull request may close these issues.

2 participants