You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
I also think the regex currently in use has some issues, such as the first segment being * instead of + or that ! is allowed within argument names. There's more, but let's keep it brief.
Here's a regex I think is (more) correct:
I'm aware it's a bit of a mess, but it matches things pretty convincingly (note that tabular arguments do not support default values): https://regex101.com/r/n99EPo/1
│ Error: invalid value forfunction_parameters.0 (Log Analytics Saved Search Function Parameters must bein the following format: param-name1:type1=default_value1 OR param-name1:type1 OR param-name1:string='string goes here')
│
│ with module.saved_searches.azurerm_log_analytics_saved_search.hello_world,
│ on modules/saved_searches/main.tf line 400, in resource "azurerm_log_analytics_saved_search""hello_world":
│ 400: "foo:(*)"
│
Expected Behaviour
Terraform should respect all valid function parameter definitions.
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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
terraform-provider-azurerm/internal/services/loganalytics/log_analytics_saved_search_resource.go
Line 95 in 1aef7c1
This regex is wrong and excludes tabular parameters in the form of
arg:(*)
orarg:(sub_arg:type,sub_arg:type2)
.For more info, see here: https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/functions/user-defined-functions.
I also think the regex currently in use has some issues, such as the first segment being
*
instead of+
or that!
is allowed within argument names. There's more, but let's keep it brief.Here's a regex I think is (more) correct:
I'm aware it's a bit of a mess, but it matches things pretty convincingly (note that tabular arguments do not support default values): https://regex101.com/r/n99EPo/1
Terraform Version
v1.9.0
AzureRM Provider Version
3.112.0
Affected Resource(s)/Data Source(s)
azurerm_log_analytics_saved_search
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform should respect all valid function parameter definitions.
Actual Behaviour
It doesn't.
Steps to Reproduce
No response
Important Factoids
No response
References
#11341
#10989
The text was updated successfully, but these errors were encountered: