[AVM Module Issue]: connectionStrings object value empty after deployments #4107
Labels
Class: Resource Module 📦
This is a resource module
Needs: Triage 🔍
Maintainers need to triage still
Status: Response Overdue 🚩
When an issue/PR has not been responded to for X amount of days
Type: AVM 🅰️ ✌️ Ⓜ️
This is an AVM related issue
Type: Bug 🐛
Something isn't working
Check for previous/existing GitHub issues
Issue Type?
Bug
Module Name
avm/res/web/site
(Optional) Module Version
0.12.1
Description
Hi team,
I am unsure on why this is happening, but when you want to deploy connectionStrings via the web/sites/config via the AVM module web/site:0.12.1 (latest) it happily deploys the connection string name, type, but does not populate the value. I couldn't find any examples of this using AVM as the e2e test file does not seem to have it (from what I could see when searching): https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/web/site/tests/e2e/webConfig/main.test.bicep or https://github.com/Azure/bicep-registry-modules/blob/main/avm/res/web/site/tests/e2e/webApp.max/main.test.bicep
I've reviewed the REST API and it doesn't seem like there's much to miss, besides the name, value and type for the siteConfig object:
https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/config/connectionstrings?pivots=deployment-language-bicep and https://learn.microsoft.com/en-us/azure/templates/microsoft.web/sites/config?pivots=deployment-language-bicep#microsoftwebsitesconfig-objects
Example:
Of course, when I set it manually, all OK. Also it doesn't matter much what value I use, or if I use a custom type. Same issue.
(Optional) Correlation Id
8802f95a-fdef-4910-b371-433bb8d06d89
The text was updated successfully, but these errors were encountered: