azurerm_monitor_aad_diagnostic_setting
missing support for NetworkAccessTrafficLogs
log category
#15416
Milestone
azurerm_monitor_aad_diagnostic_setting
missing support for NetworkAccessTrafficLogs
log category
#15416
Community Note
Terraform (and AzureRM Provider) Version
latest
Affected Resource(s)
azurerm_monitor_aad_diagnostic_setting
Terraform Configuration Files
Debug Output
N/A not useful
Panic Output
N/A not useful
Expected Behaviour
Deploy should happen without error.
Actual Behaviour
If you put the last block I specified the following occurs.
Error: expected log.3.category to be one of [AuditLogs SignInLogs ADFSSignInLogs ManagedIdentitySignInLogs NonInteractiveUserSignInLogs ProvisioningLogs ServicePrincipalSignInLogs RiskyUsers UserRiskEvents], got NetworkAccessTrafficLogs
If you instead leave that last block out you get a forever re-applying loop that looks like this.
Steps to Reproduce
terraform apply
Important Factoids
N/A
References
Suggested Fix
Add the category item
NetworkAccessTrafficLogs
to https://github.com/hashicorp/terraform-provider-azurerm/blob/main/internal/services/monitor/monitor_aad_diagnostic_setting_resource.go#L104I doesn't look like this will require a dependency update. One question I don't know the answer to is if this particular category item is universal across all Azure Active Directory Tenants at this point.
The text was updated successfully, but these errors were encountered: