This is especially important now because it's possible to add a diagnostic setting to a resource, then that resource can get deleted without the diagnostic setting. Need to be able to generate random names for the diagnostic settings as a workaround until the azure monitor team fixes it.
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_diagnostic_setting
This is especially important now because it's possible to add a diagnostic setting to a resource, then that resource can get deleted without the diagnostic setting. Need to be able to generate random names for the diagnostic settings as a workaround until the azure monitor team fixes it.