Import for a bicepParam file is not working in the powershell module, but it is in the cli #25312
Unanswered
chambersDon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the import functionality in a bicep parameter file (bicepparam).
This works with the azure cli, but fails with the powershell module with the follow error:
I am using Bicep CLI version 0.28.1, and version 12.0.0 of the Az powershell module.
I enable user defined funcitons with this bicepconfig.json file:
I add an export function in a cfg.bicep file:
I import this in a test.bicepparam file
And this is my bicep file (test.bicep):
I use this azure cli command:
This works, and I see the parameter named theVal has the correct string from the parameter file:
This fails when I use the powershell module with the same inputs. Here is the command:
I get the error at the beginning of this question: This declaration type is not valid for a Bicep Parameters file. Specify a "using" or "param" declaration.
Beta Was this translation helpful? Give feedback.
All reactions