dd4a4e542a | ||
---|---|---|
.github | ||
.vscode | ||
CmdletHelp | ||
PartnerCenterModule | ||
tests | ||
.gitignore | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
README.md
Important Project Status Update
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.
Legacy PartnerCenterPowerShell Information
Introduction
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.
How to install
This module is published via PowerShell Gallery and can be installed using Install-Module.
Install-Module -Name PartnerCenterModule
Import Classes
To Import Classes so that you can use functions like New-PCOrder.
using module PartnerCenterModule
Getting Started
Step 1
Make sure that Partner Center App Management is configured to enable access to the Partner Center API.
Step 2
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.**
Set App+User authentication
$cred = Get-Credential '<username@domain>'
Add-PCAuthentication -CspAppId '<Native app Id GUID>' -CspDomain '<Csp partner domain>' -Credential $cred
or
Set app authentication
$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
Ready
After completing these steps you are ready to start using the cmdlets for the scenarios listed below. (ex: create customers, create subscriptions, etc)
Partner Center API scenario -> PowerShell module matrix
Telemetry collection
Telemetry has been removed starting in the 0.9.0.21 release.