Forum Discussion
Restricting global admin powershell scheduled task
Ben Curran
As Thijs mentioned, I would stay away from scripts running as GA.
And is this VM only for this script? Maybe consider moving this script to a Workbook and schedule, or if you need logs etc, maybe an Azure Function. Then there is no worry about IP and blocking this script from ever "leaving" Azure.
Of course, depends on what the script does, but if it needs GA, it sounds like it runs towards Azure services.
- Ben CurranJan 14, 2021Brass Contributor
Hi both, thanks for your input. I have done some further investigation and it looks like we may be able to use an automation account for this task. I agree I also dont like using any account with GA for any task if it can be avoided. I'll see how we get on with this new direction and if it doesnt work, will look at what you have recommended
Thanks