microsoft / vscode-azurearmtools

Azure Resource Manager Tools for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=msazurermtools.azurerm-vscode-tools
MIT License
136 stars 81 forks source link

Azure CLI deployment command palette #1236

Open MarcusFelling opened 3 years ago

MarcusFelling commented 3 years ago

I would like the ability to run common Azure CLI deployment commands from the palette. This would make it easier to deploy the template I'm working on, without needing to remember the commands and required parameters. The palette could assist with inserting required arguments and optional parameters.

Common commands I run: az deployment group create --mode Incremental --resource-group example-rg --template-file azuredeploy.json az deployment group what-if --mode Incremental --resource-group example-rg --template-file azuredeploy.json az deployment sub create --location WestUS --template-file azuredeploy.json az deployment sub what-if --location WestUS --template-file azuredeploy.json

slapointe commented 3 years ago

Because of Governance, I often target management groups like this:

az deployment mg create --mode Incremental --management-group-id example-mg --template-file azuredeploy.json az deployment mg what-if --mode Incremental --management-group-id example-mg --template-file azuredeploy.json