Get-MsolPartnerContract

Gets a list of contracts for a partner.

Syntax

Get-MsolPartnerContract
   [-DomainName <String>]
   [-SearchKey <PartnerContractSearchKey>]
   [-MaxResults <Int32>]
   [-TenantId <Guid>]
   [<CommonParameters>]
Get-MsolPartnerContract
   [-DomainName <String>]
   [-SearchKey <PartnerContractSearchKey>]
   [-All]
   [-TenantId <Guid>]
   [<CommonParameters>]

Description

The Get-MsolPartnerContract cmdlet gets a list of contracts for a partner. Therefore, this cmdlet should only be used by partners.

Specify a domain to look up. This domain must be verified for the tenant. If the company exists and the partner has access to this company, this cmdlet returns the corresponding contract.

Examples

Example 1: Return contract for a tenant

PS C:\> Get-MsolPartnerContract -DomainName "contoso.com"

This command returns the contract for the tenant owning the domain consoso.com. To run this command, you must have privileges to act on behalf of contoso.com.

Parameters

-All

Indicates that this cmdlet returns all results that it finds. Do not specify this parameter and the MaxResults parameter.

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

-DomainName

Specifies the domain to search for. This must be the full name of a verified domain.

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

-MaxResults

Specifies the maximum number of results that this cmdlet returns.

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

-SearchKey

Specifies a search key.

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

-TenantId

Specifies the unique ID of the tenant on which to perform the operation. The default value is the tenant of the current user. This parameter applies only to partner users.

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

Outputs

Microsoft.Online.Administration.PartnerContract