ScopeExpression type

A Bicep scope: expression. Used on existing resource references for cross-RG / cross-subscription / cross-MG / cross-tenant lookups, and on modules to set the nested deployment scope.

Typed as Expression<unknown> because the natural producers are the scope-function helpers in fn (fn.resourceGroup(...), fn.subscription(...), fn.managementGroup(...), fn.tenant()), all of which return Expression<TScope> proxies. Narrowing further isn't worthwhile today since the set of acceptable scope-producing expressions isn't closed and Bicep validates the actual call shape downstream.

type ScopeExpression = Expression<unknown>