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

Allow resource ID as deployment scope within module for increased flexibility #10555

Closed
JayDoubleu opened this issue Apr 27, 2023 · 1 comment
Labels
enhancement New feature or request Needs: Triage 🔍

Comments

@JayDoubleu
Copy link

Currently, bicep does not allow using a resource ID as a deployment scope within a module. Instead, it only accepts the bicep symbolic name. This means that I have to specifically call out the "existing" resource type and only then can I reference it in another resource, such as diagnostic settings.

This limitation makes it difficult to create a single diagnostic settings module that can handle different resource types. A potential solution would be to allow the scope within a module to be a resource ID as a string or enable the usage of a function such as resource('stringResourceId') as a scope for other resource deployments.

By implementing this feature, users would be able to create more flexible and reusable modules for managing diagnostic settings and other resources in terraform like style.

@JayDoubleu JayDoubleu added the enhancement New feature or request label Apr 27, 2023
@ghost ghost added the Needs: Triage 🔍 label Apr 27, 2023
@github-project-automation github-project-automation bot moved this to Todo in Bicep Apr 27, 2023
@alex-frankel
Copy link
Collaborator

Closing as dup of #2245/#2246

@github-project-automation github-project-automation bot moved this from Todo to Done in Bicep Apr 28, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Needs: Triage 🔍
Projects
Archived in project
Development

No branches or pull requests

2 participants