Azure / Azure/bicep

Improve Insert Azure Resource Command

Open
#6,971 1 comment 1 reaction 0 assignees View on GitHub
devdiv enhancement story: decompiler
Dominant language
Bicep
Stars
3.6k
Forks
830
Avg merge
1d 4h
Merged PRs (30d)
81

Description

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

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing Insert Resource Command flow and the related vscode-azureresourcegroups issue 139. Trace how the current file selection and Enter value paths work, then define the subscription, resource-group, search, and Bicep-compatible resource selection flow; done means a selected resource is inserted into the chosen file.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.