PowerShell module for managing Partner Center resources.
Перейти к файлу
Isaiah Williams 8fbf3346cf
Updating the dependency versions (#349)
2021-02-11 09:50:29 -06:00
.github Updating the dependency versions (#349) 2021-02-11 09:50:29 -06:00
docs Incorporating feedback and preparing for the next release (#294) 2020-04-04 10:59:17 -05:00
src Updating the dependency versions (#349) 2021-02-11 09:50:29 -06:00
test/PowerShell.UnitTests Updating the dependency versions (#349) 2021-02-11 09:50:29 -06:00
tools Authentication and performance update (#216) 2019-12-05 13:53:53 -06:00
.editorconfig Initial Commit 2018-08-10 21:14:24 +00:00
.gitignore Cross platform support (#60) 2019-01-30 06:50:52 -08:00
CHANGELOG.md Updating the dependency versions (#349) 2021-02-11 09:50:29 -06:00
CODE_OF_CONDUCT.md Core feature update (#245) 2019-12-27 10:24:51 -06:00
CONTRIBUTING.md Core feature update (#245) 2019-12-27 10:24:51 -06:00
LICENSE Initial Commit 2018-08-10 21:14:24 +00:00
Partner-Center-PowerShell.sln Authentication and performance update (#216) 2019-12-05 13:53:53 -06:00
README.md Updating the dependency versions (#349) 2021-02-11 09:50:29 -06:00
SECURITY.md Authentication and agreement update (#150) 2019-09-12 09:19:29 -05:00
azure-pipelines.yml Updating the build configuration (#321) 2020-07-09 07:48:11 -05:00
build.proj Build pipeline updates (#322) 2020-07-09 09:31:49 -05:00
repo.props Adding unit tests (#157) 2019-09-16 22:28:26 -05:00

README.md

Partner Center PowerShell

Build Status Deployment status

PartnerCenter GitHub issues GitHub pull-requests

Partner Center PowerShell is commonly used by partners to manage their Partner Center resources. It is an open source project maintained by the partner community. Since this module is maintained by the partner community, it is not officially supported by Microsoft. You can get help from the community or open an issue on GitHub.

Requirements

Partner Center PowerShell works with PowerShell 5.1 or higher on Windows, or PowerShell Core 6.x and later on all platforms. If you aren't sure if you have PowerShell, or are on macOS or Linux, install the latest version of PowerShell Core.

To check your PowerShell version, run the command:

$PSVersionTable.PSVersion

To run Partner Center PowerShell in PowerShell 5.1 on Windows:

  1. Update to Windows PowerShell 5.1 if needed. If you're on Windows 10, you already have PowerShell 5.1 installed.
  2. Install .NET Framework 4.7.2 or later.

There are no additional requirements for Partner Center PowerShell when using PowerShell Core.

Install the Partner Center PowerShell module

The recommended install method is to only install for the active user:

Install-Module -Name PartnerCenter -AllowClobber -Scope CurrentUser

If you want to install for all users on a system, this requires administrator privileges. From an elevated PowerShell session either run as administrator or with the sudo command on macOS or Linux:

Install-Module -Name PartnerCenter -AllowClobber -Scope AllUsers

By default, the PowerShell gallery isn't configured as a trusted repository for PowerShellGet. The first time you use the PSGallery you see the following prompt:

Untrusted repository

You are installing the modules from an untrusted repository. If you trust this repository, change
its InstallationPolicy value by running the Set-PSRepository cmdlet.

Are you sure you want to install the modules from 'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"):

Answer Yes or Yes to All to continue with the installation.

Discovering cmdlets

Use the Get-Command cmdlet to discover cmdlets within a specific module, or cmdlets that follow a specific search pattern:

# List all cmdlets in the PartnerCenter module
Get-Command -Module PartnerCenter

# List all cmdlets that contain Azure
Get-Command -Name '*Azure*'

# List all cmdlets that contain Azure in the PartnerCenter module
Get-Command -Module PartnerCenter -Name '*Azure*'

Cmdlet help and examples

To view the help content for a cmdlet, use the Get-Help cmdlet:

# View the basic help content for Get-PartnerCustomerSubscription
Get-Help -Name Get-PartnerCustomerSubscription

# View the examples for Get-PartnerCustomerSubscription
Get-Help -Name Get-PartnerCustomerSubscription -Examples

# View the full help content for Get-PartnerCustomerSubscription
Get-Help -Name Get-PartnerCustomerSubscription -Full

# View the help content for Get-PartnerCustomerSubscription on https://docs.microsoft.com
Get-Help -Name Get-PartnerCustomerSubscription -Online