Skip to content

Expansion & defaultValues #1256

Answered by BernieWhite
dgcode asked this question in Q&A
Sep 5, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@dgcode Thanks for the question.

PSRule for Azure uses what we term expansion to be able to get a close to what would be deployed to Azure without actually doing any deployment.

To do this, just like if you actually deployed something to Azure we need to be able to fully resolve all parameters with a value.

With this in mind, you have a few options:

  1. Define a default for the parameter in template/ Bicep module.
  2. Define a Bicep test deployment. See Testing Bicep modules.
  3. Provide placeholder defaults in PSRule configuration. See Required parameter default.

You are absolutely correct, you should not define a default for secure parameters, but we need to provide a placeholder for PSRule to us…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dgcode
Comment options

Answer selected by dgcode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants