microsoft / microsoft/vscode-azureresourcegroups

Copy resource ID button on resources

Open
#139 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
TypeScript
Stars
78
Forks
55
Avg merge
16h 49m
Merged PRs (30d)
139

Description

Based on feedback in https://github.com/Azure/bicep/issues/6256 - @majorku5anagi
This is related to #138.

In the case that the user wants to paste their text in a specific Bicep file and doesn't want a resource-equivalent Bicep file to be created anew, it would be great to right click on any resource and have the option for "Copy Resource ID" -> this would likely be useful for more cases than just Bicep. Right now it is a poor solution that users find themselves navigating to the Azure portal or sifting through properties to get this commonly needed attribute.

Scenario:

  • User right clicks on a resource and selects "Copy Resource ID"
  • User navigates to a Bicep file of their choice and places the cursor where they want
  • User hits Ctrl + Shift + P -> Bicep: Insert snippet from resource
  • User pastes this resource id and hits enter to complete the command

Tagging @alex-frankel as well.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing resource right-click actions and the “Bicep: Insert snippet from resource” command described in the issue. Done means a resource offers “Copy Resource ID,” the value reaches the clipboard, and the described insert-snippet workflow accepts it.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript, vscode
Domain
cloud, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.