Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-ClientTag] <String>] [-Region <
Connect-SPOService [-Url] <UrlCmdletPipeBind> [[-Credential] <CredentialCmdletPipeBind>] [[-ClientTag] <String>] [-Region <AADCrossTenantAuthenticationLocation>] [[-ModernAuth] <Boolean>] [[-UseSystemBrowser] <Boolean>]
```

### AuthenticationManagedIdentity

```
Connect-SPOService -Url <UrlCmdletPipeBind> [-ClientTag <String>] [-ManagedIdentity] [-ManagedIdentityType <ManagedIdentityType>] [-ManagedIdentityClientId <String>] [<CommonParameters>]
```

### AuthenticationUrl

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

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

### EXAMPLE 10

```powershell
Connect-SPOService -Url https://contoso-admin.sharepoint.com -ManagedIdentity
```

This example connects to the SharePoint admin center by using system assigned managed identity.

### EXAMPLE 11

```powershell
Connect-SPOService -url https://contoso-admin.sharepoint.com -ManagedIdentity -ManagedIdentityType UserAssigned -ManagedIdentityClientId 00000000-0000-0000-0000-000000000000
```

This example connects to the SharePoint admin center by using user assigned managed identity.

## PARAMETERS

### -AuthenticationUrl
Expand Down Expand Up @@ -284,6 +306,60 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -ManagedIdentity

> Applicable: SharePoint Online

Indicates that the connection uses a managed identity instead of user or certificate‑based authentication.

```yaml
Type: SwitchParameter
Parameter Sets: AuthenticationManagedIdentity
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ManagedIdentityClientId

> Applicable: SharePoint Online

Specifies the client ID of a user‑assigned managed identity to use for authentication.

```yaml
Type: String
Parameter Sets: AuthenticationManagedIdentity
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ManagedIdentityType

> Applicable: SharePoint Online

Specifies the type of managed identity to use when authenticating. If not specified, the default managed identity type is used.

```yaml
Type: ManagedIdentityType
Parameter Sets: AuthenticationManagedIdentity
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ModernAuth

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

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

[Disconnect-SPOService](./Disconnect-SPOService.md)
[Disconnect-SPOService](./Disconnect-SPOService.md)
Loading