Skip to main content
Connect Microsoft Online
Updated over a week ago

Command

Connect-MicrosoftOnline

Description

The command to connect to a Microsoft Online account to do a copy.

Examples

Connect using the browser

Connect-MicrosoftOnline

Note: When you run this command, you are prompted to log in to your Microsoft account using a web browser.

Connect using existing connection

Connect-MicrosoftOnline -TenantId 44a99b43-9521-470c-ad78-9375e86fdfa6 -UserId b9e3b106-2a8a-45cd-a761-48b46ec8d2d2

Syntax

Connect-MicrosoftOnline
Connect-MicrosoftOnline
-TenantId <String>
-UserId <String>

Parameters

-TenantId <String>

Specifies the tenant ID used to connect

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

Specific

Aliases

None

-UserId <String>

Specifies the user ID used to connect

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

Specific

Aliases

None

Did this answer your question?