* initial commit for the preview version

* Minor updates to the documentation.

* Added missing documentation
This commit is contained in:
Isaiah Williams 2019-01-30 08:50:52 -06:00 коммит произвёл Joel Stidley
Родитель 0297e0bac5
Коммит e8ae392b7a
794 изменённых файлов: 27659 добавлений и 8665 удалений

21
.gitignore поставляемый
Просмотреть файл

@ -4,6 +4,7 @@
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files # User-specific files
*.rsuser
*.suo *.suo
*.user *.user
*.userosscache *.userosscache
@ -19,6 +20,8 @@
[Rr]eleases/ [Rr]eleases/
x64/ x64/
x86/ x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/ bld/
[Bb]in/ [Bb]in/
[Oo]bj/ [Oo]bj/
@ -52,7 +55,6 @@ BenchmarkDotNet.Artifacts/
project.lock.json project.lock.json
project.fragment.lock.json project.fragment.lock.json
artifacts/ artifacts/
**/Properties/launchSettings.json
# StyleCop # StyleCop
StyleCopReport.xml StyleCopReport.xml
@ -60,7 +62,7 @@ StyleCopReport.xml
# Files built by Visual Studio # Files built by Visual Studio
*_i.c *_i.c
*_p.c *_p.c
*_i.h *_h.h
*.ilk *.ilk
*.meta *.meta
*.obj *.obj
@ -77,6 +79,7 @@ StyleCopReport.xml
*.tlh *.tlh
*.tmp *.tmp
*.tmp_proj *.tmp_proj
*_wpftmp.csproj
*.log *.log
*.vspscc *.vspscc
*.vssscc *.vssscc
@ -208,7 +211,7 @@ _pkginfo.txt
# files ending in .cache can be ignored # files ending in .cache can be ignored
*.[Cc]ache *.[Cc]ache
# but keep track of directories ending in .cache # but keep track of directories ending in .cache
!*.[Cc]ache/ !?*.[Cc]ache/
# Others # Others
ClientBin/ ClientBin/
@ -228,6 +231,8 @@ orleans.codegen.cs
# Since there are multiple workflows, uncomment next line to ignore bower_components # Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/ #bower_components/
# ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true
**/wwwroot/lib/
# RIA/Silverlight projects # RIA/Silverlight projects
Generated_Code/ Generated_Code/
@ -291,8 +296,8 @@ paket-files/
.idea/ .idea/
*.sln.iml *.sln.iml
# CodeRush # CodeRush personal settings
.cr/ .cr/personal
# Python Tools for Visual Studio (PTVS) # Python Tools for Visual Studio (PTVS)
__pycache__/ __pycache__/
@ -328,3 +333,9 @@ ASALocalRun/
# MFractors (Xamarin productivity tool) working folder # MFractors (Xamarin productivity tool) working folder
.mfractor/ .mfractor/
# Local History for Visual Studio
.localhistory/
# BeatPulse healthcheck temp database
healthchecksdb

Просмотреть файл

@ -1,25 +1,29 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15 # Visual Studio Version 16
VisualStudioVersion = 15.0.27130.2036 VisualStudioVersion = 16.0.28516.95
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AD52517F-3B47-437C-B374-8302533DECBC}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{D88E76D6-773B-4691-B6AB-3323E46D486F}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{26039E3A-114C-4B28-87B9-25755134FDD0}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PartnerCenter", "src\PartnerCenter\PartnerCenter.csproj", "{8E7758EA-3D8D-4840-8716-0E9C012F5BCB}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerShell", "src\PowerShell\PowerShell.csproj", "{0DAC3162-7D38-40EC-A412-496ECAFDDC8B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{5C9806B5-F5AE-4D2B-A612-1995BEBDBD84}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
.gitignore = .gitignore
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
CONTRIBUTING.md = CONTRIBUTING.md CONTRIBUTING.md = CONTRIBUTING.md
LICENSE = LICENSE LICENSE = LICENSE
README.md = README.md README.md = README.md
EndProjectSection EndProjectSection
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{91C9A85A-2792-4EA1-9815-6DEEEFC2C932}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{68F07DE0-044F-43AF-8057-EB9840DA9A8C}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerShell", "src\PowerShell\PowerShell.csproj", "{6714CA29-04A6-4D4E-919C-28AF294E6BA6}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartnerCenter.TestFramework", "src\PartnerCenter.TestFramework\PartnerCenter.TestFramework.csproj", "{EE69209F-06B2-4836-B8DF-123BBAC2523D}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerShell.Tests", "test\PowerShell.Tests\PowerShell.Tests.csproj", "{3407AFBC-72DA-491C-816F-2176D2E06DB4}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PartnerCenter.Tests", "test\PartnerCenter.Tests\PartnerCenter.Tests.csproj", "{10BD6A73-9CA8-419D-BE1F-75C03B7BFAB6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerShell.Tests", "test\PowerShell.Tests\PowerShell.Tests.csproj", "{E6AE0C07-3E0F-4012-943C-B635A4908472}"
EndProject EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -27,23 +31,38 @@ Global
Release|Any CPU = Release|Any CPU Release|Any CPU = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Debug|Any CPU.Build.0 = Debug|Any CPU {8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Release|Any CPU.ActiveCfg = Release|Any CPU {8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Release|Any CPU.Build.0 = Release|Any CPU {8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Release|Any CPU.Build.0 = Release|Any CPU
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0DAC3162-7D38-40EC-A412-496ECAFDDC8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Debug|Any CPU.Build.0 = Debug|Any CPU {0DAC3162-7D38-40EC-A412-496ECAFDDC8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Release|Any CPU.ActiveCfg = Release|Any CPU {0DAC3162-7D38-40EC-A412-496ECAFDDC8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Release|Any CPU.Build.0 = Release|Any CPU {0DAC3162-7D38-40EC-A412-496ECAFDDC8B}.Release|Any CPU.Build.0 = Release|Any CPU
{EE69209F-06B2-4836-B8DF-123BBAC2523D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EE69209F-06B2-4836-B8DF-123BBAC2523D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE69209F-06B2-4836-B8DF-123BBAC2523D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE69209F-06B2-4836-B8DF-123BBAC2523D}.Release|Any CPU.Build.0 = Release|Any CPU
{10BD6A73-9CA8-419D-BE1F-75C03B7BFAB6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{10BD6A73-9CA8-419D-BE1F-75C03B7BFAB6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{10BD6A73-9CA8-419D-BE1F-75C03B7BFAB6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{10BD6A73-9CA8-419D-BE1F-75C03B7BFAB6}.Release|Any CPU.Build.0 = Release|Any CPU
{E6AE0C07-3E0F-4012-943C-B635A4908472}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E6AE0C07-3E0F-4012-943C-B635A4908472}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E6AE0C07-3E0F-4012-943C-B635A4908472}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E6AE0C07-3E0F-4012-943C-B635A4908472}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(NestedProjects) = preSolution GlobalSection(NestedProjects) = preSolution
{6714CA29-04A6-4D4E-919C-28AF294E6BA6} = {AD52517F-3B47-437C-B374-8302533DECBC} {8E7758EA-3D8D-4840-8716-0E9C012F5BCB} = {D88E76D6-773B-4691-B6AB-3323E46D486F}
{3407AFBC-72DA-491C-816F-2176D2E06DB4} = {91C9A85A-2792-4EA1-9815-6DEEEFC2C932} {0DAC3162-7D38-40EC-A412-496ECAFDDC8B} = {D88E76D6-773B-4691-B6AB-3323E46D486F}
{EE69209F-06B2-4836-B8DF-123BBAC2523D} = {D88E76D6-773B-4691-B6AB-3323E46D486F}
{10BD6A73-9CA8-419D-BE1F-75C03B7BFAB6} = {68F07DE0-044F-43AF-8057-EB9840DA9A8C}
{E6AE0C07-3E0F-4012-943C-B635A4908472} = {68F07DE0-044F-43AF-8057-EB9840DA9A8C}
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {598D99A1-EECC-4613-AA82-FA1E915D0195} SolutionGuid = {BE398BA5-A85F-43C4-9317-C08C61C2DB8B}
EndGlobalSection EndGlobalSection
EndGlobal EndGlobal

Просмотреть файл

@ -1,22 +0,0 @@
# Microsoft Partner Center PowerShell Developer Guide
The Microsoft Partner Center PowerShell Developer Guide was created to help with the development and testing of Partner Center PowerShell cmdlets. This guide contains information on how to set up your environment, implement cmdlets, develop tests, and more.
## Table of Contents
- [Prerequisites](#prerequisites)
- [Environment Setup](#environment-setup)
- [Documentation Basics](#documentation-basics)
- [Building the Environment](#building-the-environment)
- [Running Tests](#running-tests)
## Prerequisites
The following prerequisites should be completed before contributing to the source code the Partner Center PowerShell repository:
- Install [Visual Studio 2017](https://www.visualstudio.com/downloads/)
- Install the latest version of [Git](https://git-scm.com/downloads)
- Install the [`platyPS` module](https://github.com/Azure/azure-powershell/blob/preview/documentation/development-docs/help-generation.md#installing-platyps)
- Set the PowerShell [execution policy](https://technet.microsoft.com/en-us/library/ee176961.aspx) to **Unrestricted** for the following versions of PowerShell:
- `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`
- `C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe`

Просмотреть файл

@ -1,43 +0,0 @@
# Microsoft Partner Center PowerShell Documentation Guide
The Microsoft Partner Center PowerShell Documentation Guide was created to help with the documentation of Partner Center PowerShell cmdlets. This guide contains information on how to set up your environment, generate the help files, and more.
## Table of Contents
- [Prerequisites](#prerequisites)
- [Environment Setup](#environment-setup)
## Prerequisites
- Install [Visual Studio Code](https://code.visualstudio.com/)
- Install the latest version of [Git](https://git-scm.com/downloads)
- Install the [Docs Authoring Pack](https://marketplace.visualstudio.com/items?itemName=docsmsft.docs-authoring-pack) extension for Visual Studio Code
- Install the [VS Live Share](https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare) extension for Visual Studio Code
- Install the [`platyPS` module](https://github.com/Azure/azure-powershell/blob/preview/documentation/development-docs/help-generation.md#installing-platyps)
- Set the PowerShell [execution policy](https://technet.microsoft.com/en-us/library/ee176961.aspx) to **Unrestricted** for the following versions of PowerShell:
- `C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe`
- `C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe`
## Environment Setup
Perform the following tasks to clone the Partner Center PowerShell repository, switch to the dev branch, and then create a new branch.
1. Open Visual Studio Code
2. Open the command palette by pressing Ctrl+Shift+P
3. Run **Git: Clone** to clone the repository. When prompted for the repository URL specify <https://partnercenter.visualstudio.com/powershell/_git/Partner-Center-PowerShell>
4. When prompted select the folder where you would like the repository to stored locally
Perform the following task to checkout the dev branch.
1. Open the command palette by pressing Ctrl+Shift+P
2. Run **Git: Checkout too..** to checkout the *dev* branch
3. When prompted click the *dev* branch. This will checkout the branch
Create a new branch
1. Open the command palette by pressing Ctrl+Shift+P
2. Run **Git: Create Branch...** to create a new branch
3. When prompted specify an appropriate name for the new branch
4. Press enter to complete the creation of the branch
It is recommended that the name of your branch reflect the work you are performing.

Просмотреть файл

@ -14,7 +14,7 @@ Adds a new line item to the specified cart.
## SYNTAX ## SYNTAX
``` ```powershell
Add-PartnerCustomerCartLineItem -CartId <String> -CustomerId <String> -LineItem <PSCartLineItem> [-WhatIf] Add-PartnerCustomerCartLineItem -CartId <String> -CustomerId <String> -LineItem <PSCartLineItem> [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Adds a customer user to a specified role.
## SYNTAX ## SYNTAX
``` ```powershell
Add-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>] Add-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -10,24 +10,23 @@ schema: 2.0.0
# Connect-PartnerCenter # Connect-PartnerCenter
## SYNOPSIS ## SYNOPSIS
Connect to Partner Center with an authenticated account for use with cmdlet requests. Connects to Partner Center with an authenticated account for use with cmdlet requests.
## SYNTAX ## SYNTAX
### UserCredential (Default) ### UserCredential (Default)
``` ```powershell
Connect-PartnerCenter -ApplicationId <String> [-Credential <PSCredential>] [-Environment <EnvironmentName>] Connect-PartnerCenter -ApplicationId <String> [-Environment <EnvironmentName>] [<CommonParameters>]
[<CommonParameters>]
``` ```
### AccessToken ### AccessToken
``` ```powershell
Connect-PartnerCenter -AccessToken <String> -AccessTokenExpiresOn <DateTimeOffset> -ApplicationId <String> Connect-PartnerCenter -AccessToken <String> -ApplicationId <String> [-Environment <EnvironmentName>]
[-Environment <EnvironmentName>] -TenantId <String> [<CommonParameters>] -TenantId <String> [<CommonParameters>]
``` ```
### ServicePrincipal ### ServicePrincipal
``` ```powershell
Connect-PartnerCenter -Credential <PSCredential> [-Environment <EnvironmentName>] [-ServicePrincipal] Connect-PartnerCenter -Credential <PSCredential> [-Environment <EnvironmentName>] [-ServicePrincipal]
-TenantId <String> [<CommonParameters>] -TenantId <String> [<CommonParameters>]
``` ```
@ -80,21 +79,6 @@ Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
``` ```
### -AccessTokenExpiresOn
The date and time when the token for Partner Center expires.
```yaml
Type: DateTimeOffset
Parameter Sets: AccessToken
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ApplicationId ### -ApplicationId
The application identifier used to access the Partner Center API. The application identifier used to access the Partner Center API.
@ -113,18 +97,6 @@ Accept wildcard characters: False
### -Credential ### -Credential
User credentials to be used when connecting to Partner Center. User credentials to be used when connecting to Partner Center.
```yaml
Type: PSCredential
Parameter Sets: UserCredential
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
```yaml ```yaml
Type: PSCredential Type: PSCredential
Parameter Sets: ServicePrincipal Parameter Sets: ServicePrincipal

Просмотреть файл

@ -14,7 +14,7 @@ Disconnects the current session from Partner Center.
## SYNTAX ## SYNTAX
``` ```powershell
Disconnect-PartnerCenter [-WhatIf] [-Confirm] [<CommonParameters>] Disconnect-PartnerCenter [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,8 +14,8 @@ Gets the agreement metadata for the Microsoft Cloud Agreement.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerAgreementDetail [<CommonParameters>] Get-PartnerAgreementDetail
``` ```
## DESCRIPTION ## DESCRIPTION
@ -32,9 +32,6 @@ Gets the agreement metadata for the Microsoft Cloud Agreement.
## PARAMETERS ## PARAMETERS
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS ## INPUTS
### None ### None

Просмотреть файл

@ -14,7 +14,7 @@ Gets audit records from Partner Center.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerAuditRecord [-EndDate <DateTime>] [-StartDate <DateTime>] [<CommonParameters>] Get-PartnerAuditRecord [-EndDate <DateTime>] [-StartDate <DateTime>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets real-time prices for an Azure offer.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerAzureRateCard [-Currency <String>] [-Region <String>] [-SharedServices] [<CommonParameters>] Get-PartnerAzureRateCard [-Currency <String>] [-Region <String>] [-SharedServices] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the partner's billing profile.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerBillingProfile [<CommonParameters>] Get-PartnerBillingProfile [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the rules for validating an address for a specific country.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCountryValidation -CountryCode <String> [<CommonParameters>] Get-PartnerCountryValidation -CountryCode <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,12 +15,12 @@ Gets a specific customer or a list of available customers.
## SYNTAX ## SYNTAX
### ById (Default) ### ById (Default)
``` ```powershell
Get-PartnerCustomer [[-CustomerId] <String>] [<CommonParameters>] Get-PartnerCustomer [[-CustomerId] <String>] [<CommonParameters>]
``` ```
### ByDomain ### ByDomain
``` ```powershell
Get-PartnerCustomer -Domain <String> [<CommonParameters>] Get-PartnerCustomer -Domain <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets confirmation of customer acceptance provided previously.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerAgreement -CustomerId <String> [<CommonParameters>] Get-PartnerCustomerAgreement -CustomerId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the customer's billing profile.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerBillingProfile -CustomerId <String> [<CommonParameters>] Get-PartnerCustomerBillingProfile -CustomerId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a specific cart for the specified partner.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerCart -CartId <String> -CustomerId <String> [<CommonParameters>] Get-PartnerCustomerCart -CartId <String> -CustomerId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the customer's company profile.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerCompanyProfile -CustomerId <String> [<CommonParameters>] Get-PartnerCustomerCompanyProfile -CustomerId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of all of a customer's policies.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerConfigurationPolicy [-CustomerId] <String> [-PolicyId <String>] [<CommonParameters>] Get-PartnerCustomerConfigurationPolicy [-CustomerId] <String> [-PolicyId <String>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of devices in the specified device batch for the specified customer.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerDevice [-CustomerId] <String> -BatchId <String> [<CommonParameters>] Get-PartnerCustomerDevice [-CustomerId] <String> -BatchId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of device batches for the specified customer identifier.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerDeviceBatch [-CustomerId] <String> [<CommonParameters>] Get-PartnerCustomerDeviceBatch [-CustomerId] <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a collection of entitlements.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerEntitlement -CustomerId <String> [-OrderId <String>] [<CommonParameters>] Get-PartnerCustomerEntitlement -CustomerId <String> [-OrderId <String>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets aggregated data on deployment for a specified customer.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerLicenseDeploymentInfo -CustomerId <String> [<CommonParameters>] Get-PartnerCustomerLicenseDeploymentInfo -CustomerId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the managed services for a customer.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerManagedService [-CustomerId] <String> [-ManagedServiceId <String>] [<CommonParameters>] Get-PartnerCustomerManagedService [-CustomerId] <String> [-ManagedServiceId <String>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,17 +15,17 @@ Gets either a specific order or a list of order for the specified customer.
## SYNTAX ## SYNTAX
### ByCustomerId ### ByCustomerId
``` ```powershell
Get-PartnerCustomerOrder -CustomerId <String> [<CommonParameters>] Get-PartnerCustomerOrder -CustomerId <String> [<CommonParameters>]
``` ```
### ByOrderId ### ByOrderId
``` ```powershell
Get-PartnerCustomerOrder -CustomerId <String> -OrderId <String> [<CommonParameters>] Get-PartnerCustomerOrder -CustomerId <String> -OrderId <String> [<CommonParameters>]
``` ```
### ByBillingCycle ### ByBillingCycle
``` ```powershell
Get-PartnerCustomerOrder -CustomerId <String> -BillingCycle <BillingCycleType> [<CommonParameters>] Get-PartnerCustomerOrder -CustomerId <String> -BillingCycle <BillingCycleType> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a customer's service cost line items for the specified billing period.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerServiceCosts -BillingPeriod <ServiceCostsBillingPeriod> -CustomerId <String> Get-PartnerCustomerServiceCosts -BillingPeriod <ServiceCostsBillingPeriod> -CustomerId <String>
[<CommonParameters>] [<CommonParameters>]
``` ```
@ -40,7 +40,7 @@ An indicator that represents the billing period.
Type: ServiceCostsBillingPeriod Type: ServiceCostsBillingPeriod
Parameter Sets: (All) Parameter Sets: (All)
Aliases: Aliases:
Accepted values: Current, MostRecent Accepted values: MostRecent
Required: True Required: True
Position: Named Position: Named

Просмотреть файл

@ -14,7 +14,7 @@ Gets a customer's service costs for the specified billing period.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerServiceCostsSummary -BillingPeriod <ServiceCostsBillingPeriod> -CustomerId <String> Get-PartnerCustomerServiceCostsSummary -BillingPeriod <ServiceCostsBillingPeriod> -CustomerId <String>
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of licenses available to users of the specified customer.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerSubscribedSku -CustomerId <String> [-LicenseGroup <LicenseGroupId[]>] [<CommonParameters>] Get-PartnerCustomerSubscribedSku -CustomerId <String> [-LicenseGroup <LicenseGroupId[]>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,20 +14,15 @@ Gets a list or a single customer subscription.
## SYNTAX ## SYNTAX
### Customer (Default) ### ByCustomer (Default)
``` ```powershell
Get-PartnerCustomerSubscription [<CommonParameters>] Get-PartnerCustomerSubscription -CustomerId <String> [-OrderId <String>] [-MpnId <String>]
```
### ByCustomerObject
```
Get-PartnerCustomerSubscription -InputObject <PSCustomer> [-OrderId <String>] [-MpnId <String>]
[-SubscriptionId <String>] [<CommonParameters>] [-SubscriptionId <String>] [<CommonParameters>]
``` ```
### ByCustomer ### ByCustomerObject
``` ```powershell
Get-PartnerCustomerSubscription -CustomerId <String> [-OrderId <String>] [-MpnId <String>] Get-PartnerCustomerSubscription -InputObject <PSCustomer> [-OrderId <String>] [-MpnId <String>]
[-SubscriptionId <String>] [<CommonParameters>] [-SubscriptionId <String>] [<CommonParameters>]
``` ```
@ -97,7 +92,7 @@ The Microsoft Parnter Network identifier that identifies the partner.
```yaml ```yaml
Type: String Type: String
Parameter Sets: ByCustomerObject, ByCustomer Parameter Sets: ByCustomer, ByCustomerObject
Aliases: Aliases:
Required: False Required: False
@ -124,7 +119,7 @@ The identifier corresponding to the order.
```yaml ```yaml
Type: String Type: String
Parameter Sets: ByCustomerObject, ByCustomer Parameter Sets: ByCustomer, ByCustomerObject
Aliases: Aliases:
Required: False Required: False
@ -151,7 +146,7 @@ The subscription identifier used to scope the request.
```yaml ```yaml
Type: String Type: String
Parameter Sets: ByCustomerObject, ByCustomer Parameter Sets: ByCustomer, ByCustomerObject
Aliases: Aliases:
Required: False Required: False

Просмотреть файл

@ -14,7 +14,7 @@ Gets the provisioning status for the specified subscription.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerSubscriptionProvisioningStatus -CustomerId <String> -SubscriptionId <String> Get-PartnerCustomerSubscriptionProvisioningStatus -CustomerId <String> -SubscriptionId <String>
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the subscription registration status.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerSubscriptionRegistrationStatus -CustomerId <String> -SubscriptionId <String> Get-PartnerCustomerSubscriptionRegistrationStatus -CustomerId <String> -SubscriptionId <String>
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the support contact for the specified subscription.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerSubscriptionSupportContact -CustomerId <String> -SubscriptionId <String> Get-PartnerCustomerSubscriptionSupportContact -CustomerId <String> -SubscriptionId <String>
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the available upgrade offers for the specified subscription.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerSubscriptionUpgrades -CustomerId <String> -SubscriptionId <String> [<CommonParameters>] Get-PartnerCustomerSubscriptionUpgrades -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a collection resource that contains a list of services within a customer's
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerSubscriptionUsage -CustomerId <String> -SubscriptionId <String> [<CommonParameters>] Get-PartnerCustomerSubscriptionUsage -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the utilization of a customer's Azure subscription.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerSubscriptionUtilization -CustomerId <String> [-EndDate <DateTimeOffset>] Get-PartnerCustomerSubscriptionUtilization -CustomerId <String> [-EndDate <DateTimeOffset>]
[-Granularity <AzureUtilizationGranularity>] [-ShowDetails] -StartDate <DateTimeOffset> [-Granularity <AzureUtilizationGranularity>] [-ShowDetails] -StartDate <DateTimeOffset>
-SubscriptionId <String> [<CommonParameters>] -SubscriptionId <String> [<CommonParameters>]

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of trial conversions available for the specified subscription.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerTrialConversion -CustomerId <String> -SubscriptionId <String> [<CommonParameters>] Get-PartnerCustomerTrialConversion -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the customer's usage of a specific Azure service or resource during the cur
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerUsageSummary -CustomerId <String> [<CommonParameters>] Get-PartnerCustomerUsageSummary -CustomerId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,17 +15,17 @@ Gets a list of all customer users or a specified user for the tenant.
## SYNTAX ## SYNTAX
### ByCustomerId (Default) ### ByCustomerId (Default)
``` ```powershell
Get-PartnerCustomerUser [-CustomerId] <String> [-ReturnDeletedUsers] [<CommonParameters>] Get-PartnerCustomerUser [-CustomerId] <String> [-ReturnDeletedUsers] [<CommonParameters>]
``` ```
### ByUserId ### ByUserId
``` ```powershell
Get-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [<CommonParameters>] Get-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [<CommonParameters>]
``` ```
### ByUpn ### ByUpn
``` ```powershell
Get-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [<CommonParameters>] Get-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of licenses assigned to a user within a customer account.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerUserLicense -CustomerId <String> [-LicenseGroup <LicenseGroupId[]>] -UserId <String> Get-PartnerCustomerUserLicense -CustomerId <String> [-LicenseGroup <LicenseGroupId[]>] -UserId <String>
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of directory roles for a customer.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerUserRole -CustomerId <String> [-UserId <String>] [<CommonParameters>] Get-PartnerCustomerUserRole -CustomerId <String> [-UserId <String>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of indirect resellers.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerIndirectReseller [<CommonParameters>] Get-PartnerIndirectReseller [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of invoices available to the partner.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerInvoice [-InvoiceId <String>] [<CommonParameters>] Get-PartnerInvoice [-InvoiceId <String>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the line items for the specified invoice.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerInvoiceLineItem -BillingProvider <BillingProvider> -InvoiceId <String> Get-PartnerInvoiceLineItem -BillingProvider <BillingProvider> -InvoiceId <String>
-LineItemType <InvoiceLineItemType> [<CommonParameters>] -LineItemType <InvoiceLineItemType> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets an invoice statement using the invoice identifier.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerInvoiceStatement -InvoiceId <String> [-OutputPath <String>] [-Overwrite] [<CommonParameters>] Get-PartnerInvoiceStatement -InvoiceId <String> [-OutputPath <String>] [-Overwrite] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a summary view of the invoice.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerInvoiceSummary [<CommonParameters>] Get-PartnerInvoiceSummary [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the partner legal business profile from Partner Center.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerLegalProfile [<CommonParameters>] Get-PartnerLegalProfile [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets aggregated data on licenses deployment
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerLicenseDeploymentInfo [<CommonParameters>] Get-PartnerLicenseDeploymentInfo [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets aggregated data on licenses deployment
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerLicenseUsageInfo [<CommonParameters>] Get-PartnerLicenseUsageInfo [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the partner MPN from Partner Center.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerMpnProfile [-MpnId <String>] [<CommonParameters>] Get-PartnerMpnProfile [-MpnId <String>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a specific offer or a list of available offers from Partner Center.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerOffer [-AddOn] [-Category <String>] [-CountryCode <String>] [-OfferId <String>] [-Trial] Get-PartnerOffer [-AddOn] [-Category <String>] [-CountryCode <String>] [-OfferId <String>] [-Trial]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the add-ons for an offer by identifier.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerOfferAddon [-CountryCode <String>] [-OfferId] <String> [<CommonParameters>] Get-PartnerOfferAddon [-CountryCode <String>] [-OfferId] <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -1,39 +1,39 @@
--- ---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerRelationship.md content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerOfferCategory.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter Module Name: PartnerCenter
online version: online version:
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerRelationship.md original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerOfferCategory.md
schema: 2.0.0 schema: 2.0.0
--- ---
# Get-PartnerCustomerRelationship # Get-PartnerOfferCategory
## SYNOPSIS ## SYNOPSIS
Gets all the partner relationships associated to the customer based on the logged in partner. Gets a list of offer categories.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerCustomerRelationship -CustomerId <String> [<CommonParameters>] Get-PartnerOfferCategory -CountryCode <String> [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
Gets all the partner relationships associated to the customer based on the logged in partner. Gets a list of offer categories.
## EXAMPLES ## EXAMPLES
### Example 1 ### Example 1
```powershell ```powershell
PS C:\> Get-PartnerCustomerRelationship -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' PS C:\> Get-PartnerOfferCategory -CountryCode 'US'
``` ```
Gets all the partner relationships associated to the customer based on the logged in partner. Gets a list of offer categories for the specified country.
## PARAMETERS ## PARAMETERS
### -CustomerId ### -CountryCode
The identifier of the customer. The country ISO2 code.
```yaml ```yaml
Type: String Type: String
@ -56,7 +56,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS ## OUTPUTS
### Microsoft.Store.PartnerCenter.PowerShell.Models.Relationships.PSPartnerRelationship ### Microsoft.Store.PartnerCenter.PowerShell.Models.Offers.PSOfferCategory
## NOTES ## NOTES

Просмотреть файл

@ -14,7 +14,7 @@ Gets the partner organization profile from Partner Center.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerOrganizationProfile [<CommonParameters>] Get-PartnerOrganizationProfile [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,12 +15,12 @@ Gets a list or a single product.
## SYNTAX ## SYNTAX
### ByCatalog (Default) ### ByCatalog (Default)
``` ```powershell
Get-PartnerProduct [-CountryCode <String>] -Catalog <String> [-Segment <String>] [<CommonParameters>] Get-PartnerProduct [-CountryCode <String>] -Catalog <String> [-Segment <String>] [<CommonParameters>]
``` ```
### ByProductId ### ByProductId
``` ```powershell
Get-PartnerProduct [-CountryCode <String>] -ProductId <String> [<CommonParameters>] Get-PartnerProduct [-CountryCode <String>] -ProductId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,13 +15,13 @@ Gets the availability for a specified product.
## SYNTAX ## SYNTAX
### BySku (Default) ### BySku (Default)
``` ```powershell
Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>] [-Segment <String>] Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>] [-Segment <String>]
[<CommonParameters>] [<CommonParameters>]
``` ```
### ByAvailabilityId ### ByAvailabilityId
``` ```powershell
Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>] Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>]
-AvailabilityId <String> [<CommonParameters>] -AvailabilityId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Checks the inventory for the specified product.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerProductInventory [-CountryCode <String>] -ProductId <String> [-SkuId <String>] Get-PartnerProductInventory [-CountryCode <String>] -ProductId <String> [-SkuId <String>]
[-Variables <Hashtable>] [<CommonParameters>] [-Variables <Hashtable>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,7 +15,7 @@ Gets the list of SKUs for a product.
## SYNTAX ## SYNTAX
### ByProductId (Default) ### ByProductId (Default)
``` ```powershell
Get-PartnerProductSku [-CountryCode <String>] -ProductId <String> [<CommonParameters>] Get-PartnerProductSku [-CountryCode <String>] -ProductId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a relationship request URL to send to a customer.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerResellerRequestLink [<CommonParameters>] Get-PartnerResellerRequestLink [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of service incidents.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerServiceIncident [-Status <ServiceIncidentStatus>] [-Resolved] [<CommonParameters>] Get-PartnerServiceIncident [-Status <ServiceIncidentStatus>] [-Resolved] [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,7 +15,7 @@ Gets the specified customer's service requests.
## SYNTAX ## SYNTAX
### ByStatus (Default) ### ByStatus (Default)
``` ```powershell
Get-PartnerServiceRequest [-Status <ServiceRequestStatus>] [-Severity <ServiceRequestSeverity>] Get-PartnerServiceRequest [-Status <ServiceRequestStatus>] [-Severity <ServiceRequestSeverity>]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets a list of service request topics.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerServiceRequestTopic [-SupportTopicId <String>] [<CommonParameters>] Get-PartnerServiceRequestTopic [-SupportTopicId <String>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Gets the partner's support profile.
## SYNTAX ## SYNTAX
``` ```powershell
Get-PartnerSupportProfile [<CommonParameters>] Get-PartnerSupportProfile [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,16 +15,15 @@ Generate a new access token that can be used to access Partner Center.
## SYNTAX ## SYNTAX
### UserCredential (Default) ### UserCredential (Default)
``` ```powershell
New-PartnerAccessToken -ApplicationId <String> [-Consent] [-Credential <PSCredential>] New-PartnerAccessToken -ApplicationId <String> [-Consent] [-Environment <EnvironmentName>]
[-Environment <EnvironmentName>] [-RefreshToken <String>] -Resource <String> [-TenantId <String>] [-RefreshToken <String>] -Resource <String> [-TenantId <String>] [<CommonParameters>]
[<CommonParameters>]
``` ```
### ServicePrincipal ### ServicePrincipal
``` ```powershell
New-PartnerAccessToken [-Consent] -Credential <PSCredential> [-Environment <EnvironmentName>] New-PartnerAccessToken [-Consent] -Credential <PSCredential> [-Environment <EnvironmentName>]
[-RefreshToken <String>] -Resource <String> [-ServicePrincipal] [-TenantId <String>] [<CommonParameters>] [-RefreshToken <String>] -Resource <String> [-TenantId <String>] [<CommonParameters>]
``` ```
## DESCRIPTION ## DESCRIPTION
@ -85,18 +84,6 @@ Accept wildcard characters: False
### -Credential ### -Credential
Credentials that represents the service principal. Credentials that represents the service principal.
```yaml
Type: PSCredential
Parameter Sets: UserCredential
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
```yaml ```yaml
Type: PSCredential Type: PSCredential
Parameter Sets: ServicePrincipal Parameter Sets: ServicePrincipal
@ -155,21 +142,6 @@ Accept pipeline input: False
Accept wildcard characters: False Accept wildcard characters: False
``` ```
### -ServicePrincipal
A flag indicating that a service principal will be used to authenticate.
```yaml
Type: SwitchParameter
Parameter Sets: ServicePrincipal
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -TenantId ### -TenantId
The Azure AD domain or tenant identifier. The Azure AD domain or tenant identifier.

Просмотреть файл

@ -14,7 +14,7 @@ Creates a new customer.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomer [-AssociatedPartnerId <String>] -BillingAddressLine1 <String> New-PartnerCustomer [-AssociatedPartnerId <String>] -BillingAddressLine1 <String>
[-BillingAddressLine2 <String>] [-BillingAddressCity <String>] -BillingAddressCountry <String> [-BillingAddressLine2 <String>] [-BillingAddressCity <String>] -BillingAddressCountry <String>
[-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>] [-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>]

Просмотреть файл

@ -14,7 +14,7 @@ Confirms the customer acceptance of the Microsoft Cloud agreement.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomerAgreement -AgreementType <AgreementType> -ContactEmail <String> -ContactFirstName <String> New-PartnerCustomerAgreement -AgreementType <AgreementType> -ContactEmail <String> -ContactFirstName <String>
-ContactLastName <String> [-ContactPhoneNumber <String>] -CustomerId <String> [-DateAgreed <DateTime>] -ContactLastName <String> [-ContactPhoneNumber <String>] -CustomerId <String> [-DateAgreed <DateTime>]
-TemplateId <String> [-UserId <String>] [<CommonParameters>] -TemplateId <String> [-UserId <String>] [<CommonParameters>]

Просмотреть файл

@ -14,7 +14,7 @@ Creates an order for a customer.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomerCart -CustomerId <String> -LineItems <PSCartLineItem[]> [-WhatIf] [-Confirm] New-PartnerCustomerCart -CustomerId <String> -LineItems <PSCartLineItem[]> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,7 +15,7 @@ Creates a new configuration policy for the specified customer.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomerConfigurationPolicy [-CustomerId] <String> [-Name] <String> [-Description <String>] New-PartnerCustomerConfigurationPolicy [-CustomerId] <String> [-Name] <String> [-Description <String>]
[-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>] [-SkipExpressSettings <Boolean>] [-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>] [-SkipExpressSettings <Boolean>]
[-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>] [-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]

Просмотреть файл

@ -14,7 +14,7 @@ Creates a new device batch for the specified customer.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomerDeviceBatch -BatchId <String> -CustomerId <String> -Devices <PSDevice[]> [-WhatIf] New-PartnerCustomerDeviceBatch -BatchId <String> -CustomerId <String> -Devices <PSDevice[]> [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Create a new order for the specified services on behalf of the customer.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomerOrder -CustomerId <String> -LineItems <PSOrderLineItem[]> [-WhatIf] [-Confirm] New-PartnerCustomerOrder -CustomerId <String> -LineItems <PSOrderLineItem[]> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Registers the specified subscription.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomerSubscriptionRegistration -CustomerId <String> -SubscriptionId <String> [-WhatIf] [-Confirm] New-PartnerCustomerSubscriptionRegistration -CustomerId <String> -SubscriptionId <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Creates a new user in the specified customer Azure Active Directory tenant.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerCustomerUser -CustomerId <String> [-FirstName <String>] [-LastName <String>] -DisplayName <String> New-PartnerCustomerUser -CustomerId <String> [-FirstName <String>] [-LastName <String>] -DisplayName <String>
-UserPrincipalName <String> -Password <SecureString> [-ForceChangePassword] [-UsageLocation <String>] -UserPrincipalName <String> -Password <SecureString> [-ForceChangePassword] [-UsageLocation <String>]
[-WhatIf] [-Confirm] [<CommonParameters>] [-WhatIf] [-Confirm] [<CommonParameters>]

Просмотреть файл

@ -14,7 +14,7 @@ Creates a service request at the partner level.
## SYNTAX ## SYNTAX
``` ```powershell
New-PartnerServiceRequest [-AgentLocale <String>] -Description <String> -Severity <ServiceRequestSeverity> New-PartnerServiceRequest [-AgentLocale <String>] -Description <String> -Severity <ServiceRequestSeverity>
-SupportTopicId <String> -Title <String> [-WhatIf] [-Confirm] [<CommonParameters>] -SupportTopicId <String> -Title <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -1,4 +1,6 @@
--- ---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/PartnerCenter.md
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/PartnerCenter.md
Module Name: PartnerCenter Module Name: PartnerCenter
Module Guid: 70cb9a9e-1491-403a-8a2f-63e1afe7dfee Module Guid: 70cb9a9e-1491-403a-8a2f-63e1afe7dfee
Download Help Link: none Download Help Link: none
@ -6,7 +8,8 @@ Help Version: 1.0
Locale: en-US Locale: en-US
--- ---
# PartnerCenter Module # Microsoft Partner Center PowerShell Module
## Description ## Description
These are the cmdlets in the Partner Center PowerShell module. These are the cmdlets in the Partner Center PowerShell module.
@ -65,6 +68,9 @@ Gets a list of device batches for the specified customer identifier.
### [Get-PartnerCustomerEntitlement](Get-PartnerCustomerEntitlement.md) ### [Get-PartnerCustomerEntitlement](Get-PartnerCustomerEntitlement.md)
Gets a collection of entitlements. Gets a collection of entitlements.
### [Get-PartnerCustomerIndirectReseller](Get-PartnerCustomerIndirectReseller.md)
Gets all of the indirect resellers associated with the specified customer. This command will only function for indirect providers.
### [Get-PartnerCustomerLicenseDeploymentInfo](Get-PartnerCustomerLicenseDeploymentInfo.md) ### [Get-PartnerCustomerLicenseDeploymentInfo](Get-PartnerCustomerLicenseDeploymentInfo.md)
Gets aggregated data on deployment for a specified customer. Gets aggregated data on deployment for a specified customer.
@ -74,9 +80,6 @@ Gets the managed services for a customer.
### [Get-PartnerCustomerOrder](Get-PartnerCustomerOrder.md) ### [Get-PartnerCustomerOrder](Get-PartnerCustomerOrder.md)
Gets either a specific order or a list of order for the specified customer. Gets either a specific order or a list of order for the specified customer.
### [Get-PartnerCustomerRelationship](Get-PartnerCustomerRelationship.md)
Gets all the partner relationships associated to the customer based on the logged in partner.
### [Get-PartnerCustomerServiceCosts](Get-PartnerCustomerServiceCosts.md) ### [Get-PartnerCustomerServiceCosts](Get-PartnerCustomerServiceCosts.md)
Gets a customer's service cost line items for the specified billing period. Gets a customer's service cost line items for the specified billing period.
@ -155,6 +158,9 @@ Gets a specific offer or a list of available offers from Partner Center.
### [Get-PartnerOfferAddon](Get-PartnerOfferAddon.md) ### [Get-PartnerOfferAddon](Get-PartnerOfferAddon.md)
Gets the add-ons for an offer by identifier. Gets the add-ons for an offer by identifier.
### [Get-PartnerOfferCategory](Get-PartnerOfferCategory.md)
Gets a list of offer categories.
### [Get-PartnerOrganizationProfile](Get-PartnerOrganizationProfile.md) ### [Get-PartnerOrganizationProfile](Get-PartnerOrganizationProfile.md)
Gets the partner organization profile from Partner Center. Gets the partner organization profile from Partner Center.

Просмотреть файл

@ -15,7 +15,7 @@ Removes the specified configuration policy.
## SYNTAX ## SYNTAX
``` ```powershell
Remove-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [<CommonParameters>] Remove-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,12 +15,12 @@ Removes a user from the customer's tenant.
## SYNTAX ## SYNTAX
### ByUserId (Default) ### ByUserId (Default)
``` ```powershell
Remove-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>] Remove-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
### ByUpn ### ByUpn
``` ```powershell
Remove-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm] Remove-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Removes a customer user from a specified role.
## SYNTAX ## SYNTAX
``` ```powershell
Remove-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>] Remove-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Removes the reseller relationship between the specified customer and the partner
## SYNTAX ## SYNTAX
``` ```powershell
Remove-PartnerResellerRelationship -CustomerId <String> [-WhatIf] [-Confirm] [<CommonParameters>] Remove-PartnerResellerRelationship -CustomerId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Removes the specified customer.
## SYNTAX ## SYNTAX
``` ```powershell
Remove-PartnerSandboxCustomer [-CustomerId] <String> [-WhatIf] [-Confirm] [<CommonParameters>] Remove-PartnerSandboxCustomer [-CustomerId] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,12 +15,12 @@ Restores a previously removed customer user from the customer's tenant.
## SYNTAX ## SYNTAX
### ByUserId (Default) ### ByUserId (Default)
``` ```powershell
Restore-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>] Restore-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```
### ByUpn ### ByUpn
``` ```powershell
Restore-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm] Restore-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm]
[<CommonParameters>] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Updates the partner's billing profile.
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerBillingProfile [-AddressLine1 <String>] [-AddressLine2 <String>] [-City <String>] Set-PartnerBillingProfile [-AddressLine1 <String>] [-AddressLine2 <String>] [-City <String>]
[-EmailAddress <String>] [-FirstName <String>] [-LastName <String>] [-PhoneNumber <String>] [-EmailAddress <String>] [-FirstName <String>] [-LastName <String>] [-PhoneNumber <String>]
[-PostalCode <String>] [-PurchaseOrderNumber <String>] [-Region <String>] [-State <String>] [-TaxId <String>] [-PostalCode <String>] [-PurchaseOrderNumber <String>] [-Region <String>] [-State <String>] [-TaxId <String>]

Просмотреть файл

@ -15,7 +15,7 @@ Updates a customer's billing profile, including the address associated with the
## SYNTAX ## SYNTAX
### Customer (Default) ### Customer (Default)
``` ```powershell
Set-PartnerCustomer [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>] Set-PartnerCustomer [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>]
[-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPhoneNumber <String>] [-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPhoneNumber <String>]
[-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>] [-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>]
@ -23,7 +23,7 @@ Set-PartnerCustomer [-BillingAddressLine1 <String>] [-BillingAddressLine2 <Strin
``` ```
### CustomerObject ### CustomerObject
``` ```powershell
Set-PartnerCustomer -InputObject <PSCustomer> [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>] Set-PartnerCustomer -InputObject <PSCustomer> [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>]
[-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPhoneNumber <String>] [-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPhoneNumber <String>]
[-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>] [-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>]

Просмотреть файл

@ -14,7 +14,7 @@ Updates an order for a customer in a cart.
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerCustomerCart -CartId <String> -CustomerId <String> -LineItems <PSCartLineItem[]> [-WhatIf] Set-PartnerCustomerCart -CartId <String> -CustomerId <String> -LineItems <PSCartLineItem[]> [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,7 +15,7 @@ Updates an existing configuration policy with the specified options.
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [-Name <String>] Set-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [-Name <String>]
[-Description <String>] [-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>] [-Description <String>] [-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>]
[-SkipExpressSettings <Boolean>] [-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm] [-SkipExpressSettings <Boolean>] [-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm]

Просмотреть файл

@ -15,14 +15,14 @@ Updates the specified customer subscription.
## SYNTAX ## SYNTAX
### Customer ### Customer
``` ```powershell
Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] [-BillingCycle <BillingCycleType>] -CustomerId <String> Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] [-BillingCycle <BillingCycleType>] -CustomerId <String>
[-FriendlyName <String>] [-Quantity <Int32>] [-Status <SubscriptionStatus>] -SubscriptionId <String> [-WhatIf] [-FriendlyName <String>] [-Quantity <Int32>] [-Status <SubscriptionStatus>] -SubscriptionId <String> [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```
### CustomerObject ### CustomerObject
``` ```powershell
Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] -InputObject <PSCustomer> Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] -InputObject <PSCustomer>
[-BillingCycle <BillingCycleType>] [-FriendlyName <String>] [-Quantity <Int32>] [-Status <SubscriptionStatus>] [-BillingCycle <BillingCycleType>] [-FriendlyName <String>] [-Quantity <Int32>] [-Status <SubscriptionStatus>]
-SubscriptionId <String> [-WhatIf] [-Confirm] [<CommonParameters>] -SubscriptionId <String> [-WhatIf] [-Confirm] [<CommonParameters>]

Просмотреть файл

@ -14,7 +14,7 @@ Update a subscription's support contact to one of the partner's value added rese
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerCustomerSubscriptionSupportContact -CustomerId <String> -Name <String> -SubscriptionId <String> Set-PartnerCustomerSubscriptionSupportContact -CustomerId <String> -Name <String> -SubscriptionId <String>
-SupportMpnId <String> -SupportTenantId <String> [-WhatIf] [-Confirm] [<CommonParameters>] -SupportMpnId <String> -SupportTenantId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -15,7 +15,7 @@ Updates the specified customer user account.
## SYNTAX ## SYNTAX
### UserId (Default) ### UserId (Default)
``` ```powershell
Set-PartnerCustomerUser [-DisplayName <String>] [-ForceChangePasswordNextLogin] [-CustomerId] <String> Set-PartnerCustomerUser [-DisplayName <String>] [-ForceChangePasswordNextLogin] [-CustomerId] <String>
[-FirstName <String>] [-LastName <String>] [-Password <SecureString>] [-UsageLocation <String>] [-FirstName <String>] [-LastName <String>] [-Password <SecureString>] [-UsageLocation <String>]
-UserId <String> [-UserPrincipalName <String>] [-WhatIf] [-Confirm] [<CommonParameters>] -UserId <String> [-UserPrincipalName <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Просмотреть файл

@ -14,7 +14,7 @@ Adds or removes licenses for a Microsoft online service to the list of assigned
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerCustomerUserLicense -CustomerId <String> -LicenseUpdate <PSLicenseUpdate> -UserId <String> [-WhatIf] Set-PartnerCustomerUserLicense -CustomerId <String> -LicenseUpdate <PSLicenseUpdate> -UserId <String> [-WhatIf]
[-Confirm] [<CommonParameters>] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Updates the partner's legal profile.
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerLegalProfile [-AddressLine1 <String>] [-AddressLine2 <String>] [-City <String>] [-Country <String>] Set-PartnerLegalProfile [-AddressLine1 <String>] [-AddressLine2 <String>] [-City <String>] [-Country <String>]
[-EmailAddress <String>] [-FirstName <String>] [-LastName <String>] [-PhoneNumber <String>] [-EmailAddress <String>] [-FirstName <String>] [-LastName <String>] [-PhoneNumber <String>]
[-PostalCode <String>] [-Region <String>] [-State <String>] [-WhatIf] [-Confirm] [<CommonParameters>] [-PostalCode <String>] [-Region <String>] [-State <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Просмотреть файл

@ -14,7 +14,7 @@ Updates the partner's organization profile
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerOrganizationProfile [-CompanyName <String>] [-AddressLine1 <String>] [-AddressLine2 <String>] Set-PartnerOrganizationProfile [-CompanyName <String>] [-AddressLine1 <String>] [-AddressLine2 <String>]
[-City <String>] [-Country <String>] [-Culture <String>] [-Email <String>] [-FirstName <String>] [-City <String>] [-Country <String>] [-Culture <String>] [-Email <String>] [-FirstName <String>]
[-Language <String>] [-LastName <String>] [-PhoneNumber <String>] [-PostalCode <String>] [-State <String>] [-Language <String>] [-LastName <String>] [-PhoneNumber <String>] [-PostalCode <String>] [-State <String>]

Просмотреть файл

@ -14,7 +14,7 @@ Updates a service request at the partner level.
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerServiceRequest [-NewNote <String>] [-ServiceRequestId] <String> [-Status <ServiceRequestStatus>] Set-PartnerServiceRequest [-NewNote <String>] [-ServiceRequestId] <String> [-Status <ServiceRequestStatus>]
[-WhatIf] [-Confirm] [<CommonParameters>] [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Updates the partner's support profile.
## SYNTAX ## SYNTAX
``` ```powershell
Set-PartnerSupportProfile [-SupportEmail <String>] [-SupportPhoneNumber <String>] [-SupportWebsite <String>] Set-PartnerSupportProfile [-SupportEmail <String>] [-SupportPhoneNumber <String>] [-SupportWebsite <String>]
[-WhatIf] [-Confirm] [<CommonParameters>] [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Checks out the specified cart.
## SYNTAX ## SYNTAX
``` ```powershell
Submit-PartnerCustomerCart -CartId <String> -CustomerId <String> [-WhatIf] [-Confirm] [<CommonParameters>] Submit-PartnerCustomerCart -CartId <String> -CustomerId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Tests whether or not the specified address is valid.
## SYNTAX ## SYNTAX
``` ```powershell
Test-PartnerAddress -AddressLine1 <String> [-AddressLine2 <String>] [-City <String>] [-Country <String>] Test-PartnerAddress -AddressLine1 <String> [-AddressLine2 <String>] [-City <String>] [-Country <String>]
-PostalCode <String> [-Region <String>] [-State <String>] [-WhatIf] [-Confirm] [<CommonParameters>] -PostalCode <String> [-Region <String>] [-State <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
``` ```

Просмотреть файл

@ -14,7 +14,7 @@ Tests if the specified domain name is available for creating a new tenant.
## SYNTAX ## SYNTAX
``` ```powershell
Test-PartnerDomainAvailability [-Domain] <String> [<CommonParameters>] Test-PartnerDomainAvailability [-Domain] <String> [<CommonParameters>]
``` ```

Просмотреть файл

@ -1,24 +0,0 @@
# Scenarios
## Applies To
- Partner Center
- Partner Center operated by 21Vianet
- Partner Center for Microsoft Cloud Germany
- Partner Center for Microsoft Cloud for US Government
This section describes ways that partners in the Cloud Solution Provider program can use the Partner Center PowerShell module to manage billing, customer accounts, orders, partner accounts, subscriptions, and support.
## Scenarios supported by the Partner Center PowerShell Module
### Manage customer accounts
#### Manage customer account details
- [Confirm customer acceptance of Microsoft Cloud agreement](scenarios/confirm-customer-consent.md)
### Place orders
#### Purchase Azure Reserved VM Instances
- [Purchase Azure reservations](scenarios/purchase-azure-reservations.md)

Просмотреть файл

@ -1,39 +0,0 @@
# Confirm customer acceptance of Microsoft Cloud agreement
## Applies To
- Partner Center
> [!NOTE]
> The **Agreement** resource is currently supported by Partner Center in the Microsoft public cloud only. It is not applicable to:
> - Partner Center operated by 21Vianet
> - Partner Center for Microsoft Cloud Germany
> - Partner Center for Microsoft Cloud for US Government
How to confirm customer acceptance of the Microsoft Cloud agreement.
## Prerequisites
- A customer identifier (customer-tenant-id).
- Date when customer accepted the Microsoft Cloud Agreement.
- Information about the user from the organization who accepted the Microsoft Cloud Agreement, including:
- First name
- Last name
- Email address
- Phone number (optional)
## Examples
Follow these steps to confirm or reconfirm a customer has accepted the Microsoft Cloud Agreement:
1. Run the [Get-PartnerAgreementDetail](../help/Get-PartnerAgreementDetail.md) cmdlet to retrieve the **Template Id** for the agreement.
```powershell
Get-PartnerAgreementDetail
```
2. Run the [New-PartnerCustomerAgreement](../help/New-PartnerCustomerAgreement.md) cmdlet and supply the **Template Id**, **Customer Id**, and details on the person who accepted the Microsoft Cloud Agreement for the customer.
```powershell
New-PartnerCustomerAgreement -TemplateId '<Template-Id>'-AgreementType MicrosoftCloudAgreement -CustomerId '<Customer-Id>' -ContactEmail '<Email>' -ContactFirstName '<First-Name>' -ContactLastName '<Last-Name>'
```

Просмотреть файл

@ -1,92 +0,0 @@
# Purchase Azure reservations
## Applies To
- Partner Center
To purchase an Azure reservation using the Partner Center PowerShell module, you must have one or more deployed Cloud Solution Provider (CSP) Azure subscriptions. If you do not have a CSP Azure subscription, follow these steps to purchase one:
- Get a list of offers for a market.
- Create an order for an CSP Azure subscription.
- Submit the order
- Verify that the order is fulfilled.
> **NOTE**
> Azure Reserved VM Instances are not available in all markets, please check for the latest list of markets where Reserved VM instances are available.
## How to purchase Microsoft Azure reservations
After you have identified an active CSP Azure subscription for which to add the Azure reservation, use the following steps to complete the RI purchase:
1. [Enablement](#enablement) - Register an active CSP Azure subscription to enable it for purchasing Azure reservations.
2. [Discovery](#discovery) - Find and select the Azure reservation products and SKUs you want to purchase and check their availability.
3. [Order submission](#order_submission) - Create a shopping cart with the items in your order and submit it.
### Enablement
Once you have identified the active subscription for which to add the Azure reservation, you must register the subscription to enable Azure reservations. To register an existing subscription, run the [New-PartnerCustomerSubscriptionRegistration](../help/NewPartnerCustomerSubscriptionRegistration.md) cmdlet
```powershell
New-PartnerCustomerSubscriptionRegistration -CustomerId '<Customer-Id>' -SubscriptionId '<Subscription-Id>'
```
After registering the subscription, confirm that the registration completed successfully by checking the registration status. To do this, run the [Get-PartnerCustomerSubscriptionRegistrationStatus](../help/GetPartnerCustomerSubscriptionRegistrationStatus.md) cmdlet
```powershell
Get-PartnerCustomerSubscriptionRegistrationStatus -CustomerId '<Customer-Id>' -SubscriptionId '<Subscription-Id>'
```
### Discovery
Once the subscription is enabled for purchasing Azure reservations, you need the Product identifiers and SKUs for the Reserved VM Instances. You must also verify that the SKUs are in inventory and available. To retrieve the product identifiers, SKUs, and to verify inventory and availability, complete the following steps:
1. Identify the Product and SKU information for the Reserved VM Instance that you will purchase. To do this, run the [Get-PartnerProduct](../help/Get-PartnerProduct.md) and [Get-PartnerProductSku](../help/Get-PartnerProductSku.md) cmdlets.
```powershell
Get-PartnerProduct -Catalog 'Azure' -Segment 'commercial'
```
```powershell
Get-PartnerProductSku -ProductId '<Product-Id>'
```
2. Verify SKU inventory for each one that is tagged with a **InventoryCheck** prerequisite. To do this, run the [Get-PartnerProductInventory](../help/Get-PartnerProductInventory.md) cmdlet.
```powershell
$variables = @{ customerId='<Customer-Id>'; azureSubscriptionId='<Subscription-Id>'; armRegionName='<Azure-region>' }
Get-PartnerProductInventory -ProductId '<Product-Id>' -Variables $variables
```
3. View the SKU availability and make note of the corresponding **CatalogItemId**. To get this value, run the [Get-PartnerProductAvailability](../help/Get-PartnerProductAvailability.md) cmdlet.
```powershell
Get-PartnerProductAvailability -Product '<Product-Id>' -SkuId '<Sku-Id>'
```
### Order submission
To submit your Azure reservation order, do the following:
1. Create a cart to hold the collection of catalog items that you intend to buy. When you create a cart, the cart line items are automatically grouped based on what can be purchased in the same order. To do this, run the [New-PartnerCustomerCart](../help/New-PartnerCustomerCart.md) cmdlet.
```powershell
$lineItem = New-Object -TypeName Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartLineItem
$lineItem.BillingCycle = 'OneTime'
$lineItem.CatalogItemId = '<CatalogItemId>'
$lineItem.CustomerId = '<CustomerId>'
$lineItem.FriendlyName 'Sample RI Purchase'
$lineItem.ProvisioningContext.Add('duration', '1Year')
$lineItem.ProvisioningContext.Add('scope', 'shared')
$lineItem.ProvisioningContext.Add('subscriptionId', '<SubscriptionId>')
$lineItem.Quantity = 1
New-PartnerCustomerCart -CustomerId '<CustomerId>' -LineItems $lineItem
```
2. Submit the cart. Checking out (submitting) a cart results in an order. To do this, run the [Submit-PartnerCustomerCart](../help/Submit-PartnerCustomerCart.md) cmdlet.
```powershell
Submit-PartnerCustomerCart -CartId '<CartId>' -CustomerId '<CustomerId>'
```

Просмотреть файл

@ -0,0 +1,31 @@
// -----------------------------------------------------------------------
// <copyright file="CommonExtensions.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace Microsoft.Store.PartnerCenter.TestFramework
{
using System;
using System.Collections.Generic;
/// <summary>
/// Contains common extension methods.
/// </summary>
internal static class CommonExtensions
{
/// <summary>
/// Perform an action on each element of a sequence.
/// </summary>
/// <typeparam name="T">Type of elements in the sequence.</typeparam>
/// <param name="sequence">The sequence.</param>
/// <param name="action">The action to perform.</param>
public static void ForEach<T>(this IEnumerable<T> sequence, Action<T> action)
{
foreach (T element in sequence)
{
action(element);
}
}
}
}

Просмотреть файл

@ -0,0 +1,69 @@
// -----------------------------------------------------------------------
// <copyright file="ResponseNotFoundException.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace Microsoft.Store.PartnerCenter.TestFramework.Exceptions
{
using System;
using System.Runtime.Serialization;
using System.Security.Permissions;
[Serializable]
public class ResponseNotFoundException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="ResponseNotFoundException" /> class.
/// </summary>
public ResponseNotFoundException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ResponseNotFoundException"/> class.
/// </summary>
/// <param name="message">The message that describes the error.</param>
public ResponseNotFoundException(string message) : base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ResponseNotFoundException"/> class.
/// </summary>
/// <param name="message">The error message that explains the reason for the exception.</param>
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.</param>
public ResponseNotFoundException(string message, Exception innerException) : base(message, innerException)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="ResponseNotFoundException"/> class.
/// </summary>
/// <param name="info">The serialization information that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The context that contains contextual information about the source or destination.</param>
protected ResponseNotFoundException(SerializationInfo serializationInfo, StreamingContext streamingContext) : base(serializationInfo, streamingContext)
{
}
/// <summary>
/// When overridden in a derived class, sets the serialization information with information about the exception.
/// </summary>
/// <param name="info">The serialization information that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The context that contains contextual information about the source or destination.</param>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="*AllFiles*" PathDiscovery="*AllFiles*" />
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="SerializationFormatter" />
/// </PermissionSet>
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
if (info == null)
{
throw new ArgumentNullException(nameof(info));
}
base.GetObjectData(info, context);
}
}
}

Просмотреть файл

@ -0,0 +1,29 @@
// -----------------------------------------------------------------------
// <copyright file="HttpContentType.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
namespace Microsoft.Store.PartnerCenter.TestFramework.Network
{
/// <summary>
/// The available HTTP content types.
/// </summary>
internal enum HttpContentType
{
/// <summary>
/// The type if the content contains binary.
/// </summary>
Binary,
/// <summary>
/// The type if the content contains one ore more string literal.
/// </summary>
Ascii,
/// <summary>
/// The type if the content is empty.
/// </summary>
Null
}
}

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше