Azure / bicep

Bicep is a declarative language for describing and deploying Azure resources
MIT License
3.21k stars 746 forks source link

Improve Insert Azure Resource Command #6971

Open ucheNkadiCode opened 2 years ago

ucheNkadiCode commented 2 years ago

We still have an ask out for https://github.com/microsoft/vscode-azureresourcegroups/issues/139 but I was thinking about ways we could simplify the command. Right now users generally have to go all the way to the azure portal, navigate into their specific resource group, and find where the resource ID of that Azure resource lives.

Since we are leveraging the Azure SDK, there may be a better way.

Suggested flow:

  1. The user selects Insert Resource Command
  2. We ask which file with the active editor default to first choice (current behavior)
  3. They are given an option of Enter value (current behavior) wherein they can paste the URL of the Azure Resource, or Search (new behavior).
  4. If user selects "Search" we ask for Subscription (or if they only have one subscription we would skip)
  5. We ask for resource group
  6. Then we provide a drop down of the available resources (that are translatable to bicep) in their resource group
  7. User selects a resource and BOOM, it gets pasted in the file they chose
alex-frankel commented 2 years ago

investigate using resource groups extension w/ bicep