This is an archive version of the document. To get the most up-to-date information, see the current version.

New-VBOOffice365ConnectionSettings

Short Description

Defines connection settings to access Microsoft 365 organizations.

Syntax

This cmdlet provides parameter sets that allow you to:

  • Define connection settings to access Microsoft 365 organizations using modern authentication with legacy protocols allowed by specifying an application secret.

New-VBOOffice365ConnectionSettings -AppCredential <PSCredential> -ApplicationId <Guid> -ApplicationSecret <SecureString> [-GrantRolesAndPermissions]  [<CommonParameters>]

  • Define connection settings to access Microsoft 365 organizations using modern authentication with legacy protocols allowed by specifying an application certificate.

New-VBOOffice365ConnectionSettings -AppCredential <PSCredential> -ApplicationId <Guid> -ApplicationCertificatePath <String> [-GrantRolesAndPermissions] -ApplicationCertificatePassword <SecureString>  [<CommonParameters>]

Obsolete Cmdlet Set

The following cmdlet set is obsolete. It still works in Veeam Backup for Microsoft 365 version 7.0 but may not be supported in the next versions of Veeam Backup for Microsoft 365.

New-VBOOffice365ConnectionSettings -Credential <PSCredential> [-GrantRolesAndPermissions] [-VeeamAADApplicationUsed]  [<CommonParameters>]

Detailed Description

This cmdlet creates the VBOOffice365LegacyConnectionSettings object. This object defines connection settings to access Microsoft 365 organizations. You can apply these settings to add Microsoft 365 organizations to the Veeam Backup for Microsoft 365 infrastructure.

Run the Add-VBOOrganization cmdlet to add Microsoft organizations to the Veeam Backup for Microsoft 365 infrastructure.

New-VBOOffice365ConnectionSettings Important

This type of connection settings utilizes legacy authentication protocols.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Accept Wildcard Characters

AppCredential

For the modern authentication type.

Specifies credentials. The cmdlet will use these credentials to connect to a Microsoft 365 organization.

PSCredential

True

Named

False

False

ApplicationCertificatePassword

For the modern authentication type.

Specifies the certificate password. The cmdlet will use these credentials to connect to a Microsoft 365 organization.

SecureString

False

Named

False

False

ApplicationCertificatePath

For the modern authentication type.

Specifies a path to the application certificate. The cmdlet will use this path to get the application certificate and to connect to a Microsoft 365 organization.

String

True

Named

False

False

ApplicationId

For the modern authentication type.

Specifies an application ID. The cmdlet will use an application ID to connect to a Microsoft 365 organization.

Guid

True

Named

False

False

ApplicationSecret

For the modern authentication type.

Specifies an application secret. The cmdlet will use an application secret to connect to a Microsoft 365 organization.

SecureString

True

Named

False

False

Credential

Note: This parameter is obsolete.

Specifies credentials. The cmdlet will use these credentials to connect to a Microsoft 365 organization.

PSCredential

True

Named

False

False

GrantRolesAndPermissions

Defines that the cmdlet will grant required permissions and assign appropriate roles to the account.

SwitchParameter

False

Named

False

False

VeeamAADApplicationUsed

Defines that the cmdlet will use the Veeam application to connect to Microsoft Graph.

Note: You must set this parameter to True for the following Microsoft Azure regions:

  • China
  • Germany

Default: False

SwitchParameter

False

Named

False

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VBOOffice365LegacyConnectionSettings object that contains connection settings to access Microsoft 365 organizations.

Examples

New-VBOOffice365ConnectionSettingsExample 1. Defining Connection Settings with Basic Authentication

New-VBOOffice365ConnectionSettingsExample 2. Defining Connection Settings with Modern Authentication Using Application Secret

New-VBOOffice365ConnectionSettingsExample 3. Defining Connection Settings with Modern Authentication Using Application Certificate

Related Commands