PowerShell module for managing Partner Center resources.
Перейти к файлу
Isaiah Williams 47e0999778
Updating the MSAL extension (#283)
2020-03-02 08:37:17 -06:00
.github User feature update (#195) 2019-11-22 12:20:23 -06:00
docs Updating the change log and version (#267) 2020-01-29 13:58:19 -08:00
src Updating the MSAL extension (#283) 2020-03-02 08:37:17 -06:00
test/PowerShell.UnitTests Device batch update 2020-02-13 09:20:55 -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 MSAL extension (#283) 2020-03-02 08:37:17 -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 Build configuration update 2019-10-19 12:54:51 -05:00
SECURITY.md Authentication and agreement update (#150) 2019-09-12 09:19:29 -05:00
azure-pipelines.yml Updating the MSAL extension (#283) 2020-03-02 08:37:17 -06:00
build.proj Authentication feature update (#238) 2019-12-23 19:51:13 -06: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