This message was deleted.
# azure
s
This message was deleted.
t
t
That was it! Thank you
hmm I'm getting a strange error when I got to use it...
Copy code
error: autorest/azure: Service returned an error. Status=<nil> <nil>
Copy code
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 },
    },
  ],
});
Deleting the old one first cleared it up. Some sort of conflict on the resourceId. Leaving this up for posterity.