cuddly-napkin-89521
04/06/2023, 2:03 PMautorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Category 'AllLogs' is not supported."
const diagnosticSetting = new insights.DiagnosticSetting("ds-horizon-dev-appinsights", {
name: "ds-horizon-dev-appinsights",
eventHubAuthorizationRuleId: "/subscriptions/70723351-c6d0-4159-b670-ae4aef2e3936/resourcegroups/craftsphere-dev-monitoringaa96adba/providers/Microsoft.EventHub/namespaces/craftsphere-dev-datadog/authorizationrules/craftsphere-dev",
eventHubName: "craftsphere-dev-datadog",
resourceUri: etlAppInsights.id,
logs: [
{
category: "allLogs", <====This part is failing !!!!!
enabled: true,
retentionPolicy: {
days: 0,
enabled: false,
},
}],
metrics: [{
category: "AllMetrics",
enabled: true,
retentionPolicy: {
days: 7,
enabled: false,
},
}],
});
icy-doctor-13719
04/07/2023, 12:54 AM