tall-scientist-89115
04/26/2021, 9:38 PMMicrosoft.OperationalInsights/workspaces/providers/diagnosticSettings
in azure native. It's in the azure library at azure.monitoring.DiagnosticSetting
This is not a huge deal, the old provider does update every pulumi up
thanks to an inexplicable "logs" diff, and weirdness like that makes me want to purge all non-azure-native. I was able to find LogAnalytics right where it should be so it's weird to me that this one bit wouldn't exist.tall-librarian-49374
04/27/2021, 6:12 AMtall-scientist-89115
04/27/2021, 11:28 PMerror: autorest/azure: Service returned an error. Status=<nil> <nil>
const azMonitoringDiagnostic = new azureNative.insights.DiagnosticSetting(name, {
workspaceId: config.logAnalyticsWorkspaceId,
resourceUri: config.clusterId,
name: "mysetting",
logs: ["kube-apiserver", "kube-controller-manager", "kube-scheduler", "kube-audit", "cluster-autoscaler"].map(
(category) => ({
category,
enabled: true,
retentionPolicy: { enabled: true, days: 0 },
}),
),
metrics: [
{
category: "AllMetrics",
enabled: true,
retentionPolicy: { enabled: true, days: 0 },
},
],
});