Partner Center Powershell Module is the powershell implementation of the Partner Center API available scenarios. You can manage your customers, offers, subscriptions, usage, etc. Objective is to keep this module as close as possible to the Partner Center SDK functionalities.
This module is published via PowerShell Gallery so it can be installed using Install-Module.
Install-Module -Name PartnerCenterModule
Make sure your App Management is already configured to enable access to 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. This will set your CSP account authentication context.
Set user authentication
$credentials = Get-Credential '<username@domain>'
Add-PCAuthentication -cspappID '<native app id GUID>' -cspDomain '<csp partner domain>' -credential $credentials
or
Set app authentication
$clientSecret = '<key code secret>'
$clientSecretSecure = $clientSecret | ConvertTo-SecureString -AsPlainText -Force
Add-PCAuthentication -cspappID '<native app id GUID>' -cspDomain '<csp partner domain>' -cspClientSecret $clientSecretSecure
After this first steps you are ready to start using bellow cmdlet scenarios. (ex: create customers, create subscriptions, etc)
To help us to better understand the module utilization and better prioritize development efforts we enabled telemetry collection by default.
What we collect?
- The CSP account domain
- The cmdlet name executed (only the name, no data is collected)
- The module version
If you prefer not to send this data use the following command to disable the telemetry collection:
Set-PCModuleTelemetry -enabled $false