Skip to content

Commit 004cabe

Browse files
Merge pull request #1140 from MicrosoftDocs/main
[AutoPublish] main to live - 03/27 10:45 PDT | 03/27 23:15 IST
2 parents 7eda629 + 323fe11 commit 004cabe

File tree

1 file changed

+77
-1
lines changed

1 file changed

+77
-1
lines changed

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Connect-SPOService.md

Lines changed: 77 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-ClientTag] <String>] [-Region <
3232
Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-Credential] <CredentialCmdletPipeBind>] [[-ClientTag] <String>] [-Region <AADCrossTenantAuthenticationLocation>] [[-ModernAuth] <Boolean>] [[-UseSystemBrowser] <Boolean>]
3333
```
3434

35+
### AuthenticationManagedIdentity
36+
37+
```
38+
Connect-SPOService -Url <UrlCmdletPipeBind> [-ClientTag <String>] [-ManagedIdentity] [-ManagedIdentityType <ManagedIdentityType>] [-ManagedIdentityClientId <String>] [<CommonParameters>]
39+
```
40+
3541
### AuthenticationUrl
3642

3743
```
@@ -126,6 +132,22 @@ Connect-SPOService -Url https://contoso-admin.sharepoint.com -ClientId 00000000-
126132

127133
This example connects to the SharePoint admin center by using an app identity and a certificate object.
128134

135+
### EXAMPLE 10
136+
137+
```powershell
138+
Connect-SPOService -Url https://contoso-admin.sharepoint.com -ManagedIdentity
139+
```
140+
141+
This example connects to the SharePoint admin center by using system assigned managed identity.
142+
143+
### EXAMPLE 11
144+
145+
```powershell
146+
Connect-SPOService -url https://contoso-admin.sharepoint.com -ManagedIdentity -ManagedIdentityType UserAssigned -ManagedIdentityClientId 00000000-0000-0000-0000-000000000000
147+
```
148+
149+
This example connects to the SharePoint admin center by using user assigned managed identity.
150+
129151
## PARAMETERS
130152

131153
### -AuthenticationUrl
@@ -284,6 +306,60 @@ Accept pipeline input: True (ByValue)
284306
Accept wildcard characters: False
285307
```
286308

309+
### -ManagedIdentity
310+
311+
> Applicable: SharePoint Online
312+
313+
Indicates that the connection uses a managed identity instead of user or certificate‑based authentication.
314+
315+
```yaml
316+
Type: SwitchParameter
317+
Parameter Sets: AuthenticationManagedIdentity
318+
Aliases:
319+
320+
Required: True
321+
Position: Named
322+
Default value: None
323+
Accept pipeline input: False
324+
Accept wildcard characters: False
325+
```
326+
327+
### -ManagedIdentityClientId
328+
329+
> Applicable: SharePoint Online
330+
331+
Specifies the client ID of a user‑assigned managed identity to use for authentication.
332+
333+
```yaml
334+
Type: String
335+
Parameter Sets: AuthenticationManagedIdentity
336+
Aliases:
337+
338+
Required: False
339+
Position: Named
340+
Default value: None
341+
Accept pipeline input: False
342+
Accept wildcard characters: False
343+
```
344+
345+
### -ManagedIdentityType
346+
347+
> Applicable: SharePoint Online
348+
349+
Specifies the type of managed identity to use when authenticating. If not specified, the default managed identity type is used.
350+
351+
```yaml
352+
Type: ManagedIdentityType
353+
Parameter Sets: AuthenticationManagedIdentity
354+
Aliases:
355+
356+
Required: False
357+
Position: Named
358+
Default value: None
359+
Accept pipeline input: False
360+
Accept wildcard characters: False
361+
```
362+
287363
### -ModernAuth
288364

289365
> Applicable: SharePoint Online
@@ -406,4 +482,4 @@ This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVar
406482

407483
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
408484

409-
[Disconnect-SPOService](./Disconnect-SPOService.md)
485+
[Disconnect-SPOService](./Disconnect-SPOService.md)

0 commit comments

Comments
 (0)