I expect to run evaluation without thrown exception.
Error output
Exception calling "GetBicepResources" with "2" argument(s): "Unable to expand resources because the source file 'C:\Repositories\forms-render\infra\tests2\permissions.module.tests.bicep' was not valid. An error occurred evaluating expression '[length(variables('ehReadPrincipals'))]' line 214. An error occurred evaluating expression '[flatten(map(parameters('eventHubReceiver'), lambda('eh', map(lambdaVariables('eh').namespaces, lambda('x', lambdaVariables('eh').principal)))))]' line 202. The language expression property 'principal' doesn't exist.
Description of the issue
I have following bicep template to assert (permissions.bicep):
And I have following permissions.module.test.bicep for it (to resolve required parameters):
Additionally there is roleIds.json file referenced in permissions.bicep:
ps-rule.yaml:
To Reproduce
Steps to reproduce the issue:
Expected behaviour
I expect to run evaluation without thrown exception.
Error output
Module in use and version:
And:
Captured output from
$PSVersionTable
:Additional context