DiagnosticSettings commands can't throw null pointer when Logs or Metrics are not defined for the resource. Related fix: https://github.com/Azure/azure-powershell/pull/1996 Fix was verified manually and now needs automation tests.