Generate PowerShell Script from actions user takes in Azure Management Portal.
When a user performs one or more action in the Azure Management Portal that results in an activity in Azure the equivalent PowerShell scriptlet should be generated and the user be allowed to download it. This is similar to other Microsoft products that provide PowerShell script access for actions completed via the UI.
This is a great idea. We are thinking about adding such functionality to the Portal. No confirmed plan yet. Thanks.
Neil G. commented
If there was any of the following:
a) "Generate Automation" for Selected Object (.i.e. Powershell + Resource Template + Param file)
b) Generate Automation for Objects with TAG "X" (again Powershell + Resource template + param files)
c) Backup existing subscription configuration (again powershell + Resource Templates + param files + Exception log of services that had to be skipped)
Any of those would be very helpful :)
#c would be helpful if you needed to move a configuration to a new subscription - such as if you were Pay-As-You-Go but wanted to switch to either Open or EA license.
MGC Mike commented
This would be great if every action you can perform in the portal (new or old) UI had a corresponding cmdlet or even a working REST API version you could call from PS. Example: Enabling and disabling alert rules. I'm struggling to automate some no-brainer things, like disabling an alert rule before a deployment and then enabling it again when complete.
Do this not only for actions taken in portal but also for existing azure entities. It would be great to have the ability to script everything that is needed to recreate the current VM, Role, Site, DB Server, Whatever.
Olav Tollefsen commented
It would be nice if you could create a Resource Group template based on resources deployed via the portal.
Robert Wilson commented
will test when you have something.