Trying to onboard my Azure subscription in Cortex Cloud, I execute the bash script in Azure bash CLI. After fixing some role issues, I now get the following error:
The limit of 5 diagnostic settings was reached. To create new setting 'CortexMonitorAadDiagnosticSettings-m-o-45741-fukl4vdzmw', delete an existing one.
Full error:
ERROR: {"status":"Failed","error":{"code":"DeploymentFailed","target":"/providers/Microsoft.Management/managementGroups/<mgmt-group-id>/providers/Microsoft.Resources/deployments/cortex-policy-m-o-123456789","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"Conflict","target":"/providers/microsoft.aadiam/diagnosticSettings/CortexMonitorAadDiagnosticSettings-m-o-45741-fukl4vdzmw","message":"{\r\n \"code\": \"Conflict\",\r\n \"message\": \"The limit of 5 diagnostic settings was reached. To create new setting 'CortexMonitorAadDiagnosticSettings-m-o-45741-fukl4vdzmw', delete an existing one.\"\r\n}"}]}}
When looking for diagnostic settings in the Azure dashboard, I only see the diagnostic settings generated by the script:
So how could I avoid reaching the limit of 5 diagnostic settings? How to increase the limit of 5? is this really the issue?
