Deployment error: The limit of 5 diagnostic settings was reached #557
brooke-hamilton
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
If you have deployed and deleted Mission Landing Zone in the same subscription multiple times, you may eventually encounter this error (as viewed from the Deployments tab of the Azure portal):
This is what the error looks like from the Azure CLI:
Cause
Mission Landing Zone includes a diagnostic setting that directs the Azure activity log to the Log Analytics Workspace. The diagnostic setting is deployed at the subscription level, so if you delete all the resource groups for Mission Landing Zone, the diagnostic setting is left in your subscription even though it no longer points to a valid Log Analytics workspace.
Azure has a limit of five diagnostics settings at the subscription level, so if you have deployed and deleted Mission Landing Zone five times (without deleting the diagnostic settings), you will encounter this error the next time you deploy.
Solution
The solution is to delete unused diagnostic settings from the subscription. They can be deleted from the Azure Portal or using shell commands.
From the Azure Portal, choose the subscription blade, then Activity log in the left panel. At the top of the Activity log screen click the Diagnostics settings button. From there you can click the Edit setting link and delete the diagnostic setting.
Related Azure CLI examples are below:
More resources
Mission Landing Zone Cleanup Instructions (for Bicep)
https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log#send-to-log-analytics-workspace
https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings
Beta Was this translation helpful? Give feedback.
All reactions