What are diagnostic settings?
IntermediateConceptGovernance, Policy & monitoring
Answer
Diagnostic settings send a resource's platform logs and metrics to a Log Analytics workspace, a storage account or Event Hubs. Many resource logs are not collected until you configure them, so organisations deploy diagnostic settings through Azure Policy.