-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to get AZURE_PARAMETER_DEFAULTS
working
#2523
Comments
Hi @AlexanderSehr, Thanks for reporting the issue. I think this is a specific about how this option is loaded during expansion. It only operates from You should be fine as a workaround to add this But agree it's not ideal, confusing, and we'll work on a fix. |
@AlexanderSehr This should be fixed in PSRule for Azure v1.39.0 when it is released. |
@AlexanderSehr PSRule for Azure - Pre-release 1.39.0-B0072 includes this fix. Please double check this fix resolves your issue. I couldn't find your working branch to double check myself. |
Hey @BernieWhite, I was out of office the last 2 weeks so I was not able to validate it yet. Will do as soon as I caught up 💪 |
Hey @BernieWhite, |
@AlexanderSehr Thanks for the ref. Double checked with this and found a related issue. Can you please retest with the latest preview PSRule for Azure v1.40.0-B0147. |
Hey @eriqua, |
Hey @AlexanderSehr, |
Hey @eriqua, is that also true for preview versions? Interesting. WIll test. |
@BernieWhite, that seemed to have done the trick. Thanks for the update 💪 |
Hey @BernieWhite, I hope you're doing well.
We recently introduced a new feature to the AVM CI that leds users pass secrets from a KeyVault into our test deployments. Part of that solution is to add a required
@secure()
parameter to the test file in question.When running PSRule on those files, we noticed that it would complain about that parameter because it did not have a default. So far so good.
I found that you responded to a very similar issue and implemented a feature that allows you to define defaults for such parameters in the
ps-rule.yml
file.Now, I wanted to use just that for our purposes and defined the following fallback values:
Matching our input parameters like this one:
However, if I run the pipeline using that configuration, it appears that this setting is ignored:
I doublechecked if the settings file is in fact used, and it seems to be correctly configured.
Would you happen to know if I'm missing anything? In the docs it sounds like that should do the trick, yet here I am.
The text was updated successfully, but these errors were encountered: