-
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
Cannot create or modify azurerm_monitor_diagnostic_setting #15046
Comments
Maybe related to #14333 |
@hobbesuk just to confirm, is this an existing resource which has been imported into Terraform (which is using Log Category Groups) - or a new resource? Thanks! |
Both, I've tried updating an existing resource that was already in my state file and also trying to create a new one, both fail. I'm not trying to use log category groups. |
If it helps this is what the plan is trying to do:
|
Duplicate of #10388, please subscribe to that issue for updates. |
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. |
Community Note
Terraform (and AzureRM Provider) Version 2.92.0
Affected Resource(s)
azurerm_monitor_diagnostic_setting
Terraform Configuration Files
Expected Behaviour
Resource created
Actual Behaviour
Error: creating Monitor Diagnostics Setting "xxxx" for Resource "/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.ApiManagement/service/xxxx-westeurope": insights.DiagnosticSettingsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Invalid API Verion used to modify log category group enabled setting: xxxx, please use version post: 2021-05-01-preview"
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: