Use Admin portal tasks to generate PowerShell
The various admin portals are fine for small tasks, and the use of PowerShell for automation of larger tasks is great. However, we really need to link these two together in a meaningful way. At the moment, if you intent to automate something via PowerShell, you need to read all manner of examples and docs, then attempt to write the scripts yourself; often needing different modules, different commands, and concerning different tenants SKUs. This is all further complicated, as existing documentation might suggest the use of a module such as MSOnline for certain activities, even though the support was actually added to the AzureAD module instead (and often the Preview version at that). Furthermore, the commands across modules are usually entirely different, so if Microsoft deprecates one way in favour of another, not even docs and examples will help you. It's a bit of a mess. I'd really love it if the Admin portal would offer a way to display the currently-pending action as a PowerShell command, in addition to the "Save" which would actually commit the action. That way, we can utilise the admin UI to enhance our tenant-specific skills in PowerShell scripting.
This isn't without precedent either. I am reminded of installers like Exchange Server, which would allow you to see the commands you were about to run as PowerShell; and did allow admins to copy these out and automate the actions in the future (should they desire).
NOTE: I see some other, popular, feedback requesting a PowerShell interface within the Admin portal, for running commands. I feel my feedback is an expansion of this feature request; and being able to generate and run PowerShell directly in the admin areas would be hugely beneficial.

1 comment
-
Star D. commented
out of votes, but supported