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 "+1" or "me too" comments, 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
Terraform (and AzureRM Provider) Version
Terraform 1.0.4
AzureRM Provider 2.87 onwards
Affected Resource(s)
azurerm_monitor_diagnostic_setting
Terraform Configuration Files
# Apologies for adhoc code, our code is across multiple child modules. Needs resources for an Eventhub namespace and hub in order test.locals {
diagnostic_map={
eh_auth_id ="${var.eventhub.namespace_id}/authorizationRules/RootManageSharedAccessKey"
eh_log_name ="az-diag-logs"
}
activity_log_categories=[
"Administrative",
"Security",
"ServiceHealth",
"Alert",
"Recommendation",
"Policy",
"Autoscale",
"ResourceHealth"
]
}
resource"azurerm_monitor_diagnostic_setting""activity_logs" {
name="default-activity-log"target_resource_id="/subscriptions/${var.subscription_id}"eventhub_authorization_rule_id=local.diagnostic_map.eh_auth_ideventhub_name=local.diagnostic_map.eh_log_namedynamic"log" {
for_each=toset(local.activity_log_categories)
content {
category=log.keyenabled=true
}
}
}
Debug Output
Code can only run via pipelines in my environment so don't have access to debug output at present.
Expected Behaviour
Diagnostic settings are deployed to the subsription
Actual Behaviour
Terraform plan fails on existing or new environments
Error: parsing "/subscriptions/***/resourceGroups/event-hub/providers/Microsoft.EventHub/namespaces/evn-dev/authorizationrules/RootManageSharedAccessKey": parsing segment "staticAuthorizationRules": expected the segment "authorizationrules" to be "authorizationRules"
Steps to Reproduce
terraform plan
Important Factoids
N/A
References
Seems to have been an issue since parse checks on the authorization rules were changed to case sensitive.
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.
Community Note
Terraform (and AzureRM Provider) Version
Terraform 1.0.4
AzureRM Provider 2.87 onwards
Affected Resource(s)
azurerm_monitor_diagnostic_setting
Terraform Configuration Files
Debug Output
Code can only run via pipelines in my environment so don't have access to debug output at present.
Expected Behaviour
Diagnostic settings are deployed to the subsription
Actual Behaviour
Terraform plan fails on existing or new environments
Error: parsing "/subscriptions/***/resourceGroups/event-hub/providers/Microsoft.EventHub/namespaces/evn-dev/authorizationrules/RootManageSharedAccessKey": parsing segment "staticAuthorizationRules": expected the segment "authorizationrules" to be "authorizationRules"
Steps to Reproduce
terraform plan
Important Factoids
N/A
References
Seems to have been an issue since parse checks on the authorization rules were changed to case sensitive.
The text was updated successfully, but these errors were encountered: