-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_windows_web_app sticky_settings app_setting_names doesnt allow valid characters #16612
Comments
We are also encountering this issue when using resource
|
After importing an existing azurerm_windows_web_app, the "APPLICATIONINSIGHTS_CONNECTION_STRING " came with an extra space at the end (just like in @enorlando example above), which is not valid. However, the error message was always pointing to the last value of the list so I was looking at the wrong place trying to debug this. Once the extra space was removed it started working again. |
@nu12 Thank you for your input. Once I removed the extra space from the app setting name, it all worked and I as able to apply the change. |
This validation is too strict. The Azure Portal allows the following name for both app settings and connection strings: A test: !@#$%^&*()_+-=' ";/? I can't find a reference for what the valid character set would be, and the names in the app_settings attribute aren't validated at all, so we may as well remove this validation. Fixes hashicorp#16612
This functionality has been released in v3.12.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.1.9
AzureRM Provider Version
3.4.0
Affected Resource(s)/Data Source(s)
azurerm_windows_web_app and possibly everything with sticky_settings property mentioned here: #16546
Terraform Configuration Files
Debug Output/Panic Output
Error: "sticky_settings.0.app_setting_names.0" may only contain alphanumeric characters, periods and underscores
Expected Behaviour
The azurerm provider allows all characters allowed in the Azure App Settings. I.e. it allows to implement the suggested hierarchical namespaces via colons, or slashes as well as use other common practices described here: https://docs.microsoft.com/en-us/azure/azure-app-configuration/concept-key-value
Actual Behaviour
The azurerm provider does not allow us to use the common key naming practices, which prevents us from upgrading from azurerm_app_service resource to the azurerm_windows_web_app
Steps to Reproduce
Try to add any setting that is allowed in the Azure App Service -> Configuration -> Application Settings that contains characters other than the characters allowed by the current provider. Other than my example with colon, you can try adding a Key Vault Reference, which has a syntax:
@Microsoft.KeyVault({referenceString})
. More on that: https://docs.microsoft.com/en-us/azure/app-service/app-service-key-vault-referencesImportant Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: