Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure deployment scopes using configuration files in VS Code deployment pane #13456

Open
mattias-fjellstrom opened this issue Feb 26, 2024 · 0 comments
Labels
enhancement New feature or request story: deploy pane

Comments

@mattias-fjellstrom
Copy link

Is your feature request related to a problem? Please describe.
The deployment pane is a fast and convenient way to deploy a Bicep file. However, it can be challenging to find the correct scope to deploy a file to. We have a large repository with many Bicep-files that are deployed to any of a large number of resource groups, subscriptions, or management groups.

Describe the solution you'd like
I would like to configure the deployment scope for a given Bicep-file using a separate configuration file. This would allow new users of the file to get the correct scope without any further research. This file would be checked in to the repository together with the Bicep files.

An example of what this could look like:

$ tree .
.
├── bicep-deployment-pane.json
├── main.bicep
└── other.bicep
// bicep-deployment-pane.json
{
  "main.bicep": {
    // resource-group scoped deployments only require a scope
    "scope": "/subscriptions/<id>/resourceGroups/<name>"
  },
  "other.bicep": {
    // subscription scoped deployments require a location too
    "scope": "/subscriptions/<id>",
    "location": "swedencentral"
  }
}

FYI:
I did a small investigation if there was a way to configure this using the VS Code configuration files, but have not been able to find any way. It seems like extension stores its state in the VS Code extension context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request story: deploy pane
Projects
Status: Todo
Development

No branches or pull requests

2 participants