@pnp/cli-microsoft365 5.1.0-beta.ffd9bc8 → 5.2.0-beta.90d2227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/.eslintrc.js +1 -0
  2. package/Dockerfile +7 -4
  3. package/dist/Auth.js +10 -0
  4. package/dist/Command.js +3 -0
  5. package/dist/cli/Cli.js +14 -17
  6. package/dist/m365/app/commands/app-get.js +30 -0
  7. package/dist/m365/app/commands.js +1 -0
  8. package/dist/m365/cli/commands/config/config-set.js +3 -2
  9. package/dist/m365/spfx/commands/project/{project-upgrade/rules/JsonRule.js → JsonRule.js} +0 -0
  10. package/dist/m365/spfx/commands/project/{project-upgrade/rules/Rule.js → Rule.js} +0 -0
  11. package/dist/m365/spfx/commands/project/base-project-command.js +3 -3
  12. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.0.js +9 -0
  13. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.1.js +9 -0
  14. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.0.2.js +9 -0
  15. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.0.js +17 -0
  16. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.1.js +17 -0
  17. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.1.3.js +17 -0
  18. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.10.0.js +23 -0
  19. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.11.0.js +23 -0
  20. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.0.js +23 -0
  21. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.12.1.js +23 -0
  22. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.0.js +23 -0
  23. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.13.1.js +23 -0
  24. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.14.0.js +23 -0
  25. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.2.0.js +17 -0
  26. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.0.js +17 -0
  27. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.1.js +17 -0
  28. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.2.js +17 -0
  29. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.3.4.js +19 -0
  30. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.0.js +19 -0
  31. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.4.1.js +19 -0
  32. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.0.js +19 -0
  33. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.5.1.js +19 -0
  34. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.6.0.js +19 -0
  35. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.0.js +19 -0
  36. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.7.1.js +19 -0
  37. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.0.js +21 -0
  38. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.1.js +21 -0
  39. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.8.2.js +23 -0
  40. package/dist/m365/spfx/commands/project/project-doctor/doctor-1.9.1.js +23 -0
  41. package/dist/m365/spfx/commands/project/project-doctor/generic-rules.js +30 -0
  42. package/dist/m365/spfx/commands/project/project-doctor/rules/DependencyRule.js +76 -0
  43. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001008_DEP_react.js +18 -0
  44. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001009_DEP_react_dom.js +18 -0
  45. package/dist/m365/spfx/commands/project/project-doctor/rules/FN001022_DEP_office_ui_fabric_react.js +18 -0
  46. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002004_DEVDEP_gulp.js +17 -0
  47. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002007_DEVDEP_ajv.js +17 -0
  48. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002013_DEVDEP_types_webpack_env.js +14 -0
  49. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002015_DEVDEP_types_react.js +18 -0
  50. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002016_DEVDEP_types_react_dom.js +18 -0
  51. package/dist/m365/spfx/commands/project/project-doctor/rules/FN002019_DEVDEP_microsoft_rush_stack_compiler.js +68 -0
  52. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021001_PKG_spfx_deps_versions_match_project_version.js +74 -0
  53. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021002_PKG_spfx_deps_use_exact_version.js +71 -0
  54. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021003_PKG_spfx_deps_installed_as_deps.js +46 -0
  55. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021004_PKG_spfx_devdeps_installed_as_devdeps.js +46 -0
  56. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021005_PKG_types_installed_as_devdep.js +45 -0
  57. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021006_PKG_rush_stack_compiler_installed_as_devdep.js +45 -0
  58. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021007_PKG_only_one_rush_stack_compiler_installed.js +69 -0
  59. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021008_PKG_no_duplicate_deps.js +59 -0
  60. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021009_PKG_no_duplicate_oui_deps.js +57 -0
  61. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021010_PKG_gulp_installed_as_devdep.js +45 -0
  62. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021011_PKG_ajv_installed_as_devdep.js +45 -0
  63. package/dist/m365/spfx/commands/project/project-doctor/rules/FN021012_PKG_no_duplicate_pnpjs_deps.js +57 -0
  64. package/dist/m365/spfx/commands/project/project-doctor/spfx-deps.js +29 -0
  65. package/dist/m365/spfx/commands/project/project-doctor.js +341 -0
  66. package/dist/m365/spfx/commands/project/project-externalize/rules/DynamicRule.js +3 -2
  67. package/dist/m365/spfx/commands/project/project-externalize/rules/PnPJsRule.js +2 -1
  68. package/dist/m365/spfx/commands/project/{model → project-model}/ConfigJson.js +0 -0
  69. package/dist/m365/spfx/commands/project/{model → project-model}/CopyAssetsJson.js +0 -0
  70. package/dist/m365/spfx/commands/project/{model → project-model}/DeployAzureStorageJson.js +0 -0
  71. package/dist/m365/spfx/commands/project/{model → project-model}/Gitignore.js +0 -0
  72. package/dist/m365/spfx/commands/project/{model → project-model}/GulpfileJs.js +0 -0
  73. package/dist/m365/spfx/commands/project/{model → project-model}/JsonFile.js +0 -0
  74. package/dist/m365/spfx/commands/project/{model → project-model}/Manifest.js +0 -0
  75. package/dist/m365/spfx/commands/project/{model → project-model}/Npmignore.js +0 -0
  76. package/dist/m365/spfx/commands/project/{model → project-model}/PackageJson.js +0 -0
  77. package/dist/m365/spfx/commands/project/{model → project-model}/PackageSolutionJson.js +0 -0
  78. package/dist/m365/spfx/commands/project/{model → project-model}/Project.js +0 -0
  79. package/dist/m365/spfx/commands/project/{model → project-model}/ScssFile.js +0 -0
  80. package/dist/m365/spfx/commands/project/{model → project-model}/ServeJson.js +0 -0
  81. package/dist/m365/spfx/commands/project/{model → project-model}/TsConfigJson.js +0 -0
  82. package/dist/m365/spfx/commands/project/{model → project-model}/TsFile.js +0 -0
  83. package/dist/m365/spfx/commands/project/{model → project-model}/TsLintJson.js +0 -0
  84. package/dist/m365/spfx/commands/project/{model → project-model}/VsCode.js +0 -0
  85. package/dist/m365/spfx/commands/project/{model → project-model}/VsCodeExtensionsJson.js +0 -0
  86. package/dist/m365/spfx/commands/project/{model → project-model}/VsCodeLaunchJson.js +0 -0
  87. package/dist/m365/spfx/commands/project/{model → project-model}/VsCodeSettingsJson.js +0 -0
  88. package/dist/m365/spfx/commands/project/{model → project-model}/WriteManifestsJson.js +0 -0
  89. package/dist/m365/spfx/commands/project/{model → project-model}/YoRcJson.js +0 -0
  90. package/dist/m365/spfx/commands/project/{model → project-model}/index.js +2 -1
  91. package/dist/m365/spfx/commands/project/project-upgrade/rules/DependencyRule.js +1 -1
  92. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001021_DEP_microsoft_sp_property_pane.js +1 -0
  93. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003001_CFG_schema.js +1 -1
  94. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003002_CFG_version.js +1 -1
  95. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003003_CFG_bundles.js +1 -1
  96. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003004_CFG_entries.js +1 -1
  97. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN003005_CFG_localizedResource_pathLib.js +1 -1
  98. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004001_CFG_CA_schema.js +1 -1
  99. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN004002_CFG_CA_deployCdnPath.js +1 -1
  100. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005001_CFG_DAS_schema.js +1 -1
  101. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN005002_CFG_DAS_workingDir.js +1 -1
  102. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006001_CFG_PS_schema.js +1 -1
  103. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006002_CFG_PS_includeClientSideAssets.js +1 -1
  104. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006003_CFG_PS_isDomainIsolated.js +1 -1
  105. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006004_CFG_PS_developer.js +1 -1
  106. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006005_CFG_PS_metadata.js +1 -1
  107. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN006006_CFG_PS_features.js +1 -1
  108. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007001_CFG_S_schema.js +1 -1
  109. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007002_CFG_S_initialPage.js +1 -1
  110. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN007003_CFG_S_api.js +1 -1
  111. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008001_CFG_TSL_schema.js +1 -1
  112. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008002_CFG_TSL_removeRule.js +1 -1
  113. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN008003_CFG_TSL_preferConst.js +1 -1
  114. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN009001_CFG_WM_schema.js +1 -1
  115. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010001_YORC_version.js +1 -1
  116. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010002_YORC_isCreatingSolution.js +1 -1
  117. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010003_YORC_packageManager.js +1 -1
  118. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010004_YORC_componentType.js +1 -1
  119. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010005_YORC_environment.js +1 -1
  120. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010006_YORC_framework.js +1 -1
  121. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN010007_YORC_isDomainIsolated.js +1 -1
  122. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012001_TSC_module.js +1 -1
  123. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012002_TSC_moduleResolution.js +1 -1
  124. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012003_TSC_skipLibCheck.js +1 -1
  125. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012004_TSC_typeRoots_types.js +1 -1
  126. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012005_TSC_typeRoots_microsoft.js +1 -1
  127. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012006_TSC_types_es6_collections.js +1 -1
  128. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012007_TSC_lib_es5.js +1 -1
  129. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012008_TSC_lib_dom.js +1 -1
  130. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012009_TSC_lib_es2015_collection.js +1 -1
  131. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012010_TSC_experimentalDecorators.js +1 -1
  132. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012011_TSC_outDir.js +1 -1
  133. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012012_TSC_include.js +1 -1
  134. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012013_TSC_exclude.js +1 -1
  135. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012014_TSC_inlineSources.js +1 -1
  136. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012015_TSC_strictNullChecks.js +1 -1
  137. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012016_TSC_noUnusedLocals.js +1 -1
  138. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012017_TSC_extends.js +1 -1
  139. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012018_TSC_lib_es2015_promise.js +1 -1
  140. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN012019_TSC_types_es6_promise.js +1 -1
  141. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN013001_GULP_msGridSassSuppression.js +1 -1
  142. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN013002_GULP_serveTask.js +1 -1
  143. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014001_CODE_settings_jsonSchemas.js +1 -1
  144. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014002_CODE_extensions.js +1 -1
  145. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014003_CODE_launch.js +1 -1
  146. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014004_CODE_settings_jsonSchemas_configJson_url.js +1 -1
  147. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014005_CODE_settingsfile.js +1 -1
  148. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014006_CODE_launch_sourceMapPathOverrides.js +1 -1
  149. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014007_CODE_launch_localWorkbench.js +1 -1
  150. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN014008_CODE_launch_hostedWorkbench_type.js +1 -1
  151. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN017001_MISC_npm_dedupe.js +1 -1
  152. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018001_TEAMS_folder.js +1 -1
  153. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018002_TEAMS_manifest.js +1 -1
  154. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018003_TEAMS_tab20x20_png.js +1 -1
  155. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018004_TEAMS_tab96x96_png.js +1 -1
  156. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN018005_TEAMS_deprecated_manifest.js +1 -1
  157. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019001_TSL_rulesDirectory.js +1 -1
  158. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN019002_TSL_extends.js +1 -1
  159. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023001_GITIGNORE_release.js +1 -1
  160. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023002_GITIGNORE_heft.js +1 -1
  161. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN024001_NPMIGNORE_file.js +1 -1
  162. package/dist/m365/spfx/commands/project/project-upgrade/rules/FileAddRemoveRule.js +1 -1
  163. package/dist/m365/spfx/commands/project/project-upgrade/rules/ManifestRule.js +1 -1
  164. package/dist/m365/spfx/commands/project/project-upgrade/rules/PackageRule.js +1 -1
  165. package/dist/m365/spfx/commands/project/project-upgrade/rules/ResolutionRule.js +1 -1
  166. package/dist/m365/spfx/commands/project/project-upgrade/rules/ScssRule.js +1 -1
  167. package/dist/m365/spfx/commands/project/project-upgrade/rules/TsRule.js +1 -1
  168. package/dist/m365/spfx/commands/project/project-upgrade.js +37 -153
  169. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/Finding.js +0 -0
  170. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/FindingToReport.js +0 -0
  171. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/FindingTour.js +0 -0
  172. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/FindingTourStep.js +0 -0
  173. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/Occurrence.js +0 -0
  174. package/dist/m365/spfx/commands/project/{ReportData.js → report-model/ReportData.js} +0 -0
  175. package/dist/m365/spfx/commands/project/{project-upgrade → report-model}/index.js +2 -3
  176. package/dist/m365/spfx/commands/spfx-doctor.js +6 -0
  177. package/dist/m365/spfx/commands.js +1 -0
  178. package/dist/m365/spo/commands/app/app-teamspackage-download.js +180 -0
  179. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +10 -44
  180. package/dist/m365/spo/commands.js +1 -0
  181. package/dist/m365/teams/commands/chat/chat-get.js +143 -0
  182. package/dist/m365/teams/commands/chat/chat-message-send.js +5 -30
  183. package/dist/m365/teams/commands/chat/chatUtil.js +62 -0
  184. package/dist/m365/teams/commands.js +1 -0
  185. package/dist/m365/tenant/commands.js +1 -6
  186. package/dist/settingsNames.js +1 -0
  187. package/dist/utils/fsUtil.js +70 -0
  188. package/dist/utils/index.js +3 -0
  189. package/dist/utils/md.js +81 -0
  190. package/dist/utils/packageManager.js +66 -0
  191. package/dist/utils/spfx.js +6 -5
  192. package/dist/{m365/spfx/commands/project/project-upgrade/Hash.js → utils/types.js} +1 -1
  193. package/docs/docs/cmd/app/app-get.md +36 -0
  194. package/docs/docs/cmd/spfx/project/project-doctor.md +64 -0
  195. package/docs/docs/cmd/spfx/spfx-doctor.md +4 -1
  196. package/docs/docs/cmd/spo/app/app-teamspackage-download.md +56 -0
  197. package/docs/docs/cmd/teams/chat/chat-get.md +53 -0
  198. package/npm-shrinkwrap.json +292 -740
  199. package/package.json +2 -2
  200. package/dist/m365/spfx/commands/project/project-upgrade/DependencyInformation.js +0 -3
  201. package/dist/m365/spfx/commands/project/project-upgrade/Dictionary.js +0 -3
  202. package/dist/m365/tenant/commands/auditlog/auditlog-report.js +0 -231
  203. package/dist/m365/tenant/commands/service/service-list.js +0 -41
  204. package/dist/m365/tenant/commands/service/service-message-list.js +0 -55
  205. package/dist/m365/tenant/commands/service/service-report-historicalservicestatus.js +0 -54
  206. package/dist/m365/tenant/commands/status/status-list.js +0 -55
  207. package/docs/docs/cmd/tenant/auditlog/auditlog-report.md +0 -61
  208. package/docs/docs/cmd/tenant/service/service-list.md +0 -25
  209. package/docs/docs/cmd/tenant/service/service-message-list.md +0 -34
  210. package/docs/docs/cmd/tenant/service/service-report-historicalservicestatus.md +0 -38
  211. package/docs/docs/cmd/tenant/status/status-list.md +0 -34
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "5.1.0-beta.ffd9bc8",
3
+ "version": "5.2.0-beta.90d2227",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",
@@ -187,12 +187,12 @@
187
187
  "applicationinsights": "^2.2.2",
188
188
  "axios": "^0.26.0",
189
189
  "chalk": "^4.1.2",
190
+ "clipboardy": "^2.3.0",
190
191
  "csv-stringify": "^6.0.5",
191
192
  "easy-table": "^1.2.0",
192
193
  "inquirer": "^8.2.0",
193
194
  "jmespath": "^0.16.0",
194
195
  "json-to-ast": "^2.1.0",
195
- "markshell": "^1.3.8",
196
196
  "minimist": "^1.2.5",
197
197
  "node-forge": "^1.2.1",
198
198
  "omelette": "^0.4.17",
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=DependencyInformation.js.map
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Dictionary.js.map
@@ -1,231 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- var AuditContentTypes;
9
- (function (AuditContentTypes) {
10
- AuditContentTypes["AzureActiveDirectory"] = "Audit.AzureActiveDirectory";
11
- AuditContentTypes["Exchange"] = "Audit.Exchange";
12
- AuditContentTypes["SharePoint"] = "Audit.SharePoint";
13
- AuditContentTypes["General"] = "Audit.General";
14
- AuditContentTypes["DLP"] = "DLP.All";
15
- })(AuditContentTypes || (AuditContentTypes = {}));
16
- class TenantAuditlogReportCommand extends Command_1.default {
17
- constructor() {
18
- super(...arguments);
19
- this.serviceUrl = 'https://manage.office.com/api/v1.0';
20
- this.completeAuditReports = [];
21
- }
22
- get name() {
23
- return commands_1.default.AUDITLOG_REPORT;
24
- }
25
- get description() {
26
- return 'Gets audit logs from the Office 365 Management API';
27
- }
28
- getTelemetryProperties(args) {
29
- const telemetryProps = super.getTelemetryProperties(args);
30
- telemetryProps.startTime = typeof args.options.startTime !== 'undefined';
31
- telemetryProps.endTime = typeof args.options.endTime !== 'undefined';
32
- telemetryProps.contentType = args.options.contentType;
33
- return telemetryProps;
34
- }
35
- defaultProperties() {
36
- return ['CreationTime', 'Operation', 'ClientIP', 'UserId', 'Workload'];
37
- }
38
- commandAction(logger, args, cb) {
39
- if (this.verbose) {
40
- logger.logToStderr(`Start retrieving Audit Log Report`);
41
- }
42
- this.tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
43
- this
44
- .getCompleteAuditReports(args, logger)
45
- .then((res) => {
46
- logger.log(res);
47
- cb();
48
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
49
- }
50
- getCompleteAuditReports(args, logger) {
51
- return this
52
- .startContentSubscriptionIfNotActive(args, logger)
53
- .then(() => this.getAuditContentList(args, logger))
54
- .then((auditContentLists) => this.getBatchedPromises(auditContentLists, 10))
55
- .then((batchedPromise) => {
56
- return new Promise((resolve, reject) => {
57
- if (batchedPromise.length > 0) {
58
- this.getBatchedAuditlogData(logger, batchedPromise, 0, resolve, reject);
59
- }
60
- else {
61
- resolve();
62
- }
63
- });
64
- })
65
- .then(_ => this.completeAuditReports);
66
- }
67
- startContentSubscriptionIfNotActive(args, logger) {
68
- if (this.verbose) {
69
- logger.logToStderr(`Checking if subscription is active...`);
70
- }
71
- const subscriptionListEndpoint = 'activity/feed/subscriptions/list';
72
- const requestOptions = {
73
- url: `${this.serviceUrl}/${this.tenantId}/${subscriptionListEndpoint}`,
74
- headers: {
75
- accept: 'application/json;odata.metadata=none'
76
- },
77
- responseType: 'json'
78
- };
79
- return request_1.default
80
- .get(requestOptions)
81
- .then((subscriptionLists) => {
82
- return subscriptionLists.some(subscriptionList => subscriptionList.contentType === AuditContentTypes[args.options.contentType] &&
83
- subscriptionList.status === 'enabled');
84
- })
85
- .then((hasActiveSubscription) => {
86
- if (hasActiveSubscription) {
87
- return Promise.resolve();
88
- }
89
- if (this.verbose) {
90
- logger.logToStderr(`Starting subscription since subscription is not active for the content type`);
91
- }
92
- const startSubscriptionEndPoint = `activity/feed/subscriptions/start?contentType=${AuditContentTypes[args.options.contentType]}&PublisherIdentifier=${this.tenantId}`;
93
- const requestOptions = {
94
- url: `${this.serviceUrl}/${this.tenantId}/${startSubscriptionEndPoint}`,
95
- headers: {
96
- accept: 'application/json;odata.metadata=none'
97
- },
98
- responseType: 'json'
99
- };
100
- return request_1.default.post(requestOptions);
101
- });
102
- }
103
- getAuditContentList(args, logger) {
104
- if (this.verbose) {
105
- logger.logToStderr(`Start listing Audit Content URL`);
106
- }
107
- let subscriptionListEndpoint = `activity/feed/subscriptions/content?contentType=${AuditContentTypes[args.options.contentType]}&PublisherIdentifier=${this.tenantId}`;
108
- if (typeof args.options.startTime !== 'undefined') {
109
- if (typeof args.options.endTime !== 'undefined') {
110
- subscriptionListEndpoint += `&starttime=${escape(args.options.startTime)}&endTime=${escape(args.options.endTime)}`;
111
- }
112
- else {
113
- const parsedEndDate = new Date(args.options.startTime);
114
- parsedEndDate.setDate(parsedEndDate.getDate() + 1);
115
- subscriptionListEndpoint += `&starttime=${escape(args.options.startTime)}&endTime=${escape(parsedEndDate.toISOString())}`;
116
- }
117
- }
118
- const requestOptions = {
119
- url: `${this.serviceUrl}/${this.tenantId}/${subscriptionListEndpoint}`,
120
- headers: {
121
- accept: 'application/json;odata.metadata=none'
122
- },
123
- responseType: 'json'
124
- };
125
- return request_1.default.get(requestOptions);
126
- }
127
- getBatchedPromises(auditContentLists, batchSize) {
128
- const batchedPromises = [];
129
- for (let i = 0; i < auditContentLists.length; i += batchSize) {
130
- const promiseRequestBatch = auditContentLists
131
- .slice(i, i + batchSize < auditContentLists.length ? i + batchSize : auditContentLists.length)
132
- .map((AuditContentList) => this.getAuditLogReportForSingleContentUrl(AuditContentList.contentUri));
133
- batchedPromises.push(promiseRequestBatch);
134
- }
135
- return Promise.resolve(batchedPromises);
136
- }
137
- getBatchedAuditlogData(logger, batchedPromiseList, batchNumber, resolve, reject) {
138
- if (this.verbose) {
139
- logger.logToStderr(`Starting Batch : ${batchNumber}`);
140
- }
141
- Promise
142
- .all(batchedPromiseList[batchNumber])
143
- .then((data) => {
144
- data.forEach(d1 => {
145
- d1.forEach(d2 => {
146
- this.completeAuditReports.push(d2);
147
- });
148
- });
149
- if (batchNumber < batchedPromiseList.length - 1) {
150
- this.getBatchedAuditlogData(logger, batchedPromiseList, ++batchNumber, resolve, reject);
151
- }
152
- else {
153
- resolve();
154
- }
155
- }, (err) => reject(err));
156
- }
157
- getAuditLogReportForSingleContentUrl(auditURL) {
158
- const requestOptions = {
159
- url: auditURL,
160
- headers: {
161
- accept: 'application/json'
162
- },
163
- responseType: 'json'
164
- };
165
- return request_1.default.get(requestOptions);
166
- }
167
- get auditContentTypeLists() {
168
- const result = [];
169
- for (const auditContentType in AuditContentTypes) {
170
- result.push(auditContentType);
171
- }
172
- return result;
173
- }
174
- options() {
175
- const options = [
176
- {
177
- option: '-c, --contentType <contentType>',
178
- autocomplete: this.auditContentTypeLists
179
- },
180
- {
181
- option: '-s, --startTime [startTime]'
182
- },
183
- {
184
- option: '-e, --endTime [endTime]'
185
- }
186
- ];
187
- const parentOptions = super.options();
188
- return options.concat(parentOptions);
189
- }
190
- validate(args) {
191
- if (AuditContentTypes[args.options.contentType] === undefined) {
192
- return `${args.options.contentType} is not a valid value for the contentType option. Allowed values are ${this.auditContentTypeLists.join(' | ')}`;
193
- }
194
- if (args.options.startTime || args.options.endTime) {
195
- if (!args.options.startTime) {
196
- return `Please specify startTime`;
197
- }
198
- const parsedStartTime = Date.parse(args.options.startTime);
199
- if (isNaN(parsedStartTime)) {
200
- return `${args.options.startTime} is not a valid startTime. Provide the date in one of the following formats:
201
- 'YYYY-MM-DD'
202
- 'YYYY-MM-DDThh:mm'
203
- 'YYYY-MM-DDThh:mmZ'
204
- 'YYYY-MM-DDThh:mm±hh:mm'`;
205
- }
206
- const startdateTodayDifference = (new Date().getTime() - parsedStartTime) / (1000 * 60 * 60 * 24);
207
- if (startdateTodayDifference > 7) {
208
- return `Start time should be no more than 7 days in the past`;
209
- }
210
- if (args.options.endTime) {
211
- const parsedEndTime = Date.parse(args.options.endTime);
212
- if (isNaN(parsedEndTime)) {
213
- return `${args.options.endTime} is not a valid endTime. Provide the date in one of the following formats:
214
- 'YYYY-MM-DD'
215
- 'YYYY-MM-DDThh:mm'
216
- 'YYYY-MM-DDThh:mmZ'
217
- 'YYYY-MM-DDThh:mm±hh:mm'`;
218
- }
219
- if (parsedStartTime && parsedEndTime) {
220
- const startEndDateDifference = (parsedEndTime - parsedStartTime) / (1000 * 60 * 60 * 24);
221
- if (startEndDateDifference < 0 || startEndDateDifference > 1) {
222
- return `startTime and endTime must be less than or equal to 24 hours apart, with the start time prior to end time.`;
223
- }
224
- }
225
- }
226
- }
227
- return true;
228
- }
229
- }
230
- module.exports = new TenantAuditlogReportCommand();
231
- //# sourceMappingURL=auditlog-report.js.map
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantServiceListCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.SERVICE_LIST;
11
- }
12
- get description() {
13
- return 'Gets services available in Microsoft 365';
14
- }
15
- defaultProperties() {
16
- return ['Id', 'DisplayName'];
17
- }
18
- commandAction(logger, args, cb) {
19
- if (this.verbose) {
20
- logger.logToStderr(`Getting the health status of the different services in Microsoft 365.`);
21
- }
22
- const serviceUrl = 'https://manage.office.com/api/v1.0';
23
- const statusEndpoint = 'ServiceComms/Services';
24
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
25
- const requestOptions = {
26
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
27
- headers: {
28
- accept: 'application/json;odata.metadata=none'
29
- },
30
- responseType: 'json'
31
- };
32
- request_1.default
33
- .get(requestOptions)
34
- .then((res) => {
35
- logger.log(res.value);
36
- cb();
37
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
38
- }
39
- }
40
- module.exports = new TenantServiceListCommand();
41
- //# sourceMappingURL=service-list.js.map
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantServiceMessageListCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.SERVICE_MESSAGE_LIST;
11
- }
12
- get description() {
13
- return 'Gets service messages Microsoft 365';
14
- }
15
- defaultProperties() {
16
- return ['Workload', 'Id', 'Message'];
17
- }
18
- commandAction(logger, args, cb) {
19
- if (this.verbose) {
20
- logger.logToStderr(`Getting service messages...`);
21
- }
22
- const serviceUrl = 'https://manage.office.com/api/v1.0';
23
- const statusEndpoint = args.options.workload ? `ServiceComms/Messages?$filter=Workload eq '${encodeURIComponent(args.options.workload)}'` : 'ServiceComms/Messages';
24
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
25
- const requestOptions = {
26
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
27
- headers: {
28
- accept: 'application/json;odata.metadata=none'
29
- },
30
- responseType: 'json'
31
- };
32
- request_1.default
33
- .get(requestOptions)
34
- .then((res) => {
35
- res.value.forEach(r => {
36
- r.Workload = r.Id.startsWith('MC') ? r.AffectedWorkloadDisplayNames.join(', ') : r.Workload;
37
- r.Id = r.Id;
38
- r.Message = r.Id.startsWith('MC') ? r.Title : r.ImpactDescription;
39
- });
40
- logger.log(res.value);
41
- cb();
42
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
43
- }
44
- options() {
45
- const options = [
46
- {
47
- option: '-w, --workload [workload] '
48
- }
49
- ];
50
- const parentOptions = super.options();
51
- return options.concat(parentOptions);
52
- }
53
- }
54
- module.exports = new TenantServiceMessageListCommand();
55
- //# sourceMappingURL=service-message-list.js.map
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantServiceReportHistoricalServiceStatusCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.SERVICE_REPORT_HISTORICALSERVICESTATUS;
11
- }
12
- get description() {
13
- return 'Gets the historical service status of Microsoft 365 Services of the last 7 days';
14
- }
15
- getTelemetryProperties(args) {
16
- const telemetryProps = super.getTelemetryProperties(args);
17
- telemetryProps.workload = args.options.workload;
18
- return telemetryProps;
19
- }
20
- defaultProperties() {
21
- return ['WorkloadDisplayName', 'StatusDisplayName', 'StatusTime'];
22
- }
23
- commandAction(logger, args, cb) {
24
- if (this.verbose) {
25
- logger.logToStderr(`Gets the historical service status of Microsoft 365 Services of the last 7 days`);
26
- }
27
- const serviceUrl = 'https://manage.office.com/api/v1.0';
28
- const statusEndpoint = typeof args.options.workload !== 'undefined' ? `ServiceComms/HistoricalStatus?$filter=Workload eq '${encodeURIComponent(args.options.workload)}'` : 'ServiceComms/HistoricalStatus';
29
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
30
- const requestOptions = {
31
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
32
- headers: {
33
- accept: 'application/json;odata.metadata=none'
34
- },
35
- responseType: 'json'
36
- };
37
- request_1.default.get(requestOptions)
38
- .then((res) => {
39
- logger.log(res);
40
- cb();
41
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
42
- }
43
- options() {
44
- const options = [
45
- {
46
- option: '-w, --workload [workload]'
47
- }
48
- ];
49
- const parentOptions = super.options();
50
- return options.concat(parentOptions);
51
- }
52
- }
53
- module.exports = new TenantServiceReportHistoricalServiceStatusCommand();
54
- //# sourceMappingURL=service-report-historicalservicestatus.js.map
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Auth_1 = require("../../../../Auth");
4
- const Command_1 = require("../../../../Command");
5
- const request_1 = require("../../../../request");
6
- const utils_1 = require("../../../../utils");
7
- const commands_1 = require("../../commands");
8
- class TenantStatusListCommand extends Command_1.default {
9
- get name() {
10
- return commands_1.default.STATUS_LIST;
11
- }
12
- get description() {
13
- return 'Gets health status of the different services in Microsoft 365';
14
- }
15
- getTelemetryProperties(args) {
16
- const telemetryProps = super.getTelemetryProperties(args);
17
- telemetryProps.workload = args.options.workload;
18
- return telemetryProps;
19
- }
20
- defaultProperties() {
21
- return ['WorkloadDisplayName', 'StatusDisplayName'];
22
- }
23
- commandAction(logger, args, cb) {
24
- if (this.verbose) {
25
- logger.logToStderr(`Getting the health status of the different services in Microsoft 365.`);
26
- }
27
- const serviceUrl = 'https://manage.office.com/api/v1.0';
28
- const statusEndpoint = typeof args.options.workload !== 'undefined' ? `ServiceComms/CurrentStatus?$filter=Workload eq '${encodeURIComponent(args.options.workload)}'` : 'ServiceComms/CurrentStatus';
29
- const tenantId = utils_1.accessToken.getTenantIdFromAccessToken(Auth_1.default.service.accessTokens[Auth_1.default.defaultResource].accessToken);
30
- const requestOptions = {
31
- url: `${serviceUrl}/${tenantId}/${statusEndpoint}`,
32
- headers: {
33
- accept: 'application/json;odata.metadata=none'
34
- },
35
- responseType: 'json'
36
- };
37
- request_1.default
38
- .get(requestOptions)
39
- .then((res) => {
40
- logger.log(res.value);
41
- cb();
42
- }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
43
- }
44
- options() {
45
- const options = [
46
- {
47
- option: '-w, --workload [workload]'
48
- }
49
- ];
50
- const parentOptions = super.options();
51
- return options.concat(parentOptions);
52
- }
53
- }
54
- module.exports = new TenantStatusListCommand();
55
- //# sourceMappingURL=status-list.js.map
@@ -1,61 +0,0 @@
1
- # tenant auditlog report
2
-
3
- Gets audit logs from the Office 365 Management API
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant auditlog report [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-c, --contentType <contentType>`
14
- : Audit content type of logs to be retrieved, should be one of the following: `AzureActiveDirectory`, `Exchange`, `SharePoint`, `General`, `DLP`.
15
-
16
- `-s, --startTime [startTime]`
17
- : Start time of logs to be retrieved. Start time and end time must be less than or equal to 24 hours apart. Start time is mandatory if End time is specified.
18
-
19
- `-e, --endTime [endTime]`
20
- : End time of logs to be retrieved. Start time and end time must be less than or equal to 24 hours apart. If End time is not specified, command will assume the End time to be 24 hours from the specified Start time.
21
-
22
- --8<-- "docs/cmd/_global.md"
23
-
24
- ## Remarks
25
-
26
- By default, if `startTime` and `endTime` are not mentioned, then the content available in the last **24 hours** is returned. `startTime` and `endTime` must be less than or equal to **24 hours** apart, with the `startTime` prior to `endTime` and `startTime` no more than 7 days in the past.
27
-
28
- If `endTime` is not specified, command will assume the `endTime` to be **24 hours** from the specified `startTime`.
29
- `startTime` is mandatory if `endTime` is specified.
30
-
31
- `DLP` audit log data is only available to users that have been granted “Read DLP sensitive data” permission. Otherwise you will get `Error: Request failed with status code 401`
32
-
33
- ## Examples
34
-
35
- Gets audit logs from the Office 365 Management API for the `Exchange` content type.
36
-
37
- ```sh
38
- m365 tenant auditlog report --contentType "Exchange"
39
- ```
40
-
41
- Gets audit logs from the Office 365 Management API for the `Exchange` content type in the date range between `2020-12-13` and `2020-12-14`
42
-
43
- ```sh
44
- m365 tenant auditlog report --contentType "Exchange" --startTime "2020-12-13" --endTime "2020-12-14"
45
- ```
46
-
47
- Gets audit logs from the Office 365 Management API for the `Exchange` content type between `15:00` hours and `16:00` hours on `2020-12-13`
48
-
49
- ```sh
50
- m365 tenant auditlog report --contentType "Exchange" --startTime "2020-12-13T15:00:00" --endTime "2020-12-13T16:00:00"
51
- ```
52
-
53
- Gets audit logs from the Office 365 Management API for the `Exchange` content type between `23:00` hours on `2020-12-13` and `05:00` hours on `2020-12-14`
54
-
55
- ```sh
56
- m365 tenant auditlog report --contentType "Exchange" --startTime "2020-12-13T23:00:00" --endTime "2020-12-14T05:00:00"
57
- ```
58
-
59
- ## More information
60
-
61
- - Office 365 Management Activity API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference)
@@ -1,25 +0,0 @@
1
- # tenant service list
2
-
3
- Gets services available in Microsoft 365
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant service list [options]
9
- ```
10
-
11
- ## Options
12
-
13
- --8<-- "docs/cmd/_global.md"
14
-
15
- ## Examples
16
-
17
- Get services available in Microsoft 365
18
-
19
- ```sh
20
- m365 tenant service list
21
- ```
22
-
23
- ## More information
24
-
25
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-services](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-services)
@@ -1,34 +0,0 @@
1
- # tenant service message list
2
-
3
- Gets service messages Microsoft 365
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant service message list [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-w, --workload [workload]`
14
- : Retrieve service messages for the particular workload. If not provided, retrieves messages for all workloads
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Examples
19
-
20
- Get service messages of all services in Microsoft 365
21
-
22
- ```sh
23
- m365 tenant service message list
24
- ```
25
-
26
- Get service messages for Microsoft Teams
27
-
28
- ```sh
29
- m365 tenant service message list --workload microsoftteams
30
- ```
31
-
32
- ## More information
33
-
34
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/office/office-365-management-api/office-365-service-communications-api-reference#get-messages](https://docs.microsoft.com/office/office-365-management-api/office-365-service-communications-api-reference#get-messages)
@@ -1,38 +0,0 @@
1
- # tenant service report historicalservicestatus
2
-
3
- Gets the historical service status of Microsoft 365 Services of the last 7 days
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant service report historicalservicestatus [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-w, --workload [workload]`
14
- : Retrieve the historical service status for the particular service. If not provided, the historical service status of all services will be returned.
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Remarks
19
-
20
- To get the name of the particular workload for use with the workload option, execute `m365 tenant service report historicalservicestatus --output json` and get the value of the `Workload` property for the particular service.
21
-
22
- ## Examples
23
-
24
- Gets the historical service status of Microsoft 365 Services of the last 7 days
25
-
26
- ```sh
27
- m365 tenant service report historicalservicestatus
28
- ```
29
-
30
- Gets the historical service status of Microsoft Teams for the last 7 days
31
-
32
- ```sh
33
- m365 tenant service report historicalservicestatus --workload "microsoftteams"
34
- ```
35
-
36
- ## More information
37
-
38
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-historical-status](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-historical-status)
@@ -1,34 +0,0 @@
1
- # tenant status list
2
-
3
- Gets health status of the different services in Microsoft 365
4
-
5
- ## Usage
6
-
7
- ```sh
8
- m365 tenant status list [options]
9
- ```
10
-
11
- ## Options
12
-
13
- `-w, --workload [workload]`
14
- : Retrieve service status for the specified service. If not provided, will list the current service status of all services
15
-
16
- --8<-- "docs/cmd/_global.md"
17
-
18
- ## Examples
19
-
20
- Gets health status of the different services in Microsoft 365
21
-
22
- ```sh
23
- m365 tenant status list
24
- ```
25
-
26
- Gets health status for SharePoint Online
27
-
28
- ```sh
29
- m365 tenant status list --workload "SharePoint"
30
- ```
31
-
32
- ## More information
33
-
34
- - Microsoft 365 Service Communications API reference: [https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-current-status](https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-service-communications-api-reference#get-current-status)