Cross platform support (#60)
* initial commit for the preview version * Minor updates to the documentation. * Added missing documentation
This commit is contained in:
Родитель
0297e0bac5
Коммит
e8ae392b7a
|
@ -4,6 +4,7 @@
|
|||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
*.suo
|
||||
*.user
|
||||
*.userosscache
|
||||
|
@ -19,6 +20,8 @@
|
|||
[Rr]eleases/
|
||||
x64/
|
||||
x86/
|
||||
[Aa][Rr][Mm]/
|
||||
[Aa][Rr][Mm]64/
|
||||
bld/
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
|
@ -52,7 +55,6 @@ BenchmarkDotNet.Artifacts/
|
|||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
artifacts/
|
||||
**/Properties/launchSettings.json
|
||||
|
||||
# StyleCop
|
||||
StyleCopReport.xml
|
||||
|
@ -60,7 +62,7 @@ StyleCopReport.xml
|
|||
# Files built by Visual Studio
|
||||
*_i.c
|
||||
*_p.c
|
||||
*_i.h
|
||||
*_h.h
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
|
@ -77,6 +79,7 @@ StyleCopReport.xml
|
|||
*.tlh
|
||||
*.tmp
|
||||
*.tmp_proj
|
||||
*_wpftmp.csproj
|
||||
*.log
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
|
@ -208,7 +211,7 @@ _pkginfo.txt
|
|||
# files ending in .cache can be ignored
|
||||
*.[Cc]ache
|
||||
# but keep track of directories ending in .cache
|
||||
!*.[Cc]ache/
|
||||
!?*.[Cc]ache/
|
||||
|
||||
# Others
|
||||
ClientBin/
|
||||
|
@ -221,13 +224,15 @@ ClientBin/
|
|||
*.publishsettings
|
||||
orleans.codegen.cs
|
||||
|
||||
# Including strong name files can present a security risk
|
||||
# Including strong name files can present a security risk
|
||||
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||
#*.snk
|
||||
|
||||
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||
#bower_components/
|
||||
# ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true
|
||||
**/wwwroot/lib/
|
||||
|
||||
# RIA/Silverlight projects
|
||||
Generated_Code/
|
||||
|
@ -291,8 +296,8 @@ paket-files/
|
|||
.idea/
|
||||
*.sln.iml
|
||||
|
||||
# CodeRush
|
||||
.cr/
|
||||
# CodeRush personal settings
|
||||
.cr/personal
|
||||
|
||||
# Python Tools for Visual Studio (PTVS)
|
||||
__pycache__/
|
||||
|
@ -317,7 +322,7 @@ __pycache__/
|
|||
# OpenCover UI analysis results
|
||||
OpenCover/
|
||||
|
||||
# Azure Stream Analytics local run output
|
||||
# Azure Stream Analytics local run output
|
||||
ASALocalRun/
|
||||
|
||||
# MSBuild Binary and Structured Log
|
||||
|
@ -326,5 +331,11 @@ ASALocalRun/
|
|||
# NVidia Nsight GPU debugger configuration file
|
||||
*.nvuser
|
||||
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
# MFractors (Xamarin productivity tool) working folder
|
||||
.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
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.27130.2036
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.28516.95
|
||||
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
|
||||
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
|
||||
.editorconfig = .editorconfig
|
||||
.gitignore = .gitignore
|
||||
CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md
|
||||
CONTRIBUTING.md = CONTRIBUTING.md
|
||||
LICENSE = LICENSE
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
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
|
||||
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
|
||||
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
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
@ -27,23 +31,38 @@ Global
|
|||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6714CA29-04A6-4D4E-919C-28AF294E6BA6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3407AFBC-72DA-491C-816F-2176D2E06DB4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{8E7758EA-3D8D-4840-8716-0E9C012F5BCB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{0DAC3162-7D38-40EC-A412-496ECAFDDC8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0DAC3162-7D38-40EC-A412-496ECAFDDC8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0DAC3162-7D38-40EC-A412-496ECAFDDC8B}.Release|Any CPU.ActiveCfg = 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
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{6714CA29-04A6-4D4E-919C-28AF294E6BA6} = {AD52517F-3B47-437C-B374-8302533DECBC}
|
||||
{3407AFBC-72DA-491C-816F-2176D2E06DB4} = {91C9A85A-2792-4EA1-9815-6DEEEFC2C932}
|
||||
{8E7758EA-3D8D-4840-8716-0E9C012F5BCB} = {D88E76D6-773B-4691-B6AB-3323E46D486F}
|
||||
{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
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {598D99A1-EECC-4613-AA82-FA1E915D0195}
|
||||
SolutionGuid = {BE398BA5-A85F-43C4-9317-C08C61C2DB8B}
|
||||
EndGlobalSection
|
||||
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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Add-PartnerCustomerCartLineItem -CartId <String> -CustomerId <String> -LineItem <PSCartLineItem> [-WhatIf]
|
||||
[-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Adds a customer user to a specified role.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Add-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -10,24 +10,23 @@ schema: 2.0.0
|
|||
# Connect-PartnerCenter
|
||||
|
||||
## 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
|
||||
|
||||
### UserCredential (Default)
|
||||
```
|
||||
Connect-PartnerCenter -ApplicationId <String> [-Credential <PSCredential>] [-Environment <EnvironmentName>]
|
||||
[<CommonParameters>]
|
||||
```powershell
|
||||
Connect-PartnerCenter -ApplicationId <String> [-Environment <EnvironmentName>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### AccessToken
|
||||
```
|
||||
Connect-PartnerCenter -AccessToken <String> -AccessTokenExpiresOn <DateTimeOffset> -ApplicationId <String>
|
||||
[-Environment <EnvironmentName>] -TenantId <String> [<CommonParameters>]
|
||||
```powershell
|
||||
Connect-PartnerCenter -AccessToken <String> -ApplicationId <String> [-Environment <EnvironmentName>]
|
||||
-TenantId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ServicePrincipal
|
||||
```
|
||||
```powershell
|
||||
Connect-PartnerCenter -Credential <PSCredential> [-Environment <EnvironmentName>] [-ServicePrincipal]
|
||||
-TenantId <String> [<CommonParameters>]
|
||||
```
|
||||
|
@ -80,21 +79,6 @@ Accept pipeline input: 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
|
||||
The application identifier used to access the Partner Center API.
|
||||
|
||||
|
@ -113,18 +97,6 @@ Accept wildcard characters: False
|
|||
### -Credential
|
||||
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
|
||||
Type: PSCredential
|
||||
Parameter Sets: ServicePrincipal
|
||||
|
|
|
@ -14,7 +14,7 @@ Disconnects the current session from Partner Center.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Disconnect-PartnerCenter [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ Gets the agreement metadata for the Microsoft Cloud Agreement.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerAgreementDetail [<CommonParameters>]
|
||||
```powershell
|
||||
Get-PartnerAgreementDetail
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
@ -32,9 +32,6 @@ Gets the agreement metadata for the Microsoft Cloud Agreement.
|
|||
|
||||
## 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
|
||||
|
||||
### None
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets audit records from Partner Center.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerAuditRecord [-EndDate <DateTime>] [-StartDate <DateTime>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets real-time prices for an Azure offer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerAzureRateCard [-Currency <String>] [-Region <String>] [-SharedServices] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the partner's billing profile.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerBillingProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the rules for validating an address for a specific country.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCountryValidation -CountryCode <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@ Gets a specific customer or a list of available customers.
|
|||
## SYNTAX
|
||||
|
||||
### ById (Default)
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomer [[-CustomerId] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByDomain
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomer -Domain <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets confirmation of customer acceptance provided previously.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerAgreement -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the customer's billing profile.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerBillingProfile -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a specific cart for the specified partner.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerCart -CartId <String> -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the customer's company profile.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerCompanyProfile -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of all of a customer's policies.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerDevice [-CustomerId] <String> -BatchId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of device batches for the specified customer identifier.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerDeviceBatch [-CustomerId] <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a collection of entitlements.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerEntitlement -CustomerId <String> [-OrderId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets aggregated data on deployment for a specified customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerLicenseDeploymentInfo -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the managed services for a customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
|
||||
### ByCustomerId
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerOrder -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByOrderId
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerOrder -CustomerId <String> -OrderId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByBillingCycle
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerServiceCosts -BillingPeriod <ServiceCostsBillingPeriod> -CustomerId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
@ -40,7 +40,7 @@ An indicator that represents the billing period.
|
|||
Type: ServiceCostsBillingPeriod
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
Accepted values: Current, MostRecent
|
||||
Accepted values: MostRecent
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a customer's service costs for the specified billing period.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerServiceCostsSummary -BillingPeriod <ServiceCostsBillingPeriod> -CustomerId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of licenses available to users of the specified customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscribedSku -CustomerId <String> [-LicenseGroup <LicenseGroupId[]>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,20 +14,15 @@ Gets a list or a single customer subscription.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
### Customer (Default)
|
||||
```
|
||||
Get-PartnerCustomerSubscription [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByCustomerObject
|
||||
```
|
||||
Get-PartnerCustomerSubscription -InputObject <PSCustomer> [-OrderId <String>] [-MpnId <String>]
|
||||
### ByCustomer (Default)
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscription -CustomerId <String> [-OrderId <String>] [-MpnId <String>]
|
||||
[-SubscriptionId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByCustomer
|
||||
```
|
||||
Get-PartnerCustomerSubscription -CustomerId <String> [-OrderId <String>] [-MpnId <String>]
|
||||
### ByCustomerObject
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscription -InputObject <PSCustomer> [-OrderId <String>] [-MpnId <String>]
|
||||
[-SubscriptionId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
@ -97,7 +92,7 @@ The Microsoft Parnter Network identifier that identifies the partner.
|
|||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByCustomerObject, ByCustomer
|
||||
Parameter Sets: ByCustomer, ByCustomerObject
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
|
@ -124,7 +119,7 @@ The identifier corresponding to the order.
|
|||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByCustomerObject, ByCustomer
|
||||
Parameter Sets: ByCustomer, ByCustomerObject
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
|
@ -151,7 +146,7 @@ The subscription identifier used to scope the request.
|
|||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByCustomerObject, ByCustomer
|
||||
Parameter Sets: ByCustomer, ByCustomerObject
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the provisioning status for the specified subscription.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscriptionProvisioningStatus -CustomerId <String> -SubscriptionId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the subscription registration status.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscriptionRegistrationStatus -CustomerId <String> -SubscriptionId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the support contact for the specified subscription.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscriptionSupportContact -CustomerId <String> -SubscriptionId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the available upgrade offers for the specified subscription.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscriptionUsage -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the utilization of a customer's Azure subscription.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerSubscriptionUtilization -CustomerId <String> [-EndDate <DateTimeOffset>]
|
||||
[-Granularity <AzureUtilizationGranularity>] [-ShowDetails] -StartDate <DateTimeOffset>
|
||||
-SubscriptionId <String> [<CommonParameters>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of trial conversions available for the specified subscription.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerUsageSummary -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,17 +15,17 @@ Gets a list of all customer users or a specified user for the tenant.
|
|||
## SYNTAX
|
||||
|
||||
### ByCustomerId (Default)
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerUser [-CustomerId] <String> [-ReturnDeletedUsers] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUserId
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUpn
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerUserLicense -CustomerId <String> [-LicenseGroup <LicenseGroupId[]>] -UserId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of directory roles for a customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerCustomerUserRole -CustomerId <String> [-UserId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of indirect resellers.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerIndirectReseller [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of invoices available to the partner.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerInvoice [-InvoiceId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the line items for the specified invoice.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerInvoiceLineItem -BillingProvider <BillingProvider> -InvoiceId <String>
|
||||
-LineItemType <InvoiceLineItemType> [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets an invoice statement using the invoice identifier.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerInvoiceStatement -InvoiceId <String> [-OutputPath <String>] [-Overwrite] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a summary view of the invoice.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerInvoiceSummary [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the partner legal business profile from Partner Center.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerLegalProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets aggregated data on licenses deployment
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerLicenseDeploymentInfo [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets aggregated data on licenses deployment
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerLicenseUsageInfo [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the partner MPN from Partner Center.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerMpnProfile [-MpnId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a specific offer or a list of available offers from Partner Center.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerOffer [-AddOn] [-Category <String>] [-CountryCode <String>] [-OfferId <String>] [-Trial]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the add-ons for an offer by identifier.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
Module Name: PartnerCenter
|
||||
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
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerRelationship
|
||||
# Get-PartnerOfferCategory
|
||||
|
||||
## SYNOPSIS
|
||||
Gets all the partner relationships associated to the customer based on the logged in partner.
|
||||
Gets a list of offer categories.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerRelationship -CustomerId <String> [<CommonParameters>]
|
||||
```powershell
|
||||
Get-PartnerOfferCategory -CountryCode <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets all the partner relationships associated to the customer based on the logged in partner.
|
||||
Gets a list of offer categories.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```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
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer.
|
||||
### -CountryCode
|
||||
The country ISO2 code.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
|
@ -56,7 +56,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
|
|||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Relationships.PSPartnerRelationship
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Offers.PSOfferCategory
|
||||
|
||||
## NOTES
|
||||
|
|
@ -14,7 +14,7 @@ Gets the partner organization profile from Partner Center.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerOrganizationProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@ Gets a list or a single product.
|
|||
## SYNTAX
|
||||
|
||||
### ByCatalog (Default)
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerProduct [-CountryCode <String>] -Catalog <String> [-Segment <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByProductId
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerProduct [-CountryCode <String>] -ProductId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,13 +15,13 @@ Gets the availability for a specified product.
|
|||
## SYNTAX
|
||||
|
||||
### BySku (Default)
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>] [-Segment <String>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByAvailabilityId
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>]
|
||||
-AvailabilityId <String> [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Checks the inventory for the specified product.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerProductInventory [-CountryCode <String>] -ProductId <String> [-SkuId <String>]
|
||||
[-Variables <Hashtable>] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -15,7 +15,7 @@ Gets the list of SKUs for a product.
|
|||
## SYNTAX
|
||||
|
||||
### ByProductId (Default)
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerProductSku [-CountryCode <String>] -ProductId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a relationship request URL to send to a customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerResellerRequestLink [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of service incidents.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerServiceIncident [-Status <ServiceIncidentStatus>] [-Resolved] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ Gets the specified customer's service requests.
|
|||
## SYNTAX
|
||||
|
||||
### ByStatus (Default)
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerServiceRequest [-Status <ServiceRequestStatus>] [-Severity <ServiceRequestSeverity>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets a list of service request topics.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerServiceRequestTopic [-SupportTopicId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Gets the partner's support profile.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Get-PartnerSupportProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,16 +15,15 @@ Generate a new access token that can be used to access Partner Center.
|
|||
## SYNTAX
|
||||
|
||||
### UserCredential (Default)
|
||||
```
|
||||
New-PartnerAccessToken -ApplicationId <String> [-Consent] [-Credential <PSCredential>]
|
||||
[-Environment <EnvironmentName>] [-RefreshToken <String>] -Resource <String> [-TenantId <String>]
|
||||
[<CommonParameters>]
|
||||
```powershell
|
||||
New-PartnerAccessToken -ApplicationId <String> [-Consent] [-Environment <EnvironmentName>]
|
||||
[-RefreshToken <String>] -Resource <String> [-TenantId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ServicePrincipal
|
||||
```
|
||||
```powershell
|
||||
New-PartnerAccessToken [-Consent] -Credential <PSCredential> [-Environment <EnvironmentName>]
|
||||
[-RefreshToken <String>] -Resource <String> [-ServicePrincipal] [-TenantId <String>] [<CommonParameters>]
|
||||
[-RefreshToken <String>] -Resource <String> [-TenantId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
@ -85,18 +84,6 @@ Accept wildcard characters: False
|
|||
### -Credential
|
||||
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
|
||||
Type: PSCredential
|
||||
Parameter Sets: ServicePrincipal
|
||||
|
@ -155,21 +142,6 @@ Accept pipeline input: 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
|
||||
The Azure AD domain or tenant identifier.
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Creates a new customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomer [-AssociatedPartnerId <String>] -BillingAddressLine1 <String>
|
||||
[-BillingAddressLine2 <String>] [-BillingAddressCity <String>] -BillingAddressCountry <String>
|
||||
[-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Confirms the customer acceptance of the Microsoft Cloud agreement.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomerAgreement -AgreementType <AgreementType> -ContactEmail <String> -ContactFirstName <String>
|
||||
-ContactLastName <String> [-ContactPhoneNumber <String>] -CustomerId <String> [-DateAgreed <DateTime>]
|
||||
-TemplateId <String> [-UserId <String>] [<CommonParameters>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Creates an order for a customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomerCart -CustomerId <String> -LineItems <PSCartLineItem[]> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -15,7 +15,7 @@ Creates a new configuration policy for the specified customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomerConfigurationPolicy [-CustomerId] <String> [-Name] <String> [-Description <String>]
|
||||
[-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>] [-SkipExpressSettings <Boolean>]
|
||||
[-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Creates a new device batch for the specified customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomerDeviceBatch -BatchId <String> -CustomerId <String> -Devices <PSDevice[]> [-WhatIf]
|
||||
[-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Create a new order for the specified services on behalf of the customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomerOrder -CustomerId <String> -LineItems <PSOrderLineItem[]> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Registers the specified subscription.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomerSubscriptionRegistration -CustomerId <String> -SubscriptionId <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Creates a new user in the specified customer Azure Active Directory tenant.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerCustomerUser -CustomerId <String> [-FirstName <String>] [-LastName <String>] -DisplayName <String>
|
||||
-UserPrincipalName <String> -Password <SecureString> [-ForceChangePassword] [-UsageLocation <String>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Creates a service request at the partner level.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
New-PartnerServiceRequest [-AgentLocale <String>] -Description <String> -Severity <ServiceRequestSeverity>
|
||||
-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 Guid: 70cb9a9e-1491-403a-8a2f-63e1afe7dfee
|
||||
Download Help Link: none
|
||||
|
@ -6,7 +8,8 @@ Help Version: 1.0
|
|||
Locale: en-US
|
||||
---
|
||||
|
||||
# PartnerCenter Module
|
||||
# Microsoft Partner Center PowerShell Module
|
||||
|
||||
## Description
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
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)
|
||||
Gets the partner organization profile from Partner Center.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ Removes the specified configuration policy.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Remove-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@ Removes a user from the customer's tenant.
|
|||
## SYNTAX
|
||||
|
||||
### ByUserId (Default)
|
||||
```
|
||||
```powershell
|
||||
Remove-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUpn
|
||||
```
|
||||
```powershell
|
||||
Remove-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Removes a customer user from a specified role.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Remove-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Removes the reseller relationship between the specified customer and the partner
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Remove-PartnerResellerRelationship -CustomerId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Removes the specified customer.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Remove-PartnerSandboxCustomer [-CustomerId] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -15,12 +15,12 @@ Restores a previously removed customer user from the customer's tenant.
|
|||
## SYNTAX
|
||||
|
||||
### ByUserId (Default)
|
||||
```
|
||||
```powershell
|
||||
Restore-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUpn
|
||||
```
|
||||
```powershell
|
||||
Restore-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Updates the partner's billing profile.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerBillingProfile [-AddressLine1 <String>] [-AddressLine2 <String>] [-City <String>]
|
||||
[-EmailAddress <String>] [-FirstName <String>] [-LastName <String>] [-PhoneNumber <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
|
||||
|
||||
### Customer (Default)
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomer [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>]
|
||||
[-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPhoneNumber <String>]
|
||||
[-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>]
|
||||
|
@ -23,7 +23,7 @@ Set-PartnerCustomer [-BillingAddressLine1 <String>] [-BillingAddressLine2 <Strin
|
|||
```
|
||||
|
||||
### CustomerObject
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomer -InputObject <PSCustomer> [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>]
|
||||
[-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPhoneNumber <String>]
|
||||
[-BillingAddressPostalCode <String>] [-BillingAddressRegion <String>] [-BillingAddressState <String>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Updates an order for a customer in a cart.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomerCart -CartId <String> -CustomerId <String> -LineItems <PSCartLineItem[]> [-WhatIf]
|
||||
[-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -15,7 +15,7 @@ Updates an existing configuration policy with the specified options.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [-Name <String>]
|
||||
[-Description <String>] [-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>]
|
||||
[-SkipExpressSettings <Boolean>] [-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm]
|
||||
|
|
|
@ -15,14 +15,14 @@ Updates the specified customer subscription.
|
|||
## SYNTAX
|
||||
|
||||
### Customer
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] [-BillingCycle <BillingCycleType>] -CustomerId <String>
|
||||
[-FriendlyName <String>] [-Quantity <Int32>] [-Status <SubscriptionStatus>] -SubscriptionId <String> [-WhatIf]
|
||||
[-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### CustomerObject
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] -InputObject <PSCustomer>
|
||||
[-BillingCycle <BillingCycleType>] [-FriendlyName <String>] [-Quantity <Int32>] [-Status <SubscriptionStatus>]
|
||||
-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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomerSubscriptionSupportContact -CustomerId <String> -Name <String> -SubscriptionId <String>
|
||||
-SupportMpnId <String> -SupportTenantId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -15,7 +15,7 @@ Updates the specified customer user account.
|
|||
## SYNTAX
|
||||
|
||||
### UserId (Default)
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomerUser [-DisplayName <String>] [-ForceChangePasswordNextLogin] [-CustomerId] <String>
|
||||
[-FirstName <String>] [-LastName <String>] [-Password <SecureString>] [-UsageLocation <String>]
|
||||
-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
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerCustomerUserLicense -CustomerId <String> -LicenseUpdate <PSLicenseUpdate> -UserId <String> [-WhatIf]
|
||||
[-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Updates the partner's legal profile.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerLegalProfile [-AddressLine1 <String>] [-AddressLine2 <String>] [-City <String>] [-Country <String>]
|
||||
[-EmailAddress <String>] [-FirstName <String>] [-LastName <String>] [-PhoneNumber <String>]
|
||||
[-PostalCode <String>] [-Region <String>] [-State <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Updates the partner's organization profile
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerOrganizationProfile [-CompanyName <String>] [-AddressLine1 <String>] [-AddressLine2 <String>]
|
||||
[-City <String>] [-Country <String>] [-Culture <String>] [-Email <String>] [-FirstName <String>]
|
||||
[-Language <String>] [-LastName <String>] [-PhoneNumber <String>] [-PostalCode <String>] [-State <String>]
|
||||
|
|
|
@ -14,7 +14,7 @@ Updates a service request at the partner level.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerServiceRequest [-NewNote <String>] [-ServiceRequestId] <String> [-Status <ServiceRequestStatus>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Updates the partner's support profile.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Set-PartnerSupportProfile [-SupportEmail <String>] [-SupportPhoneNumber <String>] [-SupportWebsite <String>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
|
|
@ -14,7 +14,7 @@ Checks out the specified cart.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Submit-PartnerCustomerCart -CartId <String> -CustomerId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ Tests whether or not the specified address is valid.
|
|||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
```powershell
|
||||
Test-PartnerAddress -AddressLine1 <String> [-AddressLine2 <String>] [-City <String>] [-Country <String>]
|
||||
-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
|
||||
|
||||
```
|
||||
```powershell
|
||||
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
|
||||
}
|
||||
}
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче