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
Describe the bug
It seems that retention rules for Diagnostic Settings changed from Azure side. It triggers an error when Diagnostic Settings for different resources are created.
Diagnostic Settings with retention can be created using Azure Portal, but the Terraform code is failing.
Here goes an example when creating a Base workspace.
On this links it's mentioned that Diagnostic Settings Storage Retention feature is being deprecated.
Steps to reproduce
Create a Workspace
Review log messages in Resource Processor
Log messages
Error: creating Monitor Diagnostics Setting "diag-kv-myenv-ws-b99e" for Res
ource "/subscriptions/11111111-2222-3333-4444-abcdefghijkl/resourceGroups/rg-myenv-ws-b99e/providers/Microsoft.KeyVault/vaults/kv-myenv-ws-b99e": d
iagnosticsettings.DiagnosticSettingsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service retur
ned an error. Status=400 Code="BadRequest" Message="Diagnostic settings does not support retention for new diagnostic settings." │ │ with azurerm_moni
tor_diagnostic_setting.kv, │ on keyvault.tf line 46, in resource "azurerm_monitor_diagnostic_setting" "kv": │ 46: resource "azurerm_monitor_diagnosti
c_setting" "kv"
Describe the bug
It seems that retention rules for Diagnostic Settings changed from Azure side. It triggers an error when Diagnostic Settings for different resources are created.
Diagnostic Settings with retention can be created using Azure Portal, but the Terraform code is failing.
Here goes an example when creating a Base workspace.
On this links it's mentioned that Diagnostic Settings Storage Retention feature is being deprecated.
Steps to reproduce
Log messages
The offending code is here.
The text was updated successfully, but these errors were encountered: