CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
517 stars 156 forks source link

webApp secret_setting for ENV_PARAM with underscores #1035

Closed l3m closed 11 months ago

l3m commented 1 year ago

I am try to add a environment parameter to a webApp with a app-given name that I cannot change (e.g. MY_USER_NAME).

KeyVault doesn't allow me to create secrets with names with underscores, so I am wondering how I can set the environment variable to MY_USER_NAME with a value from the KeyVault.

Is this possible? If so, how?

mike-wade commented 1 year ago

I have the same issue but with : to indicate a setting in a section. I suspect Farmer\Builders\Builders.WebApp.fs:343 will need tweaking so that it forces the setting name to match what keyvault permits.