@pnp/cli-microsoft365 7.1.0-beta.8b56e1d → 7.1.0-beta.99de250

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 (221) hide show
  1. package/dist/Auth.js +1 -1
  2. package/dist/appInsights.js +5 -9
  3. package/dist/cli/Cli.js +6 -2
  4. package/dist/m365/spo/commands/feature/feature-disable.js +8 -6
  5. package/dist/m365/spo/commands/feature/feature-enable.js +6 -5
  6. package/dist/m365/spo/commands/user/user-get.js +7 -1
  7. package/dist/telemetry.js +30 -14
  8. package/dist/telemetryRunner.js +26 -0
  9. package/docs/docs/cmd/aad/license/license-list.mdx +21 -16
  10. package/docs/docs/cmd/aad/m365group/m365group-add.mdx +1 -1
  11. package/docs/docs/cmd/aad/user/user-add.mdx +2 -4
  12. package/docs/docs/cmd/aad/user/user-license-add.mdx +2 -4
  13. package/docs/docs/cmd/aad/user/user-license-list.mdx +3 -5
  14. package/docs/docs/cmd/aad/user/user-recyclebinitem-list.mdx +1 -3
  15. package/docs/docs/cmd/aad/user/user-recyclebinitem-restore.mdx +1 -3
  16. package/docs/docs/cmd/flow/environment/environment-get.mdx +3 -4
  17. package/docs/docs/cmd/flow/environment/environment-list.mdx +3 -4
  18. package/docs/docs/cmd/flow/owner/owner-list.mdx +2 -3
  19. package/docs/docs/cmd/flow/run/run-list.mdx +6 -8
  20. package/docs/docs/cmd/graph/schemaextension/schemaextension-list.mdx +2 -3
  21. package/docs/docs/cmd/onenote/page/page-list.mdx +6 -9
  22. package/docs/docs/cmd/outlook/message/message-get.mdx +5 -15
  23. package/docs/docs/cmd/outlook/message/message-list.mdx +5 -14
  24. package/docs/docs/cmd/outlook/room/room-list.mdx +3 -6
  25. package/docs/docs/cmd/outlook/roomlist/roomlist-list.mdx +1 -3
  26. package/docs/docs/cmd/pa/app/app-get.mdx +4 -7
  27. package/docs/docs/cmd/pa/app/app-list.mdx +4 -7
  28. package/docs/docs/cmd/pa/connector/connector-list.mdx +2 -4
  29. package/docs/docs/cmd/pa/environment/environment-get.mdx +2 -4
  30. package/docs/docs/cmd/pa/environment/environment-list.mdx +1 -3
  31. package/docs/docs/cmd/planner/plan/plan-add.mdx +4 -11
  32. package/docs/docs/cmd/planner/plan/plan-get.mdx +4 -9
  33. package/docs/docs/cmd/planner/plan/plan-list.mdx +3 -6
  34. package/docs/docs/cmd/planner/plan/plan-set.mdx +3 -9
  35. package/docs/docs/cmd/planner/roster/roster-member-add.mdx +2 -4
  36. package/docs/docs/cmd/planner/roster/roster-member-get.mdx +2 -4
  37. package/docs/docs/cmd/planner/roster/roster-member-list.mdx +1 -3
  38. package/docs/docs/cmd/planner/task/task-add.mdx +4 -14
  39. package/docs/docs/cmd/planner/task/task-checklistitem-add.mdx +2 -4
  40. package/docs/docs/cmd/planner/task/task-checklistitem-list.mdx +1 -3
  41. package/docs/docs/cmd/planner/task/task-get.mdx +0 -7
  42. package/docs/docs/cmd/planner/task/task-list.mdx +1 -5
  43. package/docs/docs/cmd/planner/task/task-reference-add.mdx +0 -2
  44. package/docs/docs/cmd/planner/task/task-reference-list.mdx +0 -2
  45. package/docs/docs/cmd/planner/task/task-set.mdx +4 -13
  46. package/docs/docs/cmd/planner/tenant/tenant-settings-list.mdx +1 -3
  47. package/docs/docs/cmd/planner/tenant/tenant-settings-set.mdx +3 -5
  48. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-get.mdx +6 -8
  49. package/docs/docs/cmd/pp/aibuildermodel/aibuildermodel-list.mdx +4 -7
  50. package/docs/docs/cmd/pp/card/card-get.mdx +4 -8
  51. package/docs/docs/cmd/pp/card/card-list.mdx +0 -4
  52. package/docs/docs/cmd/pp/chatbot/chatbot-get.mdx +4 -6
  53. package/docs/docs/cmd/pp/dataverse/dataverse-table-get.mdx +3 -14
  54. package/docs/docs/cmd/pp/dataverse/dataverse-table-list.mdx +3 -14
  55. package/docs/docs/cmd/pp/environment/environment-get.mdx +3 -5
  56. package/docs/docs/cmd/pp/environment/environment-list.mdx +2 -4
  57. package/docs/docs/cmd/pp/gateway/gateway-get.mdx +0 -3
  58. package/docs/docs/cmd/pp/gateway/gateway-list.mdx +1 -4
  59. package/docs/docs/cmd/purview/auditlog/auditlog-list.mdx +4 -0
  60. package/docs/docs/cmd/purview/retentionevent/retentionevent-add.mdx +3 -8
  61. package/docs/docs/cmd/purview/retentionevent/retentionevent-get.mdx +1 -3
  62. package/docs/docs/cmd/purview/retentionevent/retentionevent-list.mdx +1 -5
  63. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-add.mdx +0 -2
  64. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-get.mdx +1 -3
  65. package/docs/docs/cmd/purview/retentioneventtype/retentioneventtype-list.mdx +1 -3
  66. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-get.mdx +3 -6
  67. package/docs/docs/cmd/purview/sensitivitylabel/sensitivitylabel-list.mdx +3 -5
  68. package/docs/docs/cmd/purview/threatassessment/threatassessment-get.mdx +4 -8
  69. package/docs/docs/cmd/spo/app/app-add.mdx +94 -7
  70. package/docs/docs/cmd/spo/app/app-deploy.mdx +11 -7
  71. package/docs/docs/cmd/spo/app/app-get.mdx +117 -8
  72. package/docs/docs/cmd/spo/app/app-install.mdx +9 -5
  73. package/docs/docs/cmd/spo/app/app-instance-list.mdx +85 -2
  74. package/docs/docs/cmd/spo/app/app-list.mdx +95 -3
  75. package/docs/docs/cmd/spo/app/app-remove.mdx +11 -7
  76. package/docs/docs/cmd/spo/app/app-retract.mdx +9 -5
  77. package/docs/docs/cmd/spo/app/app-teamspackage-download.mdx +12 -8
  78. package/docs/docs/cmd/spo/app/app-uninstall.mdx +11 -7
  79. package/docs/docs/cmd/spo/app/app-upgrade.mdx +9 -5
  80. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +4 -2
  81. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +9 -7
  82. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +6 -6
  83. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-remove.mdx +12 -6
  84. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +4 -2
  85. package/docs/docs/cmd/spo/apppage/apppage-add.mdx +54 -5
  86. package/docs/docs/cmd/spo/apppage/apppage-set.mdx +8 -4
  87. package/docs/docs/cmd/spo/cdn/cdn-get.mdx +36 -1
  88. package/docs/docs/cmd/spo/cdn/cdn-origin-add.mdx +7 -3
  89. package/docs/docs/cmd/spo/cdn/cdn-origin-list.mdx +48 -3
  90. package/docs/docs/cmd/spo/cdn/cdn-origin-remove.mdx +8 -4
  91. package/docs/docs/cmd/spo/cdn/cdn-policy-list.mdx +53 -3
  92. package/docs/docs/cmd/spo/cdn/cdn-policy-set.mdx +7 -3
  93. package/docs/docs/cmd/spo/cdn/cdn-set.mdx +7 -3
  94. package/docs/docs/cmd/spo/commandset/commandset-add.mdx +6 -6
  95. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +3 -5
  96. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +6 -5
  97. package/docs/docs/cmd/spo/commandset/commandset-remove.mdx +7 -3
  98. package/docs/docs/cmd/spo/commandset/commandset-set.mdx +6 -4
  99. package/docs/docs/cmd/spo/contenttype/contenttype-add.mdx +148 -9
  100. package/docs/docs/cmd/spo/contenttype/contenttype-field-remove.mdx +19 -15
  101. package/docs/docs/cmd/spo/contenttype/contenttype-field-set.mdx +12 -8
  102. package/docs/docs/cmd/spo/contenttype/contenttype-get.mdx +147 -8
  103. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +115 -4
  104. package/docs/docs/cmd/spo/contenttype/contenttype-remove.mdx +8 -4
  105. package/docs/docs/cmd/spo/contenttype/contenttype-set.mdx +8 -4
  106. package/docs/docs/cmd/spo/contenttypehub/contenttypehub-get.mdx +44 -0
  107. package/docs/docs/cmd/spo/customaction/customaction-add.mdx +12 -8
  108. package/docs/docs/cmd/spo/customaction/customaction-clear.mdx +10 -7
  109. package/docs/docs/cmd/spo/customaction/customaction-get.mdx +11 -15
  110. package/docs/docs/cmd/spo/customaction/customaction-list.mdx +87 -5
  111. package/docs/docs/cmd/spo/customaction/customaction-remove.mdx +17 -13
  112. package/docs/docs/cmd/spo/customaction/customaction-set.mdx +27 -23
  113. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-get.mdx +29 -14
  114. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-list.mdx +66 -5
  115. package/docs/docs/cmd/spo/eventreceiver/eventreceiver-remove.mdx +4 -0
  116. package/docs/docs/cmd/spo/externaluser/externaluser-list.mdx +78 -7
  117. package/docs/docs/cmd/spo/feature/feature-disable.mdx +10 -6
  118. package/docs/docs/cmd/spo/feature/feature-enable.mdx +9 -5
  119. package/docs/docs/cmd/spo/feature/feature-list.mdx +52 -0
  120. package/docs/docs/cmd/spo/field/field-add.mdx +177 -11
  121. package/docs/docs/cmd/spo/field/field-get.mdx +175 -9
  122. package/docs/docs/cmd/spo/field/field-list.mdx +135 -8
  123. package/docs/docs/cmd/spo/field/field-remove.mdx +16 -12
  124. package/docs/docs/cmd/spo/field/field-set.mdx +15 -11
  125. package/docs/docs/cmd/spo/file/file-add.mdx +31 -27
  126. package/docs/docs/cmd/spo/file/file-checkin.mdx +13 -9
  127. package/docs/docs/cmd/spo/file/file-checkout.mdx +9 -5
  128. package/docs/docs/cmd/spo/file/file-copy.mdx +5 -5
  129. package/docs/docs/cmd/spo/file/file-get.mdx +89 -18
  130. package/docs/docs/cmd/spo/file/file-list.mdx +5 -5
  131. package/docs/docs/cmd/spo/file/file-move.mdx +5 -5
  132. package/docs/docs/cmd/spo/file/file-remove.mdx +13 -9
  133. package/docs/docs/cmd/spo/file/file-rename.mdx +63 -5
  134. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +3 -3
  135. package/docs/docs/cmd/spo/file/file-retentionlabel-remove.mdx +2 -2
  136. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +4 -0
  137. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +7 -3
  138. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +9 -5
  139. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +10 -6
  140. package/docs/docs/cmd/spo/file/file-sharinginfo-get.mdx +133 -5
  141. package/docs/docs/cmd/spo/file/file-sharinglink-add.mdx +21 -3
  142. package/docs/docs/cmd/spo/file/file-sharinglink-clear.mdx +2 -2
  143. package/docs/docs/cmd/spo/file/file-sharinglink-get.mdx +18 -0
  144. package/docs/docs/cmd/spo/file/file-sharinglink-list.mdx +20 -3
  145. package/docs/docs/cmd/spo/file/file-sharinglink-set.mdx +2 -7
  146. package/docs/docs/cmd/spo/file/file-version-clear.mdx +7 -7
  147. package/docs/docs/cmd/spo/file/file-version-get.mdx +28 -6
  148. package/docs/docs/cmd/spo/file/file-version-list.mdx +28 -6
  149. package/docs/docs/cmd/spo/file/file-version-remove.mdx +8 -8
  150. package/docs/docs/cmd/spo/file/file-version-restore.mdx +8 -8
  151. package/docs/docs/cmd/spo/folder/folder-add.mdx +3 -3
  152. package/docs/docs/cmd/spo/folder/folder-copy.mdx +1 -1
  153. package/docs/docs/cmd/spo/folder/folder-get.mdx +257 -3
  154. package/docs/docs/cmd/spo/folder/folder-list.mdx +3 -4
  155. package/docs/docs/cmd/spo/folder/folder-move.mdx +5 -5
  156. package/docs/docs/cmd/spo/folder/folder-remove.mdx +6 -2
  157. package/docs/docs/cmd/spo/folder/folder-rename.mdx +2 -2
  158. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +3 -3
  159. package/docs/docs/cmd/spo/folder/folder-retentionlabel-remove.mdx +2 -2
  160. package/docs/docs/cmd/spo/folder/folder-roleassignment-add.mdx +13 -8
  161. package/docs/docs/cmd/spo/folder/folder-roleassignment-remove.mdx +8 -4
  162. package/docs/docs/cmd/spo/folder/folder-roleinheritance-break.mdx +4 -0
  163. package/docs/docs/cmd/spo/folder/folder-roleinheritance-reset.mdx +5 -1
  164. package/docs/docs/cmd/spo/group/group-add.mdx +78 -0
  165. package/docs/docs/cmd/spo/group/group-get.mdx +81 -3
  166. package/docs/docs/cmd/spo/group/group-list.mdx +74 -3
  167. package/docs/docs/cmd/spo/group/group-member-add.mdx +13 -21
  168. package/docs/docs/cmd/spo/group/group-member-list.mdx +80 -5
  169. package/docs/docs/cmd/spo/group/group-member-remove.mdx +4 -4
  170. package/docs/docs/cmd/spo/group/group-remove.mdx +10 -6
  171. package/docs/docs/cmd/spo/group/group-set.mdx +9 -5
  172. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-get.mdx +36 -1
  173. package/docs/docs/cmd/spo/hidedefaultthemes/hidedefaultthemes-set.mdx +6 -2
  174. package/docs/docs/cmd/spo/hubsite/hubsite-data-get.mdx +0 -2
  175. package/docs/docs/cmd/spo/list/list-add.mdx +0 -3
  176. package/docs/docs/cmd/spo/list/list-contenttype-add.mdx +0 -2
  177. package/docs/docs/cmd/spo/list/list-contenttype-list.mdx +0 -2
  178. package/docs/docs/cmd/spo/list/list-get.mdx +1 -4
  179. package/docs/docs/cmd/spo/list/list-list.mdx +0 -4
  180. package/docs/docs/cmd/spo/list/list-view-add.mdx +0 -3
  181. package/docs/docs/cmd/spo/list/list-view-get.mdx +9 -12
  182. package/docs/docs/cmd/spo/list/list-view-list.mdx +4 -7
  183. package/docs/docs/cmd/spo/listitem/listitem-attachment-list.mdx +8 -11
  184. package/docs/docs/cmd/spo/listitem/listitem-get.mdx +0 -2
  185. package/docs/docs/cmd/spo/navigation/navigation-node-add.mdx +4 -6
  186. package/docs/docs/cmd/spo/navigation/navigation-node-get.mdx +0 -2
  187. package/docs/docs/cmd/spo/navigation/navigation-node-list.mdx +4 -6
  188. package/docs/docs/cmd/spo/page/page-copy.mdx +4 -8
  189. package/docs/docs/cmd/spo/page/page-get.mdx +2 -5
  190. package/docs/docs/cmd/spo/page/page-list.mdx +1 -5
  191. package/docs/docs/cmd/spo/sitescript/sitescript-get.mdx +4 -4
  192. package/docs/docs/cmd/spo/sitescript/sitescript-set.mdx +6 -7
  193. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +3 -1
  194. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +5 -3
  195. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +4 -2
  196. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-remove.mdx +5 -1
  197. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +2 -0
  198. package/docs/docs/cmd/spo/tenant/tenant-commandset-add.mdx +2 -1
  199. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +5 -2
  200. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +4 -1
  201. package/docs/docs/cmd/spo/tenant/tenant-commandset-remove.mdx +5 -1
  202. package/docs/docs/cmd/spo/tenant/tenant-commandset-set.mdx +3 -1
  203. package/docs/docs/cmd/spo/user/user-get.mdx +6 -0
  204. package/docs/docs/cmd/teams/channel/channel-member-list.mdx +3 -5
  205. package/docs/docs/cmd/teams/channel/channel-member-set.mdx +0 -2
  206. package/docs/docs/cmd/teams/chat/chat-get.mdx +2 -4
  207. package/docs/docs/cmd/teams/chat/chat-list.mdx +1 -3
  208. package/docs/docs/cmd/teams/chat/chat-member-list.mdx +2 -4
  209. package/docs/docs/cmd/teams/message/message-get.mdx +0 -7
  210. package/docs/docs/cmd/teams/message/message-list.mdx +0 -6
  211. package/docs/docs/cmd/teams/message/message-reply-list.mdx +0 -6
  212. package/docs/docs/cmd/teams/tab/tab-add.mdx +10 -12
  213. package/docs/docs/cmd/teams/tab/tab-get.mdx +8 -10
  214. package/docs/docs/cmd/teams/tab/tab-list.mdx +4 -7
  215. package/docs/docs/cmd/teams/team/team-add.mdx +0 -7
  216. package/docs/docs/cmd/teams/team/team-get.mdx +0 -6
  217. package/docs/docs/cmd/tenant/security/security-alerts-list.mdx +1 -1
  218. package/docs/docs/cmd/todo/task/task-add.mdx +9 -13
  219. package/docs/docs/cmd/todo/task/task-set.mdx +10 -14
  220. package/npm-shrinkwrap.json +86 -82
  221. package/package.json +20 -19
package/dist/Auth.js CHANGED
@@ -341,7 +341,7 @@ export class Auth {
341
341
  const cli = Cli.getInstance();
342
342
  cli.spinner.text = response.message;
343
343
  cli.spinner.spinner = {
344
- frames: ['🌶️ ']
344
+ frames: ['🌶️']
345
345
  };
346
346
  // don't show spinner if running tests
347
347
  /* c8 ignore next 3 */
@@ -9,7 +9,6 @@ import fs from 'fs';
9
9
  import path from 'path';
10
10
  import url from 'url';
11
11
  import { app } from './utils/app.js';
12
- import { pid } from './utils/pid.js';
13
12
  const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
14
13
  const config = appInsights.setup('6b908c80-d09f-4cf6-8274-e54349a0149a');
15
14
  config.setInternalLogging(false, false);
@@ -18,17 +17,14 @@ config.setInternalLogging(false, false);
18
17
  // in the telemetry
19
18
  const version = `${app.packageJson().version}${fs.existsSync(path.join(__dirname, `..${path.sep}src`)) ? '-dev' : ''}`;
20
19
  const env = process.env.CLIMICROSOFT365_ENV !== undefined ? process.env.CLIMICROSOFT365_ENV : '';
21
- appInsights.default.defaultClient.commonProperties = {
20
+ const appInsightsClient = appInsights.default.defaultClient;
21
+ appInsightsClient.commonProperties = {
22
22
  version: version,
23
23
  node: process.version,
24
- shell: pid.getProcessName(process.ppid) || '',
25
24
  env: env,
26
25
  ci: Boolean(process.env.CI).toString()
27
26
  };
28
- appInsights.default.defaultClient.context.tags['ai.session.id'] =
29
- crypto.randomBytes(24).toString('base64');
30
- appInsights.default.defaultClient.context.tags['ai.cloud.roleInstance'] =
31
- crypto.createHash('sha256').update(appInsights.default.defaultClient.context.tags['ai.cloud.roleInstance']).digest('hex');
32
- delete appInsights.default.defaultClient.context.tags['ai.cloud.role'];
33
- export default appInsights.default.defaultClient;
27
+ appInsightsClient.context.tags['ai.cloud.roleInstance'] = crypto.createHash('sha256').update(appInsightsClient.context.tags['ai.cloud.roleInstance']).digest('hex');
28
+ appInsightsClient.context.tags['ai.cloud.role'];
29
+ export default appInsightsClient;
34
30
  //# sourceMappingURL=appInsights.js.map
package/dist/cli/Cli.js CHANGED
@@ -31,11 +31,15 @@ export class Cli {
31
31
  return configuredValue;
32
32
  }
33
33
  }
34
- // eslint-disable-next-line @typescript-eslint/no-empty-function
35
34
  constructor() {
36
35
  this.commands = [];
37
36
  this.commandsFolder = '';
38
- this.spinner = ora('Running command...');
37
+ const options = {
38
+ text: 'Running command...',
39
+ /* c8 ignore next 1 */
40
+ stream: this.getSettingWithDefaultValue('errorOutput', 'stderr') === 'stderr' ? process.stderr : process.stdout
41
+ };
42
+ this.spinner = ora(options);
39
43
  }
40
44
  static getInstance() {
41
45
  if (!Cli.instance) {
@@ -5,6 +5,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
5
5
  };
6
6
  var _SpoFeatureDisableCommand_instances, _SpoFeatureDisableCommand_initTelemetry, _SpoFeatureDisableCommand_initOptions, _SpoFeatureDisableCommand_initValidators, _SpoFeatureDisableCommand_initTypes;
7
7
  import request from "../../../../request.js";
8
+ import { validation } from '../../../../utils/validation.js';
8
9
  import SpoCommand from "../../../base/SpoCommand.js";
9
10
  import commands from "../../commands.js";
10
11
  class SpoFeatureDisableCommand extends SpoCommand {
@@ -24,13 +25,10 @@ class SpoFeatureDisableCommand extends SpoCommand {
24
25
  }
25
26
  async commandAction(logger, args) {
26
27
  let scope = args.options.scope;
27
- let force = args.options.force;
28
+ const force = !!args.options.force;
28
29
  if (!scope) {
29
30
  scope = "web";
30
31
  }
31
- if (!force) {
32
- force = false;
33
- }
34
32
  if (this.verbose) {
35
33
  await logger.logToStderr(`Disabling feature '${args.options.id}' on scope '${scope}' for url '${args.options.webUrl}' (force='${force}')...`);
36
34
  }
@@ -39,7 +37,8 @@ class SpoFeatureDisableCommand extends SpoCommand {
39
37
  url: url,
40
38
  headers: {
41
39
  accept: 'application/json;odata=nometadata'
42
- }
40
+ },
41
+ responseType: 'json'
43
42
  };
44
43
  try {
45
44
  await request.post(requestOptions);
@@ -69,9 +68,12 @@ _SpoFeatureDisableCommand_instances = new WeakSet(), _SpoFeatureDisableCommand_i
69
68
  });
70
69
  }, _SpoFeatureDisableCommand_initValidators = function _SpoFeatureDisableCommand_initValidators() {
71
70
  this.validators.push(async (args) => {
71
+ if (!validation.isValidGuid(args.options.id)) {
72
+ return `${args.options.id} is not a valid GUID for option id.`;
73
+ }
72
74
  if (args.options.scope) {
73
75
  if (['site', 'web'].indexOf(args.options.scope.toLowerCase()) < 0) {
74
- return `${args.options.scope} is not a valid Feature scope. Allowed values are Site|Web`;
76
+ return `${args.options.scope} is not a valid Feature scope. Allowed values are: Site, Web.`;
75
77
  }
76
78
  }
77
79
  return true;
@@ -25,13 +25,10 @@ class SpoFeatureEnableCommand extends SpoCommand {
25
25
  }
26
26
  async commandAction(logger, args) {
27
27
  let scope = args.options.scope;
28
- let force = args.options.force;
28
+ const force = !!args.options.force;
29
29
  if (!scope) {
30
30
  scope = "web";
31
31
  }
32
- if (!force) {
33
- force = false;
34
- }
35
32
  if (this.verbose) {
36
33
  await logger.logToStderr(`Enabling feature '${args.options.id}' on scope '${scope}' for url '${args.options.webUrl}' (force='${force}')...`);
37
34
  }
@@ -40,7 +37,8 @@ class SpoFeatureEnableCommand extends SpoCommand {
40
37
  url: url,
41
38
  headers: {
42
39
  accept: 'application/json;odata=nometadata'
43
- }
40
+ },
41
+ responseType: 'json'
44
42
  };
45
43
  try {
46
44
  await request.post(requestOptions);
@@ -70,6 +68,9 @@ _SpoFeatureEnableCommand_instances = new WeakSet(), _SpoFeatureEnableCommand_ini
70
68
  });
71
69
  }, _SpoFeatureEnableCommand_initValidators = function _SpoFeatureEnableCommand_initValidators() {
72
70
  this.validators.push(async (args) => {
71
+ if (!validation.isValidGuid(args.options.id)) {
72
+ return `${args.options.id} is not a valid GUID for option id.`;
73
+ }
73
74
  if (args.options.scope) {
74
75
  if (['site', 'web'].indexOf(args.options.scope.toLowerCase()) < 0) {
75
76
  return `${args.options.scope} is not a valid Feature scope. Allowed values are Site|Web`;
@@ -38,6 +38,9 @@ class SpoUserGetCommand extends SpoCommand {
38
38
  else if (args.options.loginName) {
39
39
  requestUrl = `${args.options.webUrl}/_api/web/siteusers/GetByLoginName('${formatting.encodeQueryParameter(args.options.loginName)}')`;
40
40
  }
41
+ else {
42
+ requestUrl = `${args.options.webUrl}/_api/web/currentuser`;
43
+ }
41
44
  const requestOptions = {
42
45
  url: requestUrl,
43
46
  method: 'GET',
@@ -82,7 +85,10 @@ _SpoUserGetCommand_instances = new WeakSet(), _SpoUserGetCommand_initTelemetry =
82
85
  return validation.isValidSharePointUrl(args.options.webUrl);
83
86
  });
84
87
  }, _SpoUserGetCommand_initOptionSets = function _SpoUserGetCommand_initOptionSets() {
85
- this.optionSets.push({ options: ['id', 'email', 'loginName'] });
88
+ this.optionSets.push({
89
+ options: ['id', 'email', 'loginName'],
90
+ runsWhen: (args) => args.options.id || args.options.loginName || args.options.email
91
+ });
86
92
  };
87
93
  export default new SpoUserGetCommand();
88
94
  //# sourceMappingURL=user-get.js.map
package/dist/telemetry.js CHANGED
@@ -1,26 +1,42 @@
1
- import appInsights from "./appInsights.js";
2
- import { Cli } from "./cli/Cli.js";
3
- import { settingsNames } from "./settingsNames.js";
4
- class Telemetry {
5
- trackEvent(commandName, properties) {
1
+ import child_process from 'child_process';
2
+ import path from 'path';
3
+ import url from 'url';
4
+ import { Cli } from './cli/Cli.js';
5
+ import { settingsNames } from './settingsNames.js';
6
+ import { pid } from './utils/pid.js';
7
+ import { session } from './utils/session.js';
8
+ const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
9
+ function trackTelemetry(object) {
10
+ try {
11
+ const child = child_process.spawn('node', [path.join(__dirname, 'telemetryRunner.js')], {
12
+ stdio: ['pipe', 'ignore', 'ignore'],
13
+ detached: true
14
+ });
15
+ child.unref();
16
+ object.shell = pid.getProcessName(process.ppid) || '';
17
+ object.session = session.getId(process.ppid);
18
+ child.stdin.write(JSON.stringify(object));
19
+ child.stdin.end();
20
+ }
21
+ catch { }
22
+ }
23
+ export const telemetry = {
24
+ trackEvent: (commandName, properties) => {
6
25
  if (Cli.getInstance().getSettingWithDefaultValue(settingsNames.disableTelemetry, false)) {
7
26
  return;
8
27
  }
9
- appInsights.trackEvent({
10
- name: commandName,
28
+ trackTelemetry({
29
+ commandName,
11
30
  properties
12
31
  });
13
- appInsights.flush();
14
- }
15
- trackException(exception) {
32
+ },
33
+ trackException: (exception) => {
16
34
  if (Cli.getInstance().getSettingWithDefaultValue(settingsNames.disableTelemetry, false)) {
17
35
  return;
18
36
  }
19
- appInsights.trackException({
37
+ trackTelemetry({
20
38
  exception
21
39
  });
22
- appInsights.flush();
23
40
  }
24
- }
25
- export const telemetry = new Telemetry();
41
+ };
26
42
  //# sourceMappingURL=telemetry.js.map
@@ -0,0 +1,26 @@
1
+ import appInsights from './appInsights.js';
2
+ import * as process from 'process';
3
+ import * as fs from 'fs';
4
+ process.stdin.setEncoding('utf8');
5
+ try {
6
+ // read from stdin
7
+ const input = fs.readFileSync(0, 'utf-8');
8
+ const data = JSON.parse(input);
9
+ const { commandName, properties, exception, shell, session } = data;
10
+ appInsights.commonProperties.shell = shell;
11
+ appInsights.context.tags['ai.session.id'] = session;
12
+ if (exception) {
13
+ appInsights.trackException({
14
+ exception
15
+ });
16
+ }
17
+ else {
18
+ appInsights.trackEvent({
19
+ name: commandName,
20
+ properties
21
+ });
22
+ }
23
+ appInsights.flush();
24
+ }
25
+ catch { }
26
+ //# sourceMappingURL=telemetryRunner.js.map
@@ -18,7 +18,7 @@ m365 aad license list [options]
18
18
 
19
19
  ## Examples
20
20
 
21
- List all licenses within the tenant
21
+ List all licenses within the tenant.
22
22
 
23
23
  ```sh
24
24
  m365 aad license list
@@ -32,24 +32,30 @@ m365 aad license list
32
32
  ```json
33
33
  [
34
34
  {
35
+ "accountName": "contoso",
36
+ "accountId": "a9b44919-790b-4843-9b45-1923b8c3d61f",
37
+ "appliesTo": "User",
35
38
  "capabilityStatus": "Enabled",
36
39
  "consumedUnits": 1,
37
40
  "id": "48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df",
38
41
  "skuId": "c7df2760-2c81-4ef7-b578-5b5392b571df",
39
- "skuPartNumber": "ENTERPRISEPREMIUM",
40
- "appliesTo": "User",
42
+ "skuPartNumber": "ENTERPRISEPREMIUM",
43
+ "subscriptionIds": [
44
+ "b079cd48-7a9e-4d8b-af82-60f3adefe53b"
45
+ ],
41
46
  "prepaidUnits": {
42
47
  "enabled": 10000,
43
48
  "suspended": 0,
44
- "warning": 0
49
+ "warning": 0,
50
+ "lockedOut": 0
45
51
  },
46
52
  "servicePlans": [
47
- {
48
- "servicePlanId": "8c098270-9dd4-4350-9b30-ba4703f3b36b",
49
- "servicePlanName": "ADALLOM_S_O365",
50
- "provisioningStatus": "Success",
51
- "appliesTo": "User"
52
- }
53
+ {
54
+ "servicePlanId": "8c098270-9dd4-4350-9b30-ba4703f3b36b",
55
+ "servicePlanName": "ADALLOM_S_O365",
56
+ "provisioningStatus": "Success",
57
+ "appliesTo": "User"
58
+ }
53
59
  ]
54
60
  }
55
61
  ]
@@ -68,8 +74,8 @@ m365 aad license list
68
74
  <TabItem value="CSV">
69
75
 
70
76
  ```csv
71
- id,skuId,skuPartNumber
72
- 48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df,c7df2760-2c81-4ef7-b578-5b5392b571df,ENTERPRISEPREMIUM
77
+ accountName,accountId,appliesTo,capabilityStatus,consumedUnits,id,skuId,skuPartNumber
78
+ contoso,a9b44919-790b-4843-9b45-1923b8c3d61f,User,Enabled,1,48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df,c7df2760-2c81-4ef7-b578-5b5392b571df,ENTERPRISEPREMIUM
73
79
  ```
74
80
 
75
81
  </TabItem>
@@ -84,16 +90,15 @@ m365 aad license list
84
90
 
85
91
  Property | Value
86
92
  ---------|-------
93
+ accountName | contoso
94
+ accountId | a9b44919-790b-4843-9b45-1923b8c3d61f
95
+ appliesTo | User
87
96
  capabilityStatus | Enabled
88
97
  consumedUnits | 1
89
98
  id | 48a80680-7326-48cd-9935-b556b81d3a4e_c7df2760-2c81-4ef7-b578-5b5392b571df
90
99
  skuId | c7df2760-2c81-4ef7-b578-5b5392b571df
91
100
  skuPartNumber | ENTERPRISEPREMIUM
92
- appliesTo | User
93
- prepaidUnits | {"enabled":10000,"suspended":0,"warning":0}
94
- servicePlans | [{"servicePlanId":"8c098270-9dd4-4350-9b30-ba4703f3b36b","servicePlanName": "ADALLOM_S_O365","provisioningStatus": "Success","appliesTo": "User"}]
95
101
  ```
96
102
 
97
103
  </TabItem>
98
104
  </Tabs>
99
-
@@ -31,7 +31,7 @@ m365 aad m365group add [options]
31
31
  : Comma-separated list of Microsoft 365 Group members
32
32
 
33
33
  `--visibility [visibility]`
34
- : Specifies the group join policy and group content visibility for groups. Possible values are: `Private`, `Public`, or `HiddenMembership`. Defaults to `Public`.
34
+ : Specifies the group join policy and group content visibility for groups. Allowed values: `Private`, `Public`, or `HiddenMembership`. Defaults to `Public`.
35
35
 
36
36
  `--allowMembersToPost [allowMembersToPost]`
37
37
  : Set if only group members should be able to post conversations to the group
@@ -22,7 +22,7 @@ m365 aad user add [options]
22
22
  : The user principal name (someuser@contoso.com).
23
23
 
24
24
  `--accountEnabled [accountEnabled]`
25
- : Whether the account is enabled. Possible values: `true`, `false`. Default value is `true`.
25
+ : Whether the account is enabled. Allowed values: `true`, `false`. Defaults to `true`.
26
26
 
27
27
  `--mailNickname [mailNickname]`
28
28
  : The mail alias for the user. By default this value will be extracted from `userName`.
@@ -73,7 +73,7 @@ m365 aad user add [options]
73
73
 
74
74
  :::info
75
75
 
76
- To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator
76
+ To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator.
77
77
 
78
78
  :::
79
79
 
@@ -174,7 +174,6 @@ m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --m
174
174
  Property | Value
175
175
  ---------|-------
176
176
  id | 990e2425-f595-43bc-85ed-b89a44093793
177
- businessPhones | []
178
177
  displayName | John Doe
179
178
  givenName | John
180
179
  jobTitle | Sales Manager
@@ -189,4 +188,3 @@ m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --m
189
188
 
190
189
  </TabItem>
191
190
  </Tabs>
192
-
@@ -37,13 +37,13 @@ The user must have a `usageLocation` value in order to assign a license to it.
37
37
 
38
38
  ## Examples
39
39
 
40
- Assign specific licenses to a specific user by UPN
40
+ Assign specific licenses to a specific user by UPN.
41
41
 
42
42
  ```sh
43
43
  m365 aad user license add --userName "john.doe@contoso.com" --ids "45715bb8-13f9-4bf6-927f-ef96c102d394,bea13e0c-3828-4daa-a392-28af7ff61a0f"
44
44
  ```
45
45
 
46
- Assign specific licenses from a specific user by ID
46
+ Assign specific licenses from a specific user by ID.
47
47
 
48
48
  ```sh
49
49
  m365 aad user license add --userId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --ids "45715bb8-13f9-4bf6-927f-ef96c102d394,bea13e0c-3828-4daa-a392-28af7ff61a0f"
@@ -107,7 +107,6 @@ m365 aad user license add --userId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --ids
107
107
 
108
108
  Property | Value
109
109
  ---------|-------
110
- businessPhones | []
111
110
  displayName | John Doe
112
111
  givenName | null
113
112
  jobTitle | null
@@ -122,4 +121,3 @@ m365 aad user license add --userId "5c241023-2ba5-4ea8-a516-a2481a3e6c51" --ids
122
121
 
123
122
  </TabItem>
124
123
  </Tabs>
125
-
@@ -79,9 +79,9 @@ m365 aad user license list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
79
79
  <TabItem value="Text">
80
80
 
81
81
  ```text
82
- id : x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw
83
- skuId : c42b9cae-ea4f-4ab7-9717-81576235ccac
84
- skuPartNumber: DEVELOPERPACK_E5
82
+ id skuId skuPartNumber
83
+ ------------------------------------------- ------------------------------------ -----------------------------------------
84
+ x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw c42b9cae-ea4f-4ab7-9717-81576235ccac DEVELOPERPACK_E5
85
85
  ```
86
86
 
87
87
  </TabItem>
@@ -107,9 +107,7 @@ m365 aad user license list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
107
107
  id | x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw
108
108
  skuId | c42b9cae-ea4f-4ab7-9717-81576235ccac
109
109
  skuPartNumber | DEVELOPERPACK\_E5
110
- servicePlans | [{"servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653","servicePlanName":"YAMMER\_ENTERPRISE","provisioningStatus":"Success","appliesTo":"User"}]
111
110
  ```
112
111
 
113
112
  </TabItem>
114
113
  </Tabs>
115
-
@@ -18,7 +18,7 @@ m365 aad user recyclebinitem list [options]
18
18
 
19
19
  ## Examples
20
20
 
21
- List all removed users
21
+ List all removed users.
22
22
 
23
23
  ```sh
24
24
  m365 aad user recyclebinitem list
@@ -76,7 +76,6 @@ m365 aad user recyclebinitem list
76
76
 
77
77
  Property | Value
78
78
  ---------|-------
79
- businessPhones | []
80
79
  displayName | John Doe
81
80
  givenName | John Doe
82
81
  jobTitle | Developer
@@ -91,4 +90,3 @@ m365 aad user recyclebinitem list
91
90
 
92
91
  </TabItem>
93
92
  </Tabs>
94
-
@@ -37,7 +37,7 @@ After running this command, it may take a minute before the user will reappear i
37
37
 
38
38
  ## Examples
39
39
 
40
- Restore user from the recycle bin
40
+ Restore user from the recycle bin.
41
41
 
42
42
  ```sh
43
43
  m365 aad user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
@@ -102,7 +102,6 @@ m365 aad user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
102
102
  Property | Value
103
103
  ---------|-------
104
104
  id | 990e2425-f595-43bc-85ed-b89a44093793
105
- businessPhones | []
106
105
  displayName | John Doe
107
106
  givenName | John
108
107
  jobTitle | Sales Manager
@@ -116,4 +115,3 @@ m365 aad user recyclebinitem restore --id 990e2425-f595-43bc-85ed-b89a44093793
116
115
 
117
116
  </TabItem>
118
117
  </Tabs>
119
-
@@ -33,13 +33,14 @@ If the environment with the name you specified doesn't exist, you will get the `
33
33
 
34
34
  ## Examples
35
35
 
36
- Get information about a Microsoft Flow environment specified by name
36
+ Get information about a Microsoft Flow environment specified by name.
37
37
 
38
38
  ```sh
39
39
  m365 flow environment get --name Default-d87a7535-dd31-4437-bfe1-95340acd55c5
40
40
  ```
41
41
 
42
- Get information about the default Microsoft Flow environment
42
+ Get information about the default Microsoft Flow environment.
43
+
43
44
  ```sh
44
45
  m365 flow environment get
45
46
  ```
@@ -162,7 +163,6 @@ m365 flow environment get
162
163
  location | india
163
164
  type | Microsoft.ProcessSimple/environments
164
165
  id | /providers/Microsoft.ProcessSimple/environments/Default-d87a7535-dd31-4437-bfe1-95340acd55c5
165
- properties | {"displayName":"contoso (default)","createdTime":"2019-12-21T18:32:11.8708704Z","createdBy":{"id":"SYSTEM","displayName": "SYSTEM","type": "NotSpecified"},"provisioningState":"Succeeded","creationType":"DefaultTenant","environmentSku":"Default","environmentType":"NotSpecified","states":{"management":{"id":"NotSpecified"},"runtime":{"runtimeReasonCode":"NotSpecified","requestedBy":{"displayName":"SYSTEM","type":"NotSpecified"},"id":"Enabled"}},"isDefault":true,"isPayAsYouGoEnabled":false,"azureRegionHint":"centralindia","runtimeEndpoints":{"microsoft.BusinessAppPlatform":"https://india.api.bap.microsoft.com","microsoft.CommonDataModel":"https://india.api.cds.microsoft.com","microsoft.PowerApps":"https://india.api.powerapps.com",microsoft.PowerAppsAdvisor":"https://india.api.advisor.powerapps.com","microsoft.PowerVirtualAgents":"https://powervamg.in-il101.gateway.prod.island.powerapps.com","microsoft.ApiManagement":"https://management.INDIA.azure-apihub.net","microsoft.Flow":"https://india.api.flow.microsoft.com"},"linkedEnvironmentMetadata":{"type":"NotSpecified","resourceId":"3aa550bf-52ac-42fc-98f7-5d1833c1501c","friendlyName":"contoso (default)","uniqueName":"orgfc80770f","domainName":"orgfc80770f","version":"9.2.22105.00154","instanceUrl":"https://orgfc80770f.crm8.dynamics.com/","instanceApiUrl":"https://orgfc80770f.api.crm8.dynamics.com","baseLanguage":1033,"instanceState":"Ready","createdTime":"2019-12-25T15:46:14.433Z"},"environmentFeatures":{"isOpenApiEnabled":false},"cluster":{"category":"Prod","number":"101","uriSuffix":"in-il101.gateway.prod.island","geoShortName":"IN","environment":"Prod"},"governanceConfiguration":{"protectionLevel":"Basic"}}
166
166
  displayName | contoso (default)
167
167
  provisioningState | Succeeded
168
168
  environmentSku | Default
@@ -172,4 +172,3 @@ m365 flow environment get
172
172
 
173
173
  </TabItem>
174
174
  </Tabs>
175
-
@@ -26,7 +26,7 @@ This command is based on an API that is currently in preview and is subject to c
26
26
 
27
27
  ## Examples
28
28
 
29
- List Microsoft Flow environments in the current tenant
29
+ List Microsoft Flow environments in the current tenant.
30
30
 
31
31
  ```sh
32
32
  m365 flow environment list
@@ -127,8 +127,8 @@ m365 flow environment list
127
127
  <TabItem value="CSV">
128
128
 
129
129
  ```csv
130
- name,displayName
131
- d87a7535-dd31-4437-bfe1-95340acd55c5,Contoso Environment
130
+ name,location,type,id,displayName
131
+ d87a7535-dd31-4437-bfe1-95340acd55c5,india,Microsoft.ProcessSimple/environments,/providers/Microsoft.ProcessSimple/environments/d87a7535-dd31-4437-bfe1-95340acd55c5,Contoso Environment
132
132
  ```
133
133
 
134
134
  </TabItem>
@@ -152,4 +152,3 @@ m365 flow environment list
152
152
 
153
153
  </TabItem>
154
154
  </Tabs>
155
-
@@ -29,13 +29,13 @@ m365 flow owner list [options]
29
29
 
30
30
  ## Examples
31
31
 
32
- Gets the owners by the name of the Power Automate flow within a specified environment
32
+ Gets the owners by the name of the Power Automate flow within a specified environment.
33
33
 
34
34
  ```sh
35
35
  m365 flow owner list --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72
36
36
  ```
37
37
 
38
- Gets the owners by the name of the Power Automate flow within a specified environment with admin privileges
38
+ Gets the owners by the name of the Power Automate flow within a specified environment with admin privileges.
39
39
 
40
40
  ```sh
41
41
  m365 flow owner list --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72 --asAdmin
@@ -96,7 +96,6 @@ m365 flow owner list --environmentName Default-c5a5d746-3520-453f-8a69-780f8e449
96
96
  name | fe36f75e-c103-410b-a18a-2bf6df06ac3a
97
97
  id | /providers/Microsoft.ProcessSimple/environments/Default-c5a5d746-3520-453f-8a69-780f8e44917e/flows/72f2be4a-78c1-4220-a048-dbf557296a72/permissions/fe36f75e-c103-410b-a18a-2bf6df06ac3a
98
98
  type | /providers/Microsoft.ProcessSimple/environments/flows/permissions
99
- properties | {"roleName":"Owner","permissionType":"Principal","principal":{"id":"fe36f75e-c103-410b-a18a-2bf6df06ac3a","type":"User"}}
100
99
  ```
101
100
 
102
101
  </TabItem>
@@ -16,10 +16,10 @@ m365 flow run list [options]
16
16
 
17
17
  ```md definition-list
18
18
  `--flowName <flowName>`
19
- : The name of the Microsoft Flow to retrieve the runs for
19
+ : The name of the Microsoft Flow to retrieve the runs for.
20
20
 
21
21
  `-e, --environmentName <environmentName>`
22
- : The name of the environment to which the flow belongs
22
+ : The name of the environment to which the flow belongs.
23
23
 
24
24
  `--status [status]`
25
25
  : Filter the results to only flow runs with a given status: `Succeeded`, `Running`, `Failed` or `Cancelled`. By default all flow runs are listed.
@@ -50,25 +50,25 @@ If the Microsoft Flow with the name you specified doesn't exist, you will get th
50
50
 
51
51
  ## Examples
52
52
 
53
- List runs of the specified Microsoft Flow
53
+ List runs of the specified Microsoft Flow.
54
54
 
55
55
  ```sh
56
56
  m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a
57
57
  ```
58
58
 
59
- List runs of the specified Microsoft Flow with a specific status
59
+ List runs of the specified Microsoft Flow with a specific status.
60
60
 
61
61
  ```sh
62
62
  m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a --status Running
63
63
  ```
64
64
 
65
- List runs of the specified Microsoft Flow between a specific time range
65
+ List runs of the specified Microsoft Flow between a specific time range.
66
66
 
67
67
  ```sh
68
68
  m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a --triggerStartTime 2023-01-21T18:19:00Z --triggerEndTime 2023-01-22T00:00:00Z
69
69
  ```
70
70
 
71
- List runs of the specified Microsoft Flow owned by another user
71
+ List runs of the specified Microsoft Flow owned by another user.
72
72
 
73
73
  ```sh
74
74
  m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --flowName 5923cb07-ce1a-4a5c-ab81-257ce820109a --asAdmin
@@ -158,11 +158,9 @@ m365 flow run list --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c
158
158
  name | 08585329112602833828909892130CU17
159
159
  id | /providers/Microsoft.ProcessSimple/environments/Default-de348bc7-1aeb-4406-8cb3-97db021cadb4/flows/170fb67e-a514-4d84-8727-582022bd13a9/runs/08585329112602833828909892130CU17
160
160
  type | Microsoft.ProcessSimple/environments/flows/runs
161
- properties | {"startTime":"2022-11-17T14:33:45.2763872Z","status":"Running","correlation":{"clientTrackingId":"08585329112602833829909892130CU00"},"trigger":{"name":"When_a_new_response_is_submitted","inputsLink":{"uri":"https://prod-08.centralindia.logic.azure.com:443/workflows/f7bf8f6b5c494e63bfc21b54087a596e/runs/08585329112602833828909892130CU17/contents/TriggerInputs?api-version=2016-06-01&se=2022-11-17T18%3A00%3A00.0000000Z&sp=%2Fruns%2F08585329112602833828909892130CU17%2Fcontents%2FTriggerInputs%2Fread&sv=1.0&sig=jmdMRWvY7uGoxTmqd3_a2bJtegXuVyuKTKKUVLiwh38","contentVersion":"6ZrBBE+MJg7IvhMgyJLMmA==","contentSize":349,"contentHash":{"algorithm":"md5","value":"6ZrBBE+MJg7IvhMgyJLMmA=="}},"outputsLink":{"uri":"https://prod-08.centralindia.logic.azure.com:443/workflows/f7bf8f6b5c494e63bfc21b54087a596e/runs/08585329112602833828909892130CU17/contents/TriggerOutputs?api-version=2016-06-01&se=2022-11-17T18%3A00%3A00.0000000Z&sp=%2Fruns%2F08585329112602833828909892130CU17%2Fcontents%2FTriggerOutputs%2Fread&sv=1.0&sig=Y3qqjuWrrcQJrmF7uvm6LVzQy5w-dNOFWJ8Yt8khXvA","contentVersion":"Z/4a8tfYygNAR1xpc44iww==","contentSize":493,"contentHash":{"algorithm":"md5","value":"Z/4a8tfYygNAR1xpc44iww=="}},"startTime":"2022-11-17T14:33:45.1914506Z","endTime":"2022-11-17T14:33:45.1914506Z","originHistoryName":"08585329112602833829909892130CU00","correlation":{"clientTrackingId":"08585329112602833829909892130CU00"},"status":"Succeeded"}}
162
161
  startTime | 2022-11-17T14:33:45.2763872Z
163
162
  status | Running
164
163
  ```
165
164
 
166
165
  </TabItem>
167
166
  </Tabs>
168
-
@@ -42,13 +42,13 @@ Get a list of schemaExtension objects created in the current tenant, that can be
42
42
  m365 graph schemaextension list
43
43
  ```
44
44
 
45
- Get a list of schemaExtension objects created in the current tenant, with owner 617720dc-85fc-45d7-a187-cee75eaf239e
45
+ Get a list of schemaExtension objects created in the current tenant, with the specified owner.
46
46
 
47
47
  ```sh
48
48
  m365 graph schemaextension list --owner 617720dc-85fc-45d7-a187-cee75eaf239e
49
49
  ```
50
50
 
51
- Get a list of schemaExtension objects created in the current tenant, with owner 617720dc-85fc-45d7-a187-cee75eaf239e and return the third page of results of 10
51
+ Get a list of schemaExtension objects created in the current tenant, with the specified owner and return the third page of results of 10.
52
52
 
53
53
  ```sh
54
54
  m365 graph schemaextension list --owner 617720dc-85fc-45d7-a187-cee75eaf239e --pageNumber 2 --pageSize 10
@@ -116,7 +116,6 @@ m365 graph schemaextension list --owner 617720dc-85fc-45d7-a187-cee75eaf239e --p
116
116
  description | sample description
117
117
  status | Available
118
118
  owner | 617720dc-85fc-45d7-a187-cee75eaf239e
119
- properties | [{"name":"p1","type":"String"},{"name":"p2","type":"String"}]
120
119
  ```
121
120
 
122
121
  </TabItem>