Open
Description
Library name
Azure.Provisioning 1.0.0
Please describe the feature.
The FromExisting
methods that are exposed on resource types in the library take a resource identifier and a version.
As a result, it's not possible to reference existing resources that have been scoped to a resource group or subscription as defined in https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-scope.
Also, it doesn't appear like there are properties to set on the resulting resource types to configure the scope after the fact.
It's possible to manually workaround this issue by building out the expression manually but a helper would be nice.
Would it be possible to expand the behavior of FromExisting
so that scopes can be set on the target resource?