Add Generate Powershell Script options wherever possible in the Azure Management portal
Like in SQL server Management Studio - you can set up what you want to do and then click a Save as Script or Generate Script button to get the SQL that will do the same thing.
In the Azure Portal, it would be awesome at the end of the "New" wizards to have an option to generate the Powershell commands to do the same thing.
We have done a lot of progress on this area in last few years, and we would like to know if there is something scenario specific that you guys are looking for?
Azure Portal Team
Russ Freeman commented
I think generating the script for something complicated like setting up app gateway / WAF would be very useful. But I would think that once you have the basic code gen fundamentals in place, you could generate the code for any resource.
Mark Kurley commented
It would be nice to script a complete azure resource by select the resource. Some that would be helpfuly
- Application Gateway - scripts all the resources under the AG.
- Service Bus - creates all the queues, etc.. under it
- Scheduler - scripts all the resource under the scheduler
Michael O'Day commented
I'd like the abilityh to script any thing that makes a change - Save, Delete, Create, etc, have the ability to gernerate the code in POSH, CLI and Rest. If it's only possible in REST, then wrap the REST call in POSH.
I'd also LOVE to see the addition of a "Schedule" button for any type of change as well. Almost like a portal scheduler for one time operations where other scheduling methods are just too much. But that's another thing entirely....
Matthew Rowan commented
I'd love to setup my resource group with all the required pieces in the UI and then script the lot out so I can easily deploy the whole environment on dev's development azure instances and deployment to other regions.
Paulo Renato commented
please, do the same for Azure CLI - we have tons of people using Azure CLI from different platforms
Maxwell Bloch commented
The Azure team has made great strides in this area. Keep it up!
Teo De Las Heras commented
Yes, this would go a long way towards teaching DevOps. The Exchange team has also implemented this in their product to help teach Exchange admins PS / Automation and it was very successful.
This is an idea I would love to see become a reality. I would also like to see the option to show individual Powershell commands per task you are doing. For example I wouldn't want to create a whole new VM and hit generate script just to confirm one command. I would just like to add Storage account and click show me the Powershell command to do this.
David Bermingham commented
yeah, how else can we find these names in the meantime?
Maxwell Bloch commented
Quite a few ideas under review have to do with automation and repeatability. I'd love to see script generation, cloning, and templating!
Yoshihiro Kawabata commented
I want to build the Azure Automation Runbooks by the PowerShell script exported from Azure Preview portal.
shane liu commented
After doing some complex tasks in the portal, I want to get what I did recorded by script and then get these tasks automated. This would be a favorite feature by many administrators.
In order to automate everything. A utility that extracts a command or PowerShell REST calls from the UI of the Azure portal.
Ex: create a collection of job scheduling and then extract the REST calls to re-create them in the event of disaster recovery