@pnp/cli-microsoft365 8.0.0-beta.e6f9331 → 8.1.0-beta.3a80e6f

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 (107) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/allCommands.json +1 -1
  3. package/allCommandsFull.json +1 -1
  4. package/dist/Auth.js +10 -18
  5. package/dist/Command.js +49 -2
  6. package/dist/chili/chili.js +0 -23
  7. package/dist/cli/cli.js +61 -101
  8. package/dist/m365/commands/login.js +44 -96
  9. package/dist/m365/commands/setup.js +0 -4
  10. package/dist/m365/connection/commands/connection-remove.js +6 -2
  11. package/dist/m365/connection/commands/connection-set.js +4 -1
  12. package/dist/m365/connection/commands/connection-use.js +25 -4
  13. package/dist/m365/entra/commands/m365group/m365group-set.js +66 -29
  14. package/dist/m365/entra/commands/m365group/m365group-user-add.js +109 -32
  15. package/dist/m365/entra/commands/m365group/m365group-user-set.js +159 -84
  16. package/dist/m365/entra/commands/multitenant/MultitenantOrganization.js +2 -0
  17. package/dist/m365/entra/commands/multitenant/multitenant-add.js +65 -0
  18. package/dist/m365/entra/commands/multitenant/multitenant-get.js +32 -0
  19. package/dist/m365/entra/commands/multitenant/multitenant-remove.js +118 -0
  20. package/dist/m365/entra/commands/multitenant/multitenant-set.js +72 -0
  21. package/dist/m365/entra/commands.js +4 -0
  22. package/dist/m365/external/commands/connection/connection-doctor.js +10 -24
  23. package/dist/m365/flow/commands/flow-get.js +1 -1
  24. package/dist/m365/flow/commands/flow-list.js +2 -1
  25. package/dist/m365/graph/commands/subscription/subscription-add.js +4 -2
  26. package/dist/m365/spe/ContainerTypeProperties.js +2 -0
  27. package/dist/m365/spe/commands/containertype/containertype-list.js +49 -0
  28. package/dist/m365/spe/commands.js +2 -1
  29. package/dist/m365/spfx/commands/project/base-project-command.js +36 -126
  30. package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.js +16 -21
  31. package/dist/m365/spo/commands/commandset/commandset-get.js +31 -17
  32. package/dist/m365/spo/commands/contenttype/contenttype-field-list.js +124 -0
  33. package/dist/m365/spo/commands/field/field-list.js +1 -1
  34. package/dist/m365/spo/commands/file/file-roleassignment-add.js +1 -1
  35. package/dist/m365/spo/commands/file/file-roleinheritance-break.js +1 -1
  36. package/dist/m365/spo/commands/file/file-roleinheritance-reset.js +1 -1
  37. package/dist/m365/spo/commands/folder/folder-retentionlabel-ensure.js +1 -1
  38. package/dist/m365/spo/commands/folder/folder-sharinglink-get.js +86 -0
  39. package/dist/m365/spo/commands/folder/folder-sharinglink-list.js +110 -0
  40. package/dist/m365/spo/commands/list/ListInstance.js +6 -1
  41. package/dist/m365/spo/commands/list/list-get.js +9 -3
  42. package/dist/m365/spo/commands/list/list-roleassignment-add.js +46 -21
  43. package/dist/m365/spo/commands/list/list-roleassignment-remove.js +48 -46
  44. package/dist/m365/spo/commands/page/page-clientsidewebpart-add.js +2 -3
  45. package/dist/m365/spo/commands/page/page-text-add.js +2 -3
  46. package/dist/m365/spo/commands/spo-search.js +3 -4
  47. package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-get.js +19 -5
  48. package/dist/m365/spo/commands/tenant/tenant-commandset-get.js +20 -6
  49. package/dist/m365/spo/commands.js +3 -0
  50. package/dist/m365/teams/commands/meeting/meeting-attendancereport-get.js +119 -0
  51. package/dist/m365/teams/commands/message/message-remove.js +112 -0
  52. package/dist/m365/teams/commands.js +2 -0
  53. package/dist/m365/viva/commands/engage/engage-community-add.js +166 -0
  54. package/dist/m365/viva/commands.js +1 -0
  55. package/dist/utils/drive.js +61 -0
  56. package/dist/utils/formatting.js +30 -1
  57. package/dist/utils/spo.js +69 -6
  58. package/dist/utils/teams.js +49 -0
  59. package/dist/utils/zod.js +124 -0
  60. package/docs/docs/cmd/connection/connection-use.mdx +8 -2
  61. package/docs/docs/cmd/entra/m365group/m365group-set.mdx +37 -7
  62. package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +28 -10
  63. package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +35 -11
  64. package/docs/docs/cmd/entra/multitenant/multitenant-add.mdx +107 -0
  65. package/docs/docs/cmd/entra/multitenant/multitenant-get.mdx +94 -0
  66. package/docs/docs/cmd/entra/multitenant/multitenant-remove.mdx +58 -0
  67. package/docs/docs/cmd/entra/multitenant/multitenant-set.mdx +53 -0
  68. package/docs/docs/cmd/external/connection/connection-doctor.mdx +9 -9
  69. package/docs/docs/cmd/flow/flow-get.mdx +149 -283
  70. package/docs/docs/cmd/graph/subscription/subscription-add.mdx +18 -0
  71. package/docs/docs/cmd/planner/plan/plan-remove.mdx +1 -1
  72. package/docs/docs/cmd/spe/containertype/containertype-list.mdx +102 -0
  73. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx +87 -38
  74. package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-list.mdx +22 -28
  75. package/docs/docs/cmd/spo/commandset/commandset-get.mdx +75 -24
  76. package/docs/docs/cmd/spo/commandset/commandset-list.mdx +26 -32
  77. package/docs/docs/cmd/spo/contenttype/contenttype-field-list.mdx +172 -0
  78. package/docs/docs/cmd/spo/contenttype/contenttype-list.mdx +3 -3
  79. package/docs/docs/cmd/spo/field/field-list.mdx +3 -3
  80. package/docs/docs/cmd/spo/file/file-retentionlabel-ensure.mdx +1 -1
  81. package/docs/docs/cmd/spo/file/file-roleassignment-add.mdx +2 -2
  82. package/docs/docs/cmd/spo/file/file-roleassignment-remove.mdx +1 -1
  83. package/docs/docs/cmd/spo/file/file-roleinheritance-break.mdx +1 -1
  84. package/docs/docs/cmd/spo/file/file-roleinheritance-reset.mdx +1 -1
  85. package/docs/docs/cmd/spo/folder/folder-retentionlabel-ensure.mdx +2 -2
  86. package/docs/docs/cmd/spo/folder/folder-sharinglink-get.mdx +110 -0
  87. package/docs/docs/cmd/spo/folder/folder-sharinglink-list.mdx +114 -0
  88. package/docs/docs/cmd/spo/list/list-get.mdx +6 -0
  89. package/docs/docs/cmd/spo/list/list-roleassignment-add.mdx +15 -3
  90. package/docs/docs/cmd/spo/list/list-roleassignment-remove.mdx +15 -3
  91. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-ensure.mdx +4 -4
  92. package/docs/docs/cmd/spo/listitem/listitem-retentionlabel-remove.mdx +1 -1
  93. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-add.mdx +9 -9
  94. package/docs/docs/cmd/spo/listitem/listitem-roleassignment-remove.mdx +7 -7
  95. package/docs/docs/cmd/spo/site/site-recyclebinitem-list.mdx +1 -1
  96. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-get.mdx +79 -30
  97. package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-list.mdx +20 -19
  98. package/docs/docs/cmd/spo/tenant/tenant-commandset-get.mdx +84 -38
  99. package/docs/docs/cmd/spo/tenant/tenant-commandset-list.mdx +20 -19
  100. package/docs/docs/cmd/spo/web/web-roleassignment-add.mdx +1 -1
  101. package/docs/docs/cmd/spo/web/web-roleassignment-remove.mdx +1 -1
  102. package/docs/docs/cmd/teams/meeting/meeting-attendancereport-get.mdx +138 -0
  103. package/docs/docs/cmd/teams/meeting/meeting-list.mdx +7 -3
  104. package/docs/docs/cmd/teams/message/message-remove.mdx +63 -0
  105. package/docs/docs/cmd/viva/engage/engage-community-add.mdx +168 -0
  106. package/npm-shrinkwrap.json +590 -1024
  107. package/package.json +7 -3
@@ -0,0 +1,58 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra multitenant remove
4
+
5
+ Removes a multitenant organization
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra multitenant remove [options]
11
+ ```
12
+
13
+ ## options
14
+
15
+ ```md definition-list
16
+ `-f, --force`
17
+ : Don't prompt for confirmation.
18
+ ```
19
+
20
+ <Global />
21
+
22
+ ## Remarks
23
+
24
+ :::info
25
+
26
+ To use this command you must be at least **Security Administrator**.
27
+
28
+ :::
29
+
30
+ :::info
31
+
32
+ When removing a Multi-Tenant Organization, all associations with other tenants will be removed too.
33
+
34
+ The removing process can take up to 2 hours to complete.
35
+
36
+ :::
37
+
38
+ ## Examples
39
+
40
+ Remove the multitenant organization.
41
+
42
+ ```sh
43
+ m365 entra multitenant remove
44
+ ```
45
+
46
+ Remove the multitenant organization without prompting for confirmation.
47
+
48
+ ```sh
49
+ m365 entra multitenant remove --force
50
+ ```
51
+
52
+ ## Response
53
+
54
+ The command won't return a response on success
55
+
56
+ ## More information
57
+
58
+ - Multitenant organization: https://learn.microsoft.com/entra/identity/multi-tenant-organizations/overview
@@ -0,0 +1,53 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+
3
+ # entra multitenant set
4
+
5
+ Updates the properties of a multitenant organization
6
+
7
+ ## Usage
8
+
9
+ ```sh
10
+ m365 entra multitenant set [options]
11
+ ```
12
+
13
+ ## Options
14
+
15
+ ```md definition-list
16
+ `-n, --displayName [displayName]`
17
+ : New display name of the multitenant organization. Both options, `displayName` and `description` are optional but at least must be specified.
18
+
19
+ `-d, --description [description]`
20
+ : New description of the multitenant organization. Both options, `displayName` and `description` are optional but at least must be specified.
21
+ ```
22
+
23
+ <Global />
24
+
25
+ ## Remarks
26
+
27
+ :::info
28
+
29
+ To use this command you must be at least **Security Administrator**.
30
+
31
+ :::
32
+
33
+ ## Examples
34
+
35
+ Update display name of multitenant organization.
36
+
37
+ ```sh
38
+ m365 entra multitenant set --displayName 'Fabrikam organization'
39
+ ```
40
+
41
+ Update display name and description of multitenant organization.
42
+
43
+ ```sh
44
+ m365 entra multitenant set --displayName 'Fabrikam organization' --description 'Multitenant organization between Fabrikam and Contoso'
45
+ ```
46
+
47
+ ## Response
48
+
49
+ The command won't return a response on success
50
+
51
+ ## More information
52
+
53
+ - Multitenant organization: https://learn.microsoft.com/entra/identity/multi-tenant-organizations/overview
@@ -126,15 +126,15 @@ m365 external connection doctor --id contosoproducts --ux copilot
126
126
  <TabItem value="Text">
127
127
 
128
128
  ```text
129
- Load connection
130
- Load schema
131
- Required semantic labels: Missing label iconUrl
132
- Searchable properties
133
- Items have content ingested
134
- Connection configured for inline results (manual)
135
- Items have activities recorded (manual)
136
- Meaningful connection name and description (manual)
137
- urlToItemResolver configured
129
+ Load connection
130
+ Load schema
131
+ × Required semantic labels: Missing label iconUrl
132
+ Searchable properties
133
+ Items have content ingested
134
+ i Connection configured for inline results (manual)
135
+ i Items have activities recorded (manual)
136
+ i Meaningful connection name and description (manual)
137
+ urlToItemResolver configured
138
138
  ```
139
139
 
140
140
  </TabItem>
@@ -62,352 +62,218 @@ m365 flow get --environmentName Default-d87a7535-dd31-4437-bfe1-95340acd55c5 --n
62
62
 
63
63
  ```json
64
64
  {
65
- "name": "ca76d7b8-3b76-4050-8c03-9fb310ad172f",
66
- "id": "/providers/Microsoft.ProcessSimple/environments/Default-00000000-0000-0000-0000-000000000000/flows/ca76d7b8-3b76-4050-8c03-9fb310ad172f",
65
+ "name": "a18e89d1-4c75-41e4-9517-e90aedc079be",
66
+ "id": "/providers/Microsoft.ProcessSimple/environments/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d/flows/a18e89d1-4c75-41e4-9517-e90aedc079be",
67
67
  "type": "Microsoft.ProcessSimple/environments/flows",
68
68
  "properties": {
69
69
  "apiId": "/providers/Microsoft.PowerApps/apis/shared_logicflows",
70
- "displayName": "My Flow",
70
+ "displayName": "TEST",
71
71
  "userType": "Owner",
72
72
  "definition": {
73
73
  "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
74
74
  "contentVersion": "1.0.0.0",
75
75
  "parameters": {
76
- "$connections": {
77
- "defaultValue": {},
78
- "type": "Object"
79
- },
80
76
  "$authentication": {
81
77
  "defaultValue": {},
82
78
  "type": "SecureObject"
79
+ },
80
+ "$connections": {
81
+ "defaultValue": {},
82
+ "type": "Object"
83
83
  }
84
84
  },
85
85
  "triggers": {
86
- "When_a_file_is_created_in_a_folder": {
87
- "recurrence": {
88
- "frequency": "Minute",
89
- "interval": 1
90
- },
86
+ "manual": {
91
87
  "metadata": {
92
- "%252fComputer%2bVision%2bDemo": "/My Flow Demo",
93
- "operationMetadataId": "2e0aa276-5536-4f67-a7b7-c1a37a91b8ca",
94
- "%252fShared%2bDocuments": "/Shared Documents"
88
+ "operationMetadataId": "04077d6a-9fdd-4c79-b742-09a8d5c022eb"
95
89
  },
96
- "type": "OpenApiConnection",
90
+ "type": "Request",
91
+ "kind": "Button",
97
92
  "inputs": {
98
- "host": {
99
- "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
100
- "connectionName": "shared_sharepointonline",
101
- "operationId": "OnNewFile"
102
- },
103
- "parameters": {
104
- "dataset": "https://contoso.sharepoint.com/sites/contosoHome",
105
- "folderId": "%252fShared%2bDocuments",
106
- "inferContentType": true
107
- },
108
- "authentication": "@parameters('$authentication')"
93
+ "schema": {
94
+ "type": "object",
95
+ "properties": {
96
+ "text": {
97
+ "description": "Please enter your input",
98
+ "title": "Text",
99
+ "type": "string",
100
+ "x-ms-content-hint": "TEXT",
101
+ "x-ms-dynamically-added": true
102
+ },
103
+ "boolean": {
104
+ "description": "Please select yes or no",
105
+ "title": "Boolean",
106
+ "type": "boolean",
107
+ "x-ms-content-hint": "BOOLEAN",
108
+ "x-ms-dynamically-added": true
109
+ },
110
+ "number": {
111
+ "description": "Please enter a number",
112
+ "title": "Number",
113
+ "type": "number",
114
+ "x-ms-content-hint": "NUMBER",
115
+ "x-ms-dynamically-added": true
116
+ }
117
+ },
118
+ "required": [
119
+ "text",
120
+ "boolean",
121
+ "number"
122
+ ]
123
+ }
109
124
  }
110
125
  }
111
126
  },
112
127
  "actions": {
113
- "Analyze_Image": {
114
- "runAfter": {
115
- "Initialize_variable": [
116
- "Succeeded"
117
- ]
118
- },
119
- "metadata": {
120
- "operationMetadataId": "82b95160-9c96-4507-ad8c-c688ea95c2b1"
121
- },
122
- "type": "OpenApiConnection",
123
- "inputs": {
124
- "host": {
125
- "apiId": "/providers/Microsoft.PowerApps/apis/shared_cognitiveservicescomputervision",
126
- "connectionName": "shared_cognitiveservicescomputervision",
127
- "operationId": "AnalyzeImageV2"
128
- },
129
- "parameters": {
130
- "format": "Image Content",
131
- "Image": "@triggerOutputs()?['body']"
132
- },
133
- "authentication": "@parameters('$authentication')"
134
- }
135
- },
136
- "Compose": {
137
- "runAfter": {
138
- "Analyze_Image": [
139
- "Succeeded"
140
- ]
141
- },
142
- "metadata": {
143
- "operationMetadataId": "cbd09106-eb7a-4743-b553-8b11cd09a90c"
144
- },
145
- "type": "Compose",
146
- "inputs": "@outputs('Analyze_Image')?['body/tags']"
147
- },
148
128
  "Initialize_variable": {
149
129
  "runAfter": {},
150
- "metadata": {
151
- "operationMetadataId": "818f9da8-8ebf-4081-8d7b-8fe37470cd57"
152
- },
153
130
  "type": "InitializeVariable",
154
131
  "inputs": {
155
132
  "variables": [
156
133
  {
157
- "name": "FilePath",
158
- "type": "string",
159
- "value": "@{decodeUriComponent(decodeUriComponent(triggerOutputs()?['headers/x-ms-file-id']))}"
134
+ "name": "TEST",
135
+ "type": "string"
160
136
  }
161
137
  ]
162
138
  }
139
+ }
140
+ }
141
+ },
142
+ "triggerSchema": {
143
+ "type": "object",
144
+ "properties": {
145
+ "text": {
146
+ "description": "Please enter your input",
147
+ "title": "Text",
148
+ "type": "string",
149
+ "x-ms-content-hint": "TEXT",
150
+ "x-ms-dynamically-added": true
163
151
  },
164
- "Send_an_HTTP_request_to_SharePoint": {
165
- "runAfter": {
166
- "Compose": [
167
- "Succeeded"
168
- ]
169
- },
170
- "metadata": {
171
- "operationMetadataId": "0e9b2bf7-c52e-4b28-8351-2850a3373186"
172
- },
173
- "type": "OpenApiConnection",
174
- "inputs": {
175
- "host": {
176
- "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
177
- "connectionName": "shared_sharepointonline",
178
- "operationId": "HttpRequest"
179
- },
180
- "parameters": {
181
- "dataset": "https://contoso.sharepoint.com/sites/contosoHome",
182
- "parameters/method": "GET",
183
- "parameters/uri": "_api/web/getFileByServerRelativeURL('@{concat('/sites/contosoHome/', variables('FilePath'))}')?$select=ListItemAllFields/ID&$expand=ListItemAllFields"
184
- },
185
- "authentication": "@parameters('$authentication')"
186
- }
187
- },
188
- "Parse_JSON": {
189
- "runAfter": {
190
- "Send_an_HTTP_request_to_SharePoint": [
191
- "Succeeded"
192
- ]
193
- },
194
- "metadata": {
195
- "operationMetadataId": "7d758c3f-f603-44d0-94b6-26cb08590fb3"
196
- },
197
- "type": "ParseJson",
198
- "inputs": {
199
- "content": "@body('Send_an_HTTP_request_to_SharePoint')",
200
- "schema": {
201
- "type": "object",
202
- "properties": {
203
- "d": {
204
- "type": "object",
205
- "properties": {
206
- "__metadata": {
207
- "type": "object",
208
- "properties": {
209
- "id": {
210
- "type": "string"
211
- },
212
- "uri": {
213
- "type": "string"
214
- },
215
- "type": {
216
- "type": "string"
217
- }
218
- }
219
- },
220
- "ListItemAllFields": {
221
- "type": "object",
222
- "properties": {
223
- "__metadata": {
224
- "type": "object",
225
- "properties": {
226
- "id": {
227
- "type": "string"
228
- },
229
- "uri": {
230
- "type": "string"
231
- },
232
- "etag": {
233
- "type": "string"
234
- },
235
- "type": {
236
- "type": "string"
237
- }
238
- }
239
- },
240
- "Id": {
241
- "type": "integer"
242
- },
243
- "ID": {
244
- "type": "integer"
245
- }
246
- }
247
- }
248
- }
249
- }
250
- }
251
- }
252
- }
152
+ "boolean": {
153
+ "description": "Please select yes or no",
154
+ "title": "Boolean",
155
+ "type": "boolean",
156
+ "x-ms-content-hint": "BOOLEAN",
157
+ "x-ms-dynamically-added": true
253
158
  },
254
- "Update_file_properties": {
255
- "runAfter": {
256
- "Parse_JSON": [
257
- "Succeeded"
258
- ]
259
- },
260
- "metadata": {
261
- "operationMetadataId": "c1a801a8-1f96-498a-a356-82c9d0dd8188"
262
- },
263
- "type": "OpenApiConnection",
264
- "inputs": {
265
- "host": {
266
- "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
267
- "connectionName": "shared_sharepointonline",
268
- "operationId": "PatchFileItem"
269
- },
270
- "parameters": {
271
- "dataset": "https://contoso.sharepoint.com/sites/contosoHome",
272
- "table": "13e0b5a3-f626-4272-a73b-a3e84978199b",
273
- "id": "@body('Parse_JSON')?['d']?['ListItemAllFields']?['Id']",
274
- "item/CognitiveTags": "@join(outputs('Analyze_Image')?['body/description/tags'], ', ')"
275
- },
276
- "authentication": "@parameters('$authentication')"
277
- }
159
+ "number": {
160
+ "description": "Please enter a number",
161
+ "title": "Number",
162
+ "type": "number",
163
+ "x-ms-content-hint": "NUMBER",
164
+ "x-ms-dynamically-added": true
278
165
  }
279
166
  },
280
- "outputs": {}
167
+ "required": [
168
+ "text",
169
+ "boolean",
170
+ "number"
171
+ ]
281
172
  },
282
173
  "state": "Started",
283
- "connectionReferences": {
284
- "shared_cognitiveservicescomputervision": {
285
- "connectionName": "shared-cognitiveserv-34d89cec-971e-41b6-8c79-247c97eecec5",
286
- "source": "Embedded",
287
- "id": "/providers/Microsoft.PowerApps/apis/shared_cognitiveservicescomputervision",
288
- "displayName": "My Flow API",
289
- "iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1549/1.0.1549.2680/cognitiveservicescomputervision/icon.png",
290
- "brandColor": "#1267AE",
291
- "tier": "Standard"
292
- },
293
- "shared_sharepointonline": {
294
- "connectionName": "shared-sharepointonl-1c433d0f-a030-45eb-9795-8c2585f84781",
295
- "source": "Embedded",
296
- "id": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
297
- "displayName": "SharePoint",
298
- "iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1610-greyhound-localization-RelayFix/1.0.1610.3091/sharepointonline/icon.png",
299
- "brandColor": "#036C70",
174
+ "plan": "NotSpecified",
175
+ "connectionReferences": {},
176
+ "installedConnectionReferences": {
177
+ "shared_approvals": {
178
+ "connectionName": "shared-approvals-068230cf-43ef-455d-b823-ee6f989d0193",
179
+ "apiDefinition": {
180
+ "name": "shared_approvals",
181
+ "id": "/providers/Microsoft.PowerApps/apis/shared_approvals",
182
+ "type": "/providers/Microsoft.PowerApps/apis",
183
+ "properties": {
184
+ "displayName": "Approvals",
185
+ "iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1682/1.0.1682.3671/approvals/icon.png",
186
+ "purpose": "NotSpecified",
187
+ "connectionParameters": {},
188
+ "runtimeUrls": [
189
+ "https://europe-002.azure-apim.net/apim/approvals"
190
+ ],
191
+ "primaryRuntimeUrl": "https://europe-002.azure-apim.net/apim/approvals",
192
+ "metadata": {
193
+ "source": "marketplace",
194
+ "brandColor": "#6464F5",
195
+ "connectionLimits": {
196
+ "*": 1
197
+ },
198
+ "useNewApimVersion": "true",
199
+ "version": {
200
+ "previous": "releases/v1.0.1679\\1.0.1679.3643",
201
+ "current": "releases/v1.0.1682\\1.0.1682.3671"
202
+ }
203
+ },
204
+ "capabilities": [
205
+ "actions"
206
+ ],
207
+ "tier": "Standard",
208
+ "isCustomApi": false,
209
+ "description": "Enables approvals in workflows.",
210
+ "createdTime": "2018-09-16T08:09:23.9434372Z",
211
+ "changedTime": "2024-03-11T18:25:46.7755101Z",
212
+ "publisher": "Microsoft"
213
+ }
214
+ },
215
+ "source": "Invoker",
216
+ "id": "/providers/Microsoft.PowerApps/apis/shared_approvals",
217
+ "displayName": "Approvals",
218
+ "iconUri": "https://connectoricons-prod.azureedge.net/releases/v1.0.1682/1.0.1682.3671/approvals/icon.png",
219
+ "brandColor": "#6464F5",
300
220
  "tier": "Standard"
301
221
  }
302
222
  },
303
- "createdTime": "2022-06-20T15:13:24.5135728Z",
304
- "lastModifiedTime": "2022-11-01T14:15:31.5790933Z",
223
+ "createdTime": "2023-07-25T18:42:15.7693633Z",
224
+ "lastModifiedTime": "2024-03-08T10:24:12.0147046Z",
305
225
  "flowSuspensionReason": "None",
306
226
  "environment": {
307
- "name": "Default-00000000-0000-0000-0000-000000000000",
227
+ "name": "Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d",
308
228
  "type": "Microsoft.ProcessSimple/environments",
309
- "id": "/providers/Microsoft.ProcessSimple/environments/Default-00000000-0000-0000-0000-000000000000"
229
+ "id": "/providers/Microsoft.ProcessSimple/environments/Default-e1dd4023-a656-480a-8a0e-c1b1eec51e1d"
310
230
  },
311
231
  "definitionSummary": {
312
232
  "triggers": [
313
233
  {
314
- "type": "OpenApiConnection",
315
- "swaggerOperationId": "OnNewFile",
234
+ "type": "Request",
235
+ "kind": "Button",
316
236
  "metadata": {
317
- "%252fComputer%2bVision%2bDemo": "/My Flow Demo",
318
- "operationMetadataId": "2e0aa276-5536-4f67-a7b7-c1a37a91b8ca",
319
- "%252fShared%2bDocuments": "/Shared Documents"
237
+ "operationMetadataId": "04077d6a-9fdd-4c79-b742-09a8d5c022eb"
320
238
  }
321
239
  }
322
240
  ],
323
241
  "actions": [
324
242
  {
325
- "type": "OpenApiConnection",
326
- "swaggerOperationId": "AnalyzeImageV2",
327
- "metadata": {
328
- "operationMetadataId": "82b95160-9c96-4507-ad8c-c688ea95c2b1"
329
- }
330
- },
331
- {
332
- "type": "Compose",
333
- "metadata": {
334
- "operationMetadataId": "cbd09106-eb7a-4743-b553-8b11cd09a90c"
335
- }
336
- },
337
- {
338
- "type": "InitializeVariable",
339
- "metadata": {
340
- "operationMetadataId": "818f9da8-8ebf-4081-8d7b-8fe37470cd57"
341
- }
342
- },
343
- {
344
- "type": "OpenApiConnection",
345
- "swaggerOperationId": "HttpRequest",
346
- "metadata": {
347
- "operationMetadataId": "0e9b2bf7-c52e-4b28-8351-2850a3373186"
348
- }
349
- },
350
- {
351
- "type": "ParseJson",
352
- "metadata": {
353
- "operationMetadataId": "7d758c3f-f603-44d0-94b6-26cb08590fb3"
354
- }
355
- },
356
- {
357
- "type": "OpenApiConnection",
358
- "swaggerOperationId": "PatchFileItem",
359
- "metadata": {
360
- "operationMetadataId": "c1a801a8-1f96-498a-a356-82c9d0dd8188"
361
- }
243
+ "type": "InitializeVariable"
362
244
  }
363
245
  ]
364
246
  },
365
247
  "creator": {
366
- "tenantId": "00000000-0000-0000-0000-000000000000",
367
- "objectId": "e1251b10-1ba4-49e3-b35a-933e3f21772b",
368
- "userId": "e1251b10-1ba4-49e3-b35a-933e3f21772b",
248
+ "tenantId": "e1dd4023-a656-480a-8a0e-c1b1eec51e1d",
249
+ "objectId": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
250
+ "userId": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
369
251
  "userType": "ActiveDirectory"
370
252
  },
371
- "installationStatus": "NotApplicable",
253
+ "flowTriggerUri": "https://europe-002.azure-apim.net:443/apim/logicflows/A18E89D14C7541E49517E90AEDC079BE-5FA12B1209B98E3B/triggers/manual/run?api-version=2016-06-01",
254
+ "installationStatus": "Installed",
372
255
  "provisioningMethod": "FromDefinition",
373
256
  "flowFailureAlertSubscribed": true,
374
- "referencedResources": [
375
- {
376
- "service": "sharepoint",
377
- "resource": {
378
- "site": "https://contoso.sharepoint.com/sites/contosoHome"
379
- },
380
- "referencers": [
381
- {
382
- "referenceSourceType": "Triggers",
383
- "operationId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline/apiOperations/OnNewFile"
384
- },
385
- {
386
- "referenceSourceType": "Actions",
387
- "operationId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline/apiOperations/HttpRequest"
388
- }
389
- ]
257
+ "referencedResources": [],
258
+ "licenseData": {
259
+ "performanceProfile": {
260
+ "throttles": {
261
+ "mode": "High"
262
+ }
390
263
  },
391
- {
392
- "service": "sharepoint",
393
- "resource": {
394
- "site": "https://contoso.sharepoint.com/sites/contosoHome",
395
- "list": "13e0b5a3-f626-4272-a73b-a3e84978199b"
396
- },
397
- "referencers": [
398
- {
399
- "referenceSourceType": "Actions",
400
- "operationId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline/apiOperations/PatchFileItem"
401
- }
402
- ]
403
- }
404
- ],
405
- "isManaged": false
264
+ "flowLicenseName": "placeholder"
265
+ },
266
+ "isManaged": false,
267
+ "machineDescriptionData": {},
268
+ "flowOpenAiData": {
269
+ "isConsequential": false,
270
+ "isConsequentialFlagOverwritten": false
271
+ }
406
272
  },
407
- "displayName": "My Flow",
273
+ "displayName": "TEST",
408
274
  "description": "",
409
- "triggers": "OpenApiConnection",
410
- "actions": "OpenApiConnection-AnalyzeImageV2, Compose, InitializeVariable, OpenApiConnection-HttpRequest, ParseJson, OpenApiConnection-PatchFileItem"
275
+ "triggers": "Request-Button",
276
+ "actions": "InitializeVariable"
411
277
  }
412
278
  ```
413
279
 
@@ -67,6 +67,24 @@ Create a subscription using the maximum allowed expiration for Group resources
67
67
  m365 graph subscription add --resource groups --changeTypes "updated" --notificationUrl "https://webhook.azurewebsites.net/api/send/myNotifyClient"
68
68
  ```
69
69
 
70
+ Create a subscription for Event Hub location if you are using Key Vault
71
+
72
+ ```sh
73
+ m365 graph subscription add --resource user --changeTypes "created,updated,deleted" --notificationUrl "EventHub:https://azureKeyVaultName.vault.azure.net/secrets/secretName?tenantId=contoso.com"
74
+ ```
75
+
76
+ Create a subscription for Event Hub location if you are using role-based access control
77
+
78
+ ```sh
79
+ m365 graph subscription add --resource user --changeTypes "created,updated,deleted" --notificationUrl "EventHub:https://eventHubNamespace.servicebus.windows.net/eventhubname/eventHubName?tenantId=contoso.com"
80
+ ```
81
+
82
+ Create a subscription for Event Grid Partner Topic.
83
+
84
+ ```sh
85
+ m365 graph subscription add --resource user --changeTypes "created,updated,deleted" --notificationUrl "EventGrid:?azuresubscriptionid=8A8A8A8A-4B4B-4C4C-4D4D-12E12E12E12E&resourcegroup=resourceGroupName&partnertopic=partnerTopicName&location=partnerTopicAzureRegionName"
86
+ ```
87
+
70
88
  ## Response
71
89
 
72
90
  <Tabs>