@@ -12,6 +12,9 @@ schema: 2.0.0
12
12
## SYNOPSIS
13
13
Note: This cmdlet is currently in Beta.
14
14
15
+ The Connect-MicrosoftTeams cmdlet connects an authenticated account to use for Microsoft Teams cmdlet requests.
16
+ You can use this authenticated account only with Microsoft Teams cmdlets.
17
+
15
18
## SYNTAX
16
19
17
20
### UserCredential (Default)
@@ -38,13 +41,13 @@ Connect-MicrosoftTeams [-TenantId <String>] -AadAccessToken <String> [-MsAccessT
38
41
39
42
## PARAMETERS
40
43
41
- ### -TenantId
42
- @{Text=}
44
+ ### -AadAccessToken
45
+ Specifies a Azure Active Directory Graph access token.
43
46
44
47
``` yaml
45
48
Type : String
46
- Parameter Sets : UserCredential, AccessToken
47
- Aliases : Domain, TenantDomain
49
+ Parameter Sets : AccessToken
50
+ Aliases :
48
51
Applicable : Microsoft Teams
49
52
50
53
Required : False
@@ -54,26 +57,26 @@ Accept pipeline input: False
54
57
Accept wildcard characters : False
55
58
` ` `
56
59
60
+ ### -AccountId
61
+ Specifies the ID of an account. You must specify the UPN of the user when authenticating with a user access token.
62
+
57
63
` ` ` yaml
58
64
Type : String
59
- Parameter Sets : ServicePrincipalCertificate
60
- Aliases : Domain, TenantDomain
65
+ Parameter Sets : UserCredential
66
+ Aliases :
61
67
Applicable : Microsoft Teams
62
68
63
- Required : True
69
+ Required : False
64
70
Position : Named
65
71
Default value : None
66
72
Accept pipeline input : False
67
73
Accept wildcard characters : False
68
74
` ` `
69
75
70
- ### -Credential
71
- @{Text=}
72
-
73
76
` ` ` yaml
74
- Type : PSCredential
75
- Parameter Sets : UserCredential
76
- Aliases :
77
+ Type : String
78
+ Parameter Sets : AccessToken
79
+ Aliases :
77
80
Applicable : Microsoft Teams
78
81
79
82
Required : False
@@ -83,26 +86,29 @@ Accept pipeline input: False
83
86
Accept wildcard characters : False
84
87
` ` `
85
88
86
- ### -AccountId
87
- @{Text=}
89
+ ### -ApplicationId
90
+ Specifies the application ID of the service principal.
88
91
89
92
` ` ` yaml
90
93
Type : String
91
- Parameter Sets : UserCredential
92
- Aliases :
94
+ Parameter Sets : ServicePrincipalCertificate
95
+ Aliases :
93
96
Applicable : Microsoft Teams
94
97
95
- Required : False
98
+ Required : True
96
99
Position : Named
97
100
Default value : None
98
101
Accept pipeline input : False
99
102
Accept wildcard characters : False
100
103
` ` `
101
104
105
+ ### -CertificateThumbprint
106
+ Specifies the certificate thumbprint of a digital public key X.509 certificate of a user account that has permission to perform this action.
107
+
102
108
` ` ` yaml
103
109
Type : String
104
- Parameter Sets : AccessToken
105
- Aliases :
110
+ Parameter Sets : ServicePrincipalCertificate
111
+ Aliases :
106
112
Applicable : Microsoft Teams
107
113
108
114
Required : True
@@ -112,29 +118,32 @@ Accept pipeline input: False
112
118
Accept wildcard characters : False
113
119
` ` `
114
120
115
- ### -LogLevel
116
- @{Text=}
121
+ ### -Confirm
122
+ Prompts you for confirmation before running the cmdlet.
117
123
118
124
` ` ` yaml
119
- Type : LogLevel
125
+ Type : SwitchParameter
120
126
Parameter Sets : (All)
121
- Aliases :
127
+ Aliases : cf
122
128
Applicable : Microsoft Teams
123
129
124
130
Required : False
125
131
Position : Named
126
- Default value : None
132
+ Default value : False
127
133
Accept pipeline input : False
128
134
Accept wildcard characters : False
129
135
` ` `
130
136
131
- ### -LogFilePath
132
- @{Text=}
137
+ ### -Credential
138
+ Specifies a **PSCredential** object.
139
+ For more information about the **PSCredential** object, type Get-Help Get-Credential.
140
+
141
+ The **PSCredential** object provides the user ID and password for organizational ID credentials.
133
142
134
143
` ` ` yaml
135
- Type : String
136
- Parameter Sets : (All)
137
- Aliases :
144
+ Type : PSCredential
145
+ Parameter Sets : UserCredential
146
+ Aliases :
138
147
Applicable : Microsoft Teams
139
148
140
149
Required : False
@@ -144,13 +153,14 @@ Accept pipeline input: False
144
153
Accept wildcard characters : False
145
154
` ` `
146
155
147
- ### -WhatIf
148
- @{Text=}
156
+ ### -LogFilePath
157
+ The path where the log file for this PowerShell session is written to.
158
+ Provide a value here if you need to deviate from the default PowerShell log file location.
149
159
150
160
` ` ` yaml
151
- Type : SwitchParameter
161
+ Type : String
152
162
Parameter Sets : (All)
153
- Aliases : wi
163
+ Aliases :
154
164
Applicable : Microsoft Teams
155
165
156
166
Required : False
@@ -160,13 +170,21 @@ Accept pipeline input: False
160
170
Accept wildcard characters : False
161
171
` ` `
162
172
163
- ### -Confirm
164
- @{Text=}
173
+ ### -LogLevel
174
+ Specifies the log level.
175
+ The acceptable values for this parameter are:
176
+
177
+ - Info
178
+ - Error
179
+ - Warning
180
+ - None
181
+
182
+ The default value is Info.
165
183
166
184
` ` ` yaml
167
- Type : SwitchParameter
185
+ Type : LogLevel
168
186
Parameter Sets : (All)
169
- Aliases : cf
187
+ Aliases :
170
188
Applicable : Microsoft Teams
171
189
172
190
Required : False
@@ -176,45 +194,46 @@ Accept pipeline input: False
176
194
Accept wildcard characters : False
177
195
` ` `
178
196
179
- ### -CertificateThumbprint
180
- @{Text=}
197
+ ### -MsAccessToken
198
+ Specifies a Microsoft Graph access token.
181
199
182
200
` ` ` yaml
183
201
Type : String
184
- Parameter Sets : ServicePrincipalCertificate
185
- Aliases :
202
+ Parameter Sets : AccessToken
203
+ Aliases :
186
204
Applicable : Microsoft Teams
187
205
188
- Required : True
206
+ Required : False
189
207
Position : Named
190
208
Default value : None
191
209
Accept pipeline input : False
192
210
Accept wildcard characters : False
193
211
` ` `
194
212
195
- ### -ApplicationId
196
- @{Text=}
213
+ ### -TenantId
214
+ Specifies the ID of a tenant.
215
+
216
+ If you do not specify this parameter, the account is authenticated with the home tenant.
217
+
218
+ You must specify the *TenantId* parameter to authenticate as a service principal or when using Microsoft account.
197
219
198
220
` ` ` yaml
199
221
Type : String
200
- Parameter Sets : ServicePrincipalCertificate
201
- Aliases :
222
+ Parameter Sets : UserCredential, AccessToken
223
+ Aliases : Domain, TenantDomain
202
224
Applicable : Microsoft Teams
203
225
204
- Required : True
226
+ Required : False
205
227
Position : Named
206
228
Default value : None
207
229
Accept pipeline input : False
208
230
Accept wildcard characters : False
209
231
` ` `
210
232
211
- ### -AadAccessToken
212
- @{Text=}
213
-
214
233
` ` ` yaml
215
234
Type : String
216
- Parameter Sets : AccessToken
217
- Aliases :
235
+ Parameter Sets : ServicePrincipalCertificate
236
+ Aliases : Domain, TenantDomain
218
237
Applicable : Microsoft Teams
219
238
220
239
Required : True
@@ -224,18 +243,20 @@ Accept pipeline input: False
224
243
Accept wildcard characters : False
225
244
` ` `
226
245
227
- ### -MsAccessToken
228
- @{Text=}
246
+ ### -WhatIf
247
+ Shows what would happen if the cmdlet runs.
248
+ The cmdlet is not run.
249
+
229
250
230
251
` ` ` yaml
231
- Type : String
232
- Parameter Sets : AccessToken
233
- Aliases :
252
+ Type : SwitchParameter
253
+ Parameter Sets : (All)
254
+ Aliases : wi
234
255
Applicable : Microsoft Teams
235
256
236
257
Required : False
237
258
Position : Named
238
- Default value : None
259
+ Default value : False
239
260
Accept pipeline input : False
240
261
Accept wildcard characters : False
241
262
` ` `
0 commit comments