Skip to content

Latest commit

 

History

History
204 lines (158 loc) · 4.62 KB

File metadata and controls

204 lines (158 loc) · 4.62 KB
content_git_url external help file Module Name online version original_content_git_url schema
Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
PartnerCenter
2.0.0

Connect-PartnerCenter

SYNOPSIS

Connects to Partner Center with an authenticated account for use with cmdlet requests.

SYNTAX

User (Default)

Connect-PartnerCenter -ApplicationId <String> [-EnforceMFA] [-Environment <EnvironmentName>]
 [-TenantId <String>] [<CommonParameters>]

AccessToken

Connect-PartnerCenter -AccessToken <String> -ApplicationId <String> [-Credential <PSCredential>] [-EnforceMFA]
 [-Environment <EnvironmentName>] [-TenantId <String>] [<CommonParameters>]

ServicePrincipal

Connect-PartnerCenter [-ApplicationId <String>] -Credential <PSCredential> [-EnforceMFA]
 [-Environment <EnvironmentName>] -TenantId <String> [<CommonParameters>]

DESCRIPTION

The Connect-PartnerCenter cmdlet connects to Partner Center with an authenticated account for use with cmdlet requests

EXAMPLES

Example 1

PS C:\> Connect-PartnerCenter -ApplicationId '<AppId>'

Connects to Partner Center using the specified application identifier during authentication.

Example 2

PS C:\> $credential = Get-Credential
PS C:\> Connect-PartnerCenter -ApplicationId '<AppId>' -Credential $credential -TenantId '<TenantId>'

Connects to Partner Center using app only authentication. Not all commands support this type of authentication.

Example 3

PS C:\> Connect-PartnerCenter -AccessToken '<AccessToken>' -ApplicationId '<AppId>' -TenantId '<TenantId>'

Connects to Partner Center using an access token.

PARAMETERS

-AccessToken

The access token for Partner Center.

Type: String
Parameter Sets: AccessToken
Aliases:

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

-ApplicationId

The identifier of the Azure AD application.

Type: String
Parameter Sets: User, AccessToken
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: ServicePrincipal
Aliases:

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

-Credential

Credentials that represents the service principal.

Type: PSCredential
Parameter Sets: AccessToken
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: PSCredential
Parameter Sets: ServicePrincipal
Aliases:

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

-EnforceMFA

A flag indicating whether or not multi-factor authentication is enforced. The is only configurable while the Partner Center API is not requiring multi-factor authentication.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Environment

The environment use for authentication.

Type: EnvironmentName
Parameter Sets: (All)
Aliases: EnvironmentName
Accepted values: GlobalCloud, ChinaCloud, GermanCloud, PPE, USGovernment

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

-TenantId

The identifier of the Azure AD tenant.

Type: String
Parameter Sets: User, AccessToken
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: ServicePrincipal
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

Microsoft.Store.PartnerCenter.PowerShell.Authentication.PartnerContext

NOTES

RELATED LINKS