This project has been replaced with a new project Partner-Center-PowerShell.
The new module, Partner-Center-PowerShell is developed using the Partner Center .NET SDK, which greatly simplifies the development and maintenance of the module. If you are writing new scripts or updating existing ones, please start using the new module.
IMPORTANT: PartnerCenterPowerShellModule (this project) will receive no enhancements after September 3, 2018. Start using Partner-Center-PowerShell now.
Partner Center Powershell Module is the PowerShell implementation of the Partner Center API available scenarios. You can manage your customers, offers, subscriptions, usage, etc. The objective is to keep this module close to the Partner Center SDK functionality.
This module is published via PowerShell Gallery and can be installed using Install-Module.
Install-Module -Name PartnerCenterModule
To Import Classes so that you can use functions like New-PCOrder.
using module PartnerCenterModule
Make sure that Partner Center App Management is configured to enable access to the Partner Center API.
Just like with AzureRM powershell module, the first step to start using it is to provide authentication. In Partner Center PowerShell Module you use Add-PCAuthentication cmdlet to set your CSP account authentication context.
** Some cmdlets require App+User authentication to function correctly.**
$cred = Get-Credential '<username@domain>'
Add-PCAuthentication -CspAppId '<Native app Id GUID>' -CspDomain '<Csp partner domain>' -Credential $cred
or
$clientSecret = '<key code secret>'
$clientSecretSecure = $clientSecret | ConvertTo-SecureString -AsPlainText -Force
Add-PCAuthentication -CspAppId '<Web app Id GUID>' -CspDomain '<Csp partner domain>' -CspClientSecret $clientSecretSecure
You can obtain the Web App ID and the Client Secret from either Partner Center UI or Azure Active Directory
After completing these steps you are ready to start using the cmdlets for the scenarios listed below. (ex: create customers, create subscriptions, etc)
Telemetry has been removed starting in the 0.9.0.21 release.