The name of the diagnostic settings resource is malformed: it does not use segments of the source resource, so instead of sqlserver/sqlserver-db/Microsoft.Insights/diagnosticsSettingsName you just get `sqlserver/Microsoft.Insights/diagnosticsSettingsName and it pops.
The name of the diagnostic settings resource is malformed: it does not use segments of the source resource, so instead of
sqlserver/sqlserver-db/Microsoft.Insights/diagnosticsSettingsName
you just get`sqlserver/Microsoft.Insights/diagnosticsSettingsName
and it pops.