Initial Commit
Initial commit to the master branch Related work items: #1, #10, #103, #104, #11, #110, #112, #116, #117, #12, #122, #125, #126, #128, #13, #130, #131, #132, #139, #143, #144, #145, #146, #149, #15, #151, #163, #164, #165, #169, #17, #170, #171, #172, #173, #175, #18, #180, #185, #186, #187, #188, #189, #19, #196, #197, #2, #20, #201, #202, #203, #209, #21, #210, #217, #225, #229, #231, #233, #237, #25, #250, #255, #257, #258, #260, #261, #265, #266, #267, #268, #269, #27, #273, #28, #294, #295, #3, #30, #303, #304, #305, #31, #310, #313, #315, #316, #317, #320, #322, #323, #324, #325, #326, #329, #331, #334, #337, #338, #339, #340, #345, #347, #348, #349, #350, #351, #38, #39, #40, #41, #42, #44, #46, #47, #48, #5, #54, #57, #6, #62, #64, #70, #71, #73, #75, #76, #77, #8, #81, #84, #85, #86, #89, #90, #91, #92, #96, #97, #98, #99
This commit is contained in:
Родитель
9b36d34715
Коммит
35df4df4fd
|
@ -0,0 +1,77 @@
|
|||
# To learn more about .editorconfig see https://aka.ms/editorconfigdocs
|
||||
root = true
|
||||
|
||||
# Don't use tabs for indentation.
|
||||
[*]
|
||||
indent_style = space
|
||||
end_of_line = crlf
|
||||
# (Please don't specify an indent_size here; that has too many unintended consequences.)
|
||||
|
||||
# Code files
|
||||
[*.{cs,csx,vb,vbx}]
|
||||
indent_size = 4
|
||||
|
||||
# Xml project files
|
||||
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
|
||||
indent_size = 2
|
||||
|
||||
# Xml config files
|
||||
[*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}]
|
||||
indent_size = 2
|
||||
|
||||
# JSON files
|
||||
[*.json]
|
||||
indent_size = 2
|
||||
|
||||
# Dotnet code style settings:
|
||||
[*.{cs, vb}]
|
||||
# Sort using and Import directives with System.* appearing first
|
||||
dotnet_sort_system_directives_first = true
|
||||
# Avoid "this." and "Me." if not necessary
|
||||
dotnet_style_qualification_for_field = false:suggestion
|
||||
dotnet_style_qualification_for_property = false:suggestion
|
||||
dotnet_style_qualification_for_method = false:suggestion
|
||||
dotnet_style_qualification_for_event = false:suggestion
|
||||
|
||||
# Use language keywords instead of framework type names for type references
|
||||
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
|
||||
dotnet_style_predefined_type_for_member_access = true:suggestion
|
||||
|
||||
# Suggest more modern language features when available
|
||||
dotnet_style_object_initializer = true:suggestion
|
||||
dotnet_style_collection_initializer = true:suggestion
|
||||
dotnet_style_coalesce_expression = true:suggestion
|
||||
dotnet_style_null_propagation = true:suggestion
|
||||
dotnet_style_explicit_tuple_names = true:suggestion
|
||||
|
||||
# CSharp code style settings:
|
||||
[*.cs]
|
||||
# Prefer "var" everywhere
|
||||
csharp_style_var_for_built_in_types = false:suggestion
|
||||
csharp_style_var_when_type_is_apparent = false:suggestion
|
||||
csharp_style_var_elsewhere = false:suggestion
|
||||
|
||||
# Prefer method-like constructs to have a block body
|
||||
csharp_style_expression_bodied_methods = false:none
|
||||
csharp_style_expression_bodied_constructors = false:none
|
||||
csharp_style_expression_bodied_operators = false:none
|
||||
|
||||
# Prefer property-like constructs to have an expression-body
|
||||
csharp_style_expression_bodied_properties = true:none
|
||||
csharp_style_expression_bodied_indexers = true:none
|
||||
csharp_style_expression_bodied_accessors = true:none
|
||||
|
||||
# Suggest more modern language features when available
|
||||
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
|
||||
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
|
||||
csharp_style_inlined_variable_declaration = true:suggestion
|
||||
csharp_style_throw_expression = true:suggestion
|
||||
csharp_style_conditional_delegate_call = true:suggestion
|
||||
|
||||
# Newline settings
|
||||
csharp_new_line_before_open_brace = all
|
||||
csharp_new_line_before_else = true
|
||||
csharp_new_line_before_catch = true
|
||||
csharp_new_line_before_finally = true
|
||||
csharp_new_line_before_members_in_object_initializers = true
|
||||
csharp_new_line_before_members_in_anonymous_types = true
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
|
||||
# Steps to reproduce
|
||||
|
||||
> What steps can reproduce the defect?
|
||||
> Please share the setup, commandline for vstest.console, sample project, target
|
||||
> framework etc.
|
||||
|
||||
## Expected behavior
|
||||
|
||||
> Share the expected output
|
||||
|
||||
## Actual behavior
|
||||
|
||||
> What is the behavior observed?
|
||||
|
||||
## Diagnostic logs
|
||||
|
||||
> Please share test platform diagnostics logs.
|
||||
> The logs may contain test assembly paths, kindly review and mask those before sharing.
|
||||
|
||||
## Environment
|
||||
|
||||
> Please share additional details about your environment.
|
||||
> Version
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
|
||||
---
|
||||
|
||||
# Feature Request
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I am always frustrated when [...]
|
||||
|
||||
**Describe the solution you would like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you have considered**
|
||||
A clear and concise description of any alternative solutions or features you have considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
|
@ -0,0 +1,7 @@
|
|||
# Description
|
||||
|
||||
Please add a meaningful description for this change. Ensure the PR has required unit tests.
|
||||
|
||||
## Related issue
|
||||
|
||||
Kindly link any related issues (e.g. Fixes #xyz).
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE
|
|
@ -0,0 +1,47 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.27130.2036
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AD52517F-3B47-437C-B374-8302533DECBC}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{26039E3A-114C-4B28-87B9-25755134FDD0}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
.editorconfig = .editorconfig
|
||||
.gitignore = .gitignore
|
||||
LICENSE = LICENSE
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{91C9A85A-2792-4EA1-9815-6DEEEFC2C932}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerShell", "src\PowerShell\PowerShell.csproj", "{6714CA29-04A6-4D4E-919C-28AF294E6BA6}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PowerShell.Tests", "test\PowerShell.Tests\PowerShell.Tests.csproj", "{3407AFBC-72DA-491C-816F-2176D2E06DB4}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
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
|
||||
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}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {598D99A1-EECC-4613-AA82-FA1E915D0195}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
100
README.md
100
README.md
|
@ -1,20 +1,88 @@
|
|||
# Introduction
|
||||
TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.
|
||||
# Microsoft Partner Center PowerShell
|
||||
|
||||
# Getting Started
|
||||
TODO: Guide users through getting your code up and running on their own system. In this section you can talk about:
|
||||
1. Installation process
|
||||
2. Software dependencies
|
||||
3. Latest releases
|
||||
4. API references
|
||||
[![Build status](https://partnercenter.visualstudio.com/powershell/_apis/build/status/PowerShell%20master%20CI)](https://partnercenter.visualstudio.com/powershell/_build/latest?definitionId=0)
|
||||
|
||||
# Build and Test
|
||||
TODO: Describe and show how to build your code and run the tests.
|
||||
This repository contains a set of PowerShell cmdlets for developers and administrators to manage Cloud Solution Provider program resources.
|
||||
|
||||
# Contribute
|
||||
TODO: Explain how other users and developers can contribute to make your code better.
|
||||
## Installation
|
||||
|
||||
If you want to learn more about creating good readme files then refer the following [guidelines](https://www.visualstudio.com/en-us/docs/git/create-a-readme). You can also seek inspiration from the below readme files:
|
||||
- [ASP.NET Core](https://github.com/aspnet/Home)
|
||||
- [Visual Studio Code](https://github.com/Microsoft/vscode)
|
||||
- [Chakra Core](https://github.com/Microsoft/ChakraCore)
|
||||
### PowerShell Gallery
|
||||
|
||||
Run the following command in an elevated PowerShell session to install the Partner Center module:
|
||||
|
||||
```powershell
|
||||
Install-Module -Name PartnerCenter
|
||||
```
|
||||
|
||||
If you have an earlier version of the Partner Center PowerShell modules installed from the PowerShell Gallery and would like to update to the latest version, run the following commands from an elevated PowerShell session.
|
||||
|
||||
**Note:** `Update-Module` installs the new version, however it does not remove the old version.
|
||||
|
||||
```powershell
|
||||
# Install the latest version of the Partner Center PowerShell module
|
||||
Update-Module -Name PartnerCenter
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
### Configure Azure AD Native App
|
||||
|
||||
**Important:** This module only supports the app + user authentication.
|
||||
|
||||
You must create and configure an Azure Active Directory (AD) application. To do this, complete the following steps:
|
||||
|
||||
1. Sign in to the [Partner Dashboard](https://partner.microsoft.com) using credentials that have *Admin Agent* and *Global Admin* privileges
|
||||
2. Click on _Dashboard_ at the top of the page, then click on the cog icon in the upper right, and then click the _Partner settings_.
|
||||
3. Add a new native application if one does not exist already.
|
||||
4. Sign in to the [Azure management portal](https://portal.azure.com) using the same credentials from step 1.
|
||||
5. Click on the _Azure Active Directory_ icon in the toolbar.
|
||||
6. Click _App registrations_ -> Select _All apps_ from the drop down -> Click on the application created in step 3.
|
||||
7. Click _Settings_ and then click _Redirect URIs_
|
||||
8. Add **urn:ietf:wg:oauth:2.0:oob** as one of the available Redirect URIs. Be sure to click the _Save_ button to ensure the changes are saved.
|
||||
|
||||
### Log in to Partner Center
|
||||
|
||||
To connect to Partner Center, use the [`Connect-PartnerCenter`](docs/help/Connect-PartnerCenter.md) cmdlet.
|
||||
|
||||
```powershell
|
||||
# Interactive login - a dialog box will appear for you to provide your Partner Center credentials
|
||||
Connect-PartnerCenter -ApplicationId '<Native-AAD-AppId-for-PartnerCenter>'
|
||||
|
||||
# Non-interactive login
|
||||
$PSCredential = Get-Credential
|
||||
Connect-PartnerCenter -ApplicationId '<Native-AAD-AppId-for-PartnerCenter>' -Credential $PSCredential
|
||||
```
|
||||
|
||||
To log into a specific cloud (_ChinaCloud_, _GlobalCloud_, _GermanCloud_, _USGovernment_), use the `Environment` parameter:
|
||||
|
||||
```powershell
|
||||
# Log into a specific cloud - in this case, the German cloud
|
||||
Connect-PartnerCenter -Environment GermanCloud
|
||||
```
|
||||
|
||||
### Discovering cmdlets
|
||||
|
||||
Use the `Get-Command` cmdlet to discover cmdlets within a specific module, or cmdlets that follow a specific search pattern:
|
||||
|
||||
```powershell
|
||||
# View all cmdlets in the PartnerCenter module
|
||||
Get-Command -Module PartnerCenter
|
||||
|
||||
# View all cmdlets that contain "Customer" in the PartnerCenter module
|
||||
Get-Command -Module PartnerCenter -Name "*Customer*"
|
||||
```
|
||||
|
||||
### Cmdlet help and examples
|
||||
|
||||
To view the cmdlet help content, use the `Get-Help` cmdlet:
|
||||
|
||||
```powershell
|
||||
# View the basic help content for Get-PartnerCustomer
|
||||
Get-Help -Name Get-PartnerCustomer
|
||||
|
||||
# View the examples for Get-PartnerCustomer
|
||||
Get-Help -Name Get-PartnerCustomer -Examples
|
||||
|
||||
# View the full help content for Get-PartnerCustomer
|
||||
Get-Help -Name Get-PartnerCustomer -Full
|
||||
```
|
|
@ -0,0 +1,22 @@
|
|||
# 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`
|
|
@ -0,0 +1,43 @@
|
|||
# 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.
|
|
@ -0,0 +1,115 @@
|
|||
# Microsoft Partner Center PowerShell Help Generation
|
||||
|
||||
## Description
|
||||
|
||||
Help files are generated and maintained using the [`platyPS`](https://github.com/PowerShell/platyPS) module. When the help content for a cmdlet (or multiple cmdlets) needs to be updated, users will now only have to update the contents of the markdown file, _and not the MAML file as well_.
|
||||
|
||||
## Installing `platyPS`
|
||||
|
||||
In order to use the cmdlets necessary to update the markdown help files (or generate MAML help locally from these markdown files), you must first install the `platyPS` module mentioned previously.
|
||||
|
||||
To do so, you can can follow the below steps (which are outlined in the [**Quick start**](https://github.com/PowerShell/platyPS#quick-start) section of the `platyPS` README):
|
||||
|
||||
```powershell
|
||||
Install-Module -Name platyPS -Scope CurrentUser
|
||||
Import-Module platyPS
|
||||
```
|
||||
|
||||
**Note:** this module will need to be installed from the [PowerShell Gallery](http://www.powershellgallery.com/). If, for some reason, this isn't a registered repository when running the `Get-PSRepository` cmdlet, then you will need to register it by running the following command:
|
||||
|
||||
```powershell
|
||||
Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/
|
||||
```
|
||||
|
||||
## Using `platyPS`
|
||||
|
||||
### Importing your module
|
||||
|
||||
Before you run the `platyPS` cmdlets to update your markdown help files, you will need to first import the module containing the changes that you have made to your cmdlets into your current PowerShell session. Once you have built your project (either through Visual Studio or with `msbuild`), you can locate the `PartnerCenter.psd1` module manifest in the `src\PowerShell\bin\Debug` folder of your local repository.
|
||||
|
||||
You can import it in your current PowerShell session by running the following command:
|
||||
|
||||
```powershell
|
||||
$PathToModuleManifest = ".\src\PowerShell\bin\Debug\PartnerCenter.psd1"
|
||||
Import-Module -Name $PathToModuleManifest
|
||||
```
|
||||
|
||||
**Note**: if you do not see all of the changes you made to the cmdlets in your markdown files (_e.g.,_ a cmdlet you deleted is still appearing), you may need to delete any existing Partner Center PowerShell modules that you have on your machine (installed either through the PowerShell Gallery or by Web Platform Installer) before you import your module.
|
||||
|
||||
### Creating a help file for a new cmdlet
|
||||
|
||||
To create the appropriate help file for a new cmdlet, use the [`New-MarkdownHelp`](https://github.com/PowerShell/platyPS/blob/master/docs/New-MarkdownHelp.md) cmdlet:
|
||||
|
||||
```powershell
|
||||
$PathToModuleManifest = ".\src\PowerShell\bin\Debug\PartnerCenter.psd1" # Full path to the module manifest that you have updated
|
||||
Import-Module -Name $PathToModuleManifest
|
||||
|
||||
$PathToHelpFolder = ".\docs\help\" # Full path to help folder containing markdown files to be updated
|
||||
$CmdletName = "<cmdlet>" # Name of cmdlet
|
||||
New-MarkdownHelp -Command $CmdletName -OutputFolder $PathToHelpFolder -AlphabeticParamsOrder
|
||||
```
|
||||
|
||||
### Updating help after making cmdlet changes
|
||||
|
||||
Whenever the public interface for a cmdlet has changed, the corresponding markdown file for that cmdlet will need to be updated to reflect the changes. Public interface changes include the following:
|
||||
|
||||
- Add/change/remove parameter set
|
||||
- Add/remove parameter
|
||||
- Change attribute of a parameter
|
||||
- Type
|
||||
- Parameter set(s)
|
||||
- Aliases
|
||||
- Mandatory
|
||||
- Position
|
||||
- Accept pipeline input
|
||||
- Add/change output type
|
||||
|
||||
#### Updating all markdown files in a module
|
||||
|
||||
To update all of the markdown files for a single module, use the [`Update-MarkdownHelpModule`](https://github.com/PowerShell/platyPS/blob/master/docs/Update-MarkdownHelpModule.md) cmdlet:
|
||||
|
||||
```powershell
|
||||
$PathToModuleManifest = ".\src\PowerShell\bin\Debug\PartnerCenter.psd1" # Full path to the module manifest that you have updated
|
||||
Import-Module -Name $PathToModuleManifest
|
||||
|
||||
$PathToHelpFolder = ".\docs\help\" # Full path to help folder containing markdown files to be updated
|
||||
Update-MarkdownHelpModule -Path $PathToHelpFolder -RefreshModulePage -AlphabeticParamsOrder
|
||||
```
|
||||
|
||||
This will update all of the markdown files with public interface changes made to corresponding cmdlets, add markdown files for any new cmdlets, remove markdown files for any deleted cmdlets, and update the module page with any added or removed cmdlets.
|
||||
|
||||
#### Updating a single markdown file
|
||||
|
||||
To update a single markdown file with the changes made to the corresponding cmdlet, use the [`Update-MarkdownHelp`](https://github.com/PowerShell/platyPS/blob/master/docs/Update-MarkdownHelp.md) cmdlet:
|
||||
|
||||
```powershell
|
||||
$PathToModuleManifest = ".\src\PowerShell\bin\Debug\PartnerCenter.psd1" # Full path to the module manifest that you have updated
|
||||
Import-Module -Name $PathToModuleManifest
|
||||
|
||||
$PathToMarkdownFile = "../../<cmdlet>.md" # Full path to the markdown file to be updated
|
||||
Update-MarkdownHelp -Path $PathToMarkdownFile -AlphabeticParamsOrder
|
||||
```
|
||||
|
||||
#### Generating and viewing the MAML help
|
||||
|
||||
During the build, the MAML help will be generated from the markdown files in the repository. If you would like to generate the MAML help and preview what the help content will look like for each of your cmdlets, you can do so with two more commands.
|
||||
|
||||
To generate the MAML help based on the contents of your markdown files, use the [`New-ExternalHelp`](https://github.com/PowerShell/platyPS/blob/master/docs/New-ExternalHelp.md) cmdlet:
|
||||
|
||||
```powershell
|
||||
$PathToHelpFolder = ".\docs\help\" # Full path to help folder containing markdown files to be updated
|
||||
$PathToOutputFolder = ".\src\PowerShell\bin\Debug\" # Full path to folder where you want the MAML file to be generated
|
||||
New-ExternalHelp -Path $PathToHelpFolder -OutputPath $PathToOutputFolder
|
||||
```
|
||||
|
||||
To preview the help that you just generated, use the [`Get-HelpPreview`](https://github.com/PowerShell/platyPS/blob/master/docs/Get-HelpPreview.md) cmdlet:
|
||||
|
||||
```powershell
|
||||
$PathToMAML = ".\src\PowerShell\bin\Debug\Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml" # Full path to the MAML file that was generated
|
||||
|
||||
# Save the help locally
|
||||
$help = Get-HelpPreview -Path $PathToMAML
|
||||
|
||||
# Get the help for a specific cmdlet
|
||||
$help | where { $_.Name -eq "<cmdlet>" }
|
||||
```
|
|
@ -0,0 +1,124 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Add-PartnerCustomerCartLineItem
|
||||
|
||||
## SYNOPSIS
|
||||
Adds a new line item to the specified cart.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Add-PartnerCustomerCartLineItem -CartId <String> -CustomerId <String> -LineItem <PSCartLineItem> [-WhatIf]
|
||||
[-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Adds a new line item to the specified cart.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> $lineItem = New-PartnerCustomerCartLineItem -BillingCycle 'OneTime' -CatalogItemId 'DG7GMGF0DWTL:0001:DG7GMGF0DSJB' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -FriendlyName 'Sample RI Purchase' -ProvisioningContext ${duration='1Year', scope='shared', subscriptionId='b35d5324-df8e-4306-9023-6edac2d4896c'} -Quantity 10
|
||||
PS C:\> Add-PartnerCustomerCartLineItem -CartId '65faf57b-0205-47ee-92b3-08dcf233ea73' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LineItem $lineItem
|
||||
```
|
||||
|
||||
Adds a new line item to the specified cart.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CartId
|
||||
The identifier for the cart.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LineItem
|
||||
The line item to be added.
|
||||
|
||||
```yaml
|
||||
Type: PSCartLineItem
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCart
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,92 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Add-PartnerCustomerUserRoleMember
|
||||
|
||||
## SYNOPSIS
|
||||
Adds a customer user to a specified role.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Add-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Add-PartnerCustomerUserRoleMember cmdlet adds a specified role to the target customer user.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Add-PartnerCustomerUserRoleMember -CustomerId c4f6bf3c-60de-432e-a3ec-20bcc5b26ec2 -UserId 17765f05-723c-4be4-89e2-c7d1cdbb0906 -RoleId 62e90394-69f5-4237-9190-012177145e10
|
||||
```
|
||||
|
||||
Adds the specified user with the identifier of 17765f05-723c-4be4-89e2-c7d1cdbb0906 to the role with the identifier of 62e90394-69f5-4237-9190-012177145e10.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -RoleId
|
||||
Identifier for the role.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
Identifier for the customer user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,103 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Connect-PartnerCenter
|
||||
|
||||
## SYNOPSIS
|
||||
Connect to Partner Center with an authenticated account for use with cmdlet requests.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Connect-PartnerCenter -ApplicationId <String> [-Credential <PSCredential>] [-Environment <EnvironmentName>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Connect-PartnerCenter cmdlet connects to Partner Center with an authenticated account for use with cmdlet requests
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Connect-PartnerCenter -ApplicationId c4d99f39-a917-4d70-8fdb-0ad839ac0524
|
||||
```
|
||||
|
||||
Connect to Partner Center using the specified application identifier during authentication.
|
||||
|
||||
### Example 2
|
||||
|
||||
```powershell
|
||||
PS C:\> $cred = Get-Credential
|
||||
PS C:\> Connect-PartnerCenter -ApplicationId c4d99f39-a917-4d70-8fdb-0ad839ac0524 -Credential $cred
|
||||
```
|
||||
|
||||
Connect to Partner Center using the specified application identifier during authentication.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -ApplicationId
|
||||
The application identifier used to access the Partner Center API.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Credential
|
||||
User credentials to be used when connecting to Partner Center.
|
||||
|
||||
```yaml
|
||||
Type: PSCredential
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Environment
|
||||
Name of the environment containing the account to log into
|
||||
|
||||
```yaml
|
||||
Type: EnvironmentName
|
||||
Parameter Sets: (All)
|
||||
Aliases: EnvironmentName
|
||||
Accepted values: GlobalCloud, ChinaCloud, GermanCloud, USGovernment
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Authentication.PartnerContext
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerAgreementDetail
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the agreement metadata for the Microsoft Cloud Agreement.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerAgreementDetail [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Retrieves agreement metadata for the Microsoft Cloud Agreement. This operation is currently supported by Partner Center in the Microsoft public cloud only.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerAgreementDetail
|
||||
```
|
||||
|
||||
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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Agreements.PSAgreementMetaData
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,76 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerAuditRecord
|
||||
|
||||
## SYNOPSIS
|
||||
Retrieves audit records from Partner Center.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerAuditRecord [-EndDate <DateTime>] [-StartDate <DateTime>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Retrieves audit records for the previous 30 days from the current date, or for a date range specified by including the start date and/or the end date. Note, however, that for performance reasons activity log data availability is limited to the previous 90 days.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerAuditRecord -Start (Get-Date).AddDays(-89)
|
||||
```
|
||||
|
||||
Gets the audit records from Partner Center for the past 89 days.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -EndDate
|
||||
The end date of the audit record logs.
|
||||
|
||||
```yaml
|
||||
Type: DateTime
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -StartDate
|
||||
The start date of the audit record logs.
|
||||
|
||||
```yaml
|
||||
Type: DateTime
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Auditing.PSAuditRecord
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,100 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerAzureRateCard
|
||||
|
||||
## SYNOPSIS
|
||||
Gets real-time prices for an Azure offer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerAzureRateCard [-Currency <String>] [-Region <String>] [-SharedServices] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets real-time prices for an Azure offer. Azure pricing is quite dynamic and changes frequently.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> $rateCard = Get-PartnerAzureRateCard
|
||||
PS C:\> $rateCard.Meters
|
||||
```
|
||||
|
||||
Gets real-time prices for an Azure offer.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> $rateCard = Get-PartnerAzureRateCard -SharedServices
|
||||
PS C:\> $rateCard.Meters
|
||||
```
|
||||
|
||||
Gets real-time prices for an Azure offer available through Azure Partner Shared Services (APSS).
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -Currency
|
||||
An optional three letter ISO code for the currency in which the resource rates will be provided.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Region
|
||||
An optional two-letter ISO country/region code that indicates the market where the offer is purchased.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SharedServices
|
||||
Flag indicating whether or not to retrieve the Azure Rate Card for Azure Partner Shared Services (APSS).
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.RateCards.PSAzureRateCard
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerBillingProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the partner's billing profile.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerBillingProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the partner's billing profile.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerBillingProfile
|
||||
```
|
||||
|
||||
Gets the partner's billing profile.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSBillingProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,62 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCountryValidation
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the rules for validating an address for a specific country.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCountryValidation -CountryCode <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the rules for validating an address for a specific country.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCountryValidation -CountryCode US
|
||||
```
|
||||
|
||||
Gets the rules for validating an address for the United States.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CountryCode
|
||||
The country code code in ISO2 format.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CountryValidationRules.PSCountryValidationRules
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomer
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a specific customer or a list of available customers.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomer [[-CustomerId] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Get-PartnerCustomer cmdlet gets a specific customer or a list of customers from Partner Center.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomer
|
||||
```
|
||||
|
||||
Gets a list of all available customers from Partner Center.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomer -CustomerId '2ca7de6c-c05c-46b5-b689-32e53573a97a'
|
||||
```
|
||||
|
||||
Gets the customer with the identifier of 2ca7de6c-c05c-46b5-b689-32e53573a97a from Partner Center.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Customers.PSCustomer
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,61 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerAgreement
|
||||
|
||||
## SYNOPSIS
|
||||
Retrieves confirmation of customer acceptance provided previously.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerAgreement -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Retrieves confirmation of customer acceptance provided previously. This operation is currently supported by Partner Center in the Microsoft public cloud only.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerAgreement -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'
|
||||
```
|
||||
|
||||
Retrieves confirmation of customer acceptance provided previously.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Agreements.PSAgreement
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,76 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerCart
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a specific cart for the specified partner.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerCart -CartId <String> -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Get-PartnerCustomerCart cmdlet will get a specific cart for the specified partner.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerCart -CartId 'b4c8fdea-cbe4-4d17-9576-13fcacbf9605' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'
|
||||
```
|
||||
|
||||
Gets the cart with the identifier of b4c8fdea-cbe4-4d17-9576-13fcacbf9605 that belongs to the customer with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CartId
|
||||
The identifier for the cart.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCart
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,76 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerConfigurationPolicy
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of all of a customer's policies.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerConfigurationPolicy [-CustomerId] <String> [-PolicyId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list of all of a customer's policies.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerConfigurationPolicy -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'
|
||||
```
|
||||
|
||||
Gets a list of all of a customer's policies.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PolicyId
|
||||
Identifier for the configuration policy.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.PSConfigurationPolicy
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,77 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerDevice
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of devices in the specified device batch for the specified customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerDevice [-CustomerId] <String> -BatchId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list of devices in the specified device batch for the specified customer. Each device resource contains details about the device.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerDevice -CustomerId <Customer ID> -BatchId <Batch ID>
|
||||
```
|
||||
|
||||
This example returns a list of devices in the specified device batch for the specified customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -BatchId
|
||||
Identifier for the device batch.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.DevicesDeployment.PSDevice
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,62 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerDeviceBatch
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of device batches for the specified customer identifier.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerDeviceBatch [-CustomerId] <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list of device batches for the specified customer identifier.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerDeviceBatch -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'
|
||||
```
|
||||
|
||||
Gets a list of device batches for the specified customer identifier.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.DevicesDeployment.PSDeviceBatch
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,78 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerEntitlement
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a collection of entitlements.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerEntitlement -CustomerId <String> [-OrderId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
An entitlement represents the customer's right to use a product (service). It should be consumed by service providers as the source of truth regarding the customer's right to a service. The entitlement state changes based on information received from a variety of sources, for example, subscription events. A customer may stop paying, upgrade, etc, which results in changes to the entitlement fraud. The Commerce platform may rescind an entitlement due to fraud.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerEntitlements -CustomerId c4f6bf3c-60de-432e-a3ec-20bcc5b26ec2
|
||||
```
|
||||
|
||||
Return customer entitlements based on customer identifier.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OrderId
|
||||
Identifier for the order.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Entitlements.PSEntitlement
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
||||
|
||||
<https://msdn.microsoft.com/en-us/library/partnercenter/mt774567.aspx>
|
|
@ -0,0 +1,98 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerLicense
|
||||
|
||||
## SYNOPSIS
|
||||
Get a list of licenses available for a customer that are assigned or can be assigned to a user.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByCustomerId (Default)
|
||||
```
|
||||
Get-PartnerCustomerLicense -CustomerId <String> [-LicenseGroupId <LicenseGroupId>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUserId
|
||||
```
|
||||
Get-PartnerCustomerLicense -CustomerId <String> [-UserId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Get-PartnerCustomerLicense cmdlet returns a list of subscribed skus (licenses) that a customer has subscribed to and can be filtered by a LicenseGroupId (Group1: License group for AAD, Group2: License group for Minecraft, None: Both AAD and minecraft skus). Alternatively, you can get a list of licenses assigned to a specific user by specifying the user id.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerLicense -CustomerId c4f6bf3c-60de-432e-a3ec-20bcc5b26ec2
|
||||
```
|
||||
|
||||
Return a list a available licenses for the specified customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LicenseGroupId
|
||||
The identifier for the license group.
|
||||
|
||||
```yaml
|
||||
Type: LicenseGroupId
|
||||
Parameter Sets: ByCustomerId
|
||||
Aliases:
|
||||
Accepted values: None, Group1, Group2
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
The identifier for the user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByUserId
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Licenses.PSSubscribedSku
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,61 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerLicenseDeploymentInfo
|
||||
|
||||
## SYNOPSIS
|
||||
Gets aggregated data on deployment for a specified customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerLicenseDeploymentInfo -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets aggregated data on deployment for a specified customer.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerLicenseDeploymentInfo -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08
|
||||
```
|
||||
|
||||
Gets aggregated data on deployment for the customer with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Analytics.PSCustomerLicensesDeploymentInsights
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,83 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerManagedService
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the managed services for a customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerManagedService [-CustomerId] <String> [-ManagedServiceId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the managed services for a customer. In other words, get links to all of the customer's subscriptions for which you have delegated admin privileges. You can use these links to provide support and file service requests with Microsoft.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerManagedService 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08
|
||||
```
|
||||
|
||||
Gets the managed services for the customer with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerManagedService -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -ManagedServiceId Exchange
|
||||
```
|
||||
|
||||
Gets the Exchange managed services for the customer with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ManagedServiceId
|
||||
A string that identifies the managed service.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.ManagedServices.PSManagedService
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,110 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerOrder
|
||||
|
||||
## SYNOPSIS
|
||||
Gets either a specific order or a list of order for the specified customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByCustomerId
|
||||
```
|
||||
Get-PartnerCustomerOrder -CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByOrderId
|
||||
```
|
||||
Get-PartnerCustomerOrder -CustomerId <String> -OrderId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByBillingCycle
|
||||
```
|
||||
Get-PartnerCustomerOrder -CustomerId <String> -BillingCycle <BillingCycleType> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets either a specific order or a list of order for the specified customer.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerOrder -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -BillingCycleType Monthly
|
||||
```
|
||||
|
||||
Gets the list of orders with a billing cycle type of monthly for the specified customer.
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerOrder -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08
|
||||
```
|
||||
|
||||
Gets the list of orders for the specified customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -BillingCycle
|
||||
Indicates the type of billing cycle.
|
||||
|
||||
```yaml
|
||||
Type: BillingCycleType
|
||||
Parameter Sets: ByBillingCycle
|
||||
Aliases:
|
||||
Accepted values: Annual, Monthly, None, OneTime, Unknown
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OrderId
|
||||
Identifier for the order.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByOrderId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Orders.PSOrder
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,104 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerSubscription
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list or a single customer subscription.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### Customer (Default)
|
||||
```
|
||||
Get-PartnerCustomerSubscription -CustomerId <String> [-SubscriptionId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### CustomerObject
|
||||
```
|
||||
Get-PartnerCustomerSubscription -InputObject <PSCustomer> [-SubscriptionId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list or a single customer subscription.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerSubscription -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08
|
||||
```
|
||||
|
||||
Gets a list of subscriptions for the specified customer.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerSubscription -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -SubscriptionId a2138cdf-769e-45d3-b957-ae9864b82bf6
|
||||
```
|
||||
|
||||
Gets the specified customer subscription.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The customer identifier used to scope the request.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: Customer
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -InputObject
|
||||
The customer object used to scope the request.
|
||||
|
||||
```yaml
|
||||
Type: PSCustomer
|
||||
Parameter Sets: CustomerObject
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: True (ByValue)
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The subscription identifier used to scope the request.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Customers.PSCustomer
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Subscriptions.PSSubscription
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,78 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerSubscriptionProvisioningStatus
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the provisioning status for the specified subscription.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerSubscriptionProvisioningStatus -CustomerId <String> -SubscriptionId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the provisioning status for the specified subscription.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerSubscriptionProvisioningStatus -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -SubscriptionId 9fccd1b5-ffc4-4e63-ba13-4689776c020e
|
||||
```
|
||||
|
||||
Gets the provisioning status for the specified subscription.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The identifier of the subscription.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Subscriptions.PSSubscriptionProvisioningStatus
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,77 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerSubscriptionRegistrationStatus
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the subscription registration status.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerSubscriptionRegistrationStatus -CustomerId <String> -SubscriptionId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
To purchase an Azure Reserved VM Instance using the Partner Center API, you must have at least one existing CSP Azure subscription. This cmdlet will get the registration status of the specified subscription.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerSubscriptionRegistrationStatus -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -SubscriptionId 9fccd1b5-ffc4-4e63-ba13-4689776c020e
|
||||
```
|
||||
|
||||
Get the registration status for the specified subscription.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The identifier of the subscription.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Subscriptions.PSSubscriptionRegistrationStatus
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,76 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerSubscriptionUpgrades
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the available upgrade offers for the specified subscription.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerSubscriptionUpgrades -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the available upgrade offers for the specified subscription.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerSubscriptionUpgrades -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -SubscriptionId 'b2f26801-2849-4fb1-8815-ad5fcd81143d'
|
||||
```
|
||||
|
||||
Gets the available upgrade offers for the specified subscription.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The identifier of the subscription.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CustomerSubscriptionUpgrades.PSCustomerSubscriptionUpgrades
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,143 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerSubscriptionUtilization
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the utilization of a customer's Azure subscription.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerSubscriptionUtilization -CustomerId <String> [-EndDate <DateTimeOffset>]
|
||||
[-Granularity <AzureUtilizationGranularity>] [-ShowDetails] -StartDate <DateTimeOffset>
|
||||
-SubscriptionId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the utilization of a customer's Azure subscription with a daily or hourly granularity.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerSubscriptionUtilization -CustomerId <Customer ID> -SubscriptionId <Subscription ID> -StartDate (Get-Date).AddDays(-2).ToUniversalTime() -Granularity Hourly -ShowDetails
|
||||
```
|
||||
|
||||
Gets a customer's Azure utilization for a specific subscription from a start date (specified in UTC) with an hourly granularity.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -EndDate
|
||||
The end date (in UTC) of the usages to filter.
|
||||
|
||||
```yaml
|
||||
Type: DateTimeOffset
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Granularity
|
||||
|
||||
The resource usage time granularity.
|
||||
Can either be daily or hourly.
|
||||
The default value is daily
|
||||
|
||||
```yaml
|
||||
Type: AzureUtilizationGranularity
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
Accepted values: Daily, Hourly
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ShowDetails
|
||||
Flag indicating whether or not utilization records will be aggregated on the resource level
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -StartDate
|
||||
The start date (in UTC) of the usages to filter.
|
||||
|
||||
```yaml
|
||||
Type: DateTimeOffset
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The identifier of subscription.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Utilizations.PSAzureUtilizationRecord
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,76 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerTrialConversion
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of trial conversions available for the specified subscription.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerTrialConversion -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list of trial conversions available for the specified subscription.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerTrialConversion -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -SubscriptionId 4eaffa18-12f6-441e-b16d-cc9f4a90cfb8
|
||||
```
|
||||
|
||||
Gets a list of trial conversions available for the specified subscription.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The identifier for the subscription.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CustomerTrialConversion.PSCustomerTrialConversion
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,131 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerUser
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of all customer users or a specified user for the tenant.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByCustomerId (Default)
|
||||
```
|
||||
Get-PartnerCustomerUser [-CustomerId] <String> [-ReturnDeletedUsers] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUserId
|
||||
```
|
||||
Get-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUpn
|
||||
```
|
||||
Get-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Get-PartnerCustomerUser cmdlet returns either a list of customer users based on the specified customer identifier, or it returns a specific user based on the specified user identifier or user principal name.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerUser -CustomerId 45916f92-e9c3-4ed2-b8c2-d87aa129905f
|
||||
```
|
||||
|
||||
Gets a list of all active users for the specified customer identifier.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerUser -CustomerId 45916f92-e9c3-4ed2-b8c2-d87aa129905f -UserId e2e56b09-aac5-4685-947d-29e735ee7ed7
|
||||
```
|
||||
|
||||
Gets information for the specified user.
|
||||
|
||||
### Example 3
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerUser -CustomerId 45916f92-e9c3-4ed2-b8c2-d87aa129905f -ReturnDeletedUsers
|
||||
```
|
||||
|
||||
Gets a list of all deleted users for the specific customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ReturnDeletedUsers
|
||||
Specifies whether to show deleted users.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: ByCustomerId
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
The identifier for the user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByUserId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserPrincipalName
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByUpn
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CustomerUsers.PSCustomerUser
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,83 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerCustomerUserRole
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of directory roles for a customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerCustomerUserRole -CustomerId <String> [-UserId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list of directory roles for a customer.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerUserRole -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'
|
||||
```
|
||||
|
||||
Gets a list of directory roles for a customer.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerCustomerUserRole -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -UserId '8e873002-9c5e-4cb5-928a-cbc14f51c398'
|
||||
```
|
||||
|
||||
Gets a list of directory roles assigned to the specified user.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
Identifier for the user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.DirectoryRoles.PSDirectoryRole
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerIndirectReseller
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of indirect resellers.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerIndirectReseller [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list of indirect resellers.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerIndirectReseller
|
||||
```
|
||||
|
||||
Gets a list of indirect resellers.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Relationships.PSPartnerRelationship
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,69 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerInvoice
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of invoices available to the partner.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerInvoice [-InvoiceId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
Gets a specific invoice or all invoices for the authenticated partner.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerInvoice -InvoiceID 'G000024135'
|
||||
```
|
||||
|
||||
Gets a specific invoice based for the specified invoice.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerInvoice
|
||||
```
|
||||
|
||||
Gets a list of invoices available to the partner.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -InvoiceId
|
||||
The identifier for the invoice.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices.PSInvoice
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,90 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerInvoiceStatement
|
||||
|
||||
## SYNOPSIS
|
||||
Retrieves an invoice statement using the invoice identifier.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerInvoiceStatement -InvoiceId <String> [-OutputPath <String>] [-Overwrite] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Retrieves an invoice statement using the invoice identifier and writes it to the specified path.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerInvoiceStatement -InvoiceId G000024135 -OutputPath 'C:\Invoices\'
|
||||
```
|
||||
|
||||
Downloads the invoice statement associated with the invoice with the identifier of G000024135.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -InvoiceId
|
||||
The invoice id of the statement to retrieve.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OutputPath
|
||||
The output path of the PDF statement file.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Overwrite
|
||||
A flag indiciating whether or to overwrite the file if it exists.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Object
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerInvoiceSummary
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a summary view of the invoice.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerInvoiceSummary [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets an invoice summary that shows the balance and total charges of both recurring and one-time charges.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerInvoiceSummary
|
||||
```
|
||||
|
||||
Gets a summary view of the invoice.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices.PSInvoiceSummary
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerLegalProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the partner legal business profile from Partner Center.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerLegalProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Get-PartnerLegalProfile cmdlet gets the partner legal business profile from Partner Center.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerLegalProfile
|
||||
```
|
||||
|
||||
Gets the partner legal business profile from Partner Center.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSLegalBusinessProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerLicenseDeploymentInfo
|
||||
|
||||
## SYNOPSIS
|
||||
Retrieves aggregated data on licenses deployment
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerLicenseDeploymentInfo [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Retrieve aggregated data on licenses deployment for all customers.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerLicenseDeploymentInfo
|
||||
```
|
||||
|
||||
Retrieve aggregated data on licenses deployment for all customers.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Analytics.PSPartnerLicensesDeploymentInsight
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerLicenseUsageInfo
|
||||
|
||||
## SYNOPSIS
|
||||
Retrieves aggregated data on licenses deployment
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerLicenseUsageInfo [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Retrieves aggregated data on licenses deployment for all customers.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerLicenseUsageInfo
|
||||
```
|
||||
|
||||
Retrieves aggregated data on licenses deployment for all customers.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Analytics.PSPartnerLicensesUsageInsight
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,137 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerOffer
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a specific offer or a list of available offers from Partner Center.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerOffer [-AddOn] [-Category <String>] [-CountryCode <String>] [-OfferId <String>] [-Trial]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
The Get-PartnerOffer cmdlet with retrieve a specific offer or a list of offers by market from Partner Center.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerOffer -Country US
|
||||
```
|
||||
|
||||
Gets a list of available offers for the US market.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerOffer -Country US -Category SmallBusiness_Key
|
||||
```
|
||||
|
||||
Gets a list of offers that matches the corresponding category for the US market.
|
||||
|
||||
### Example 3
|
||||
```powershell
|
||||
PS C:\> Get-PartnerOffer -Country US -OfferId '031C9E47-4802-4248-838E-778FB1D2CC05'
|
||||
```
|
||||
|
||||
Gets the offer that matches the corresponding identifier for the US market.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AddOn
|
||||
Scope returned offers to only add-ons.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Category
|
||||
Category that corresponds to the offers.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CountryCode
|
||||
The country ISO2 code.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OfferId
|
||||
A GUID that corresponds to the offer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Trial
|
||||
Scope returned offers to only trials.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Offers.PSOffer
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,76 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerOfferAddon
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the add-ons for an offer by identifier.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerOfferAddon [-CountryCode <String>] [-OfferId] <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the add-ons for an offer by country and offer identifier.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerOffAddon -OfferId 031C9E47-4802-4248-838E-778FB1D2CC05
|
||||
```
|
||||
|
||||
Gets the add-ons for the the specified offer. If the country code is not specified it will default to the country code associated with the partner's legal business profile.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CountryCode
|
||||
The country code in ISO2 format.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OfferId
|
||||
A GUID that corresponds to the offer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Offers.PSOffer
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerOrganizationProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the partner organization profile from Partner Center.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerOrganizationProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Get-PartnerOrganizationProfile cmdlet gets the partner organization profile from Partner Center.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerOrganizationProfile
|
||||
```
|
||||
|
||||
Gets the partner organization profile from Partner Center.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSOrganizationProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,114 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerProduct
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list or a single product.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByCatalog (Default)
|
||||
```
|
||||
Get-PartnerProduct [-CountryCode <String>] -Catalog <String> [-Segment <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByProductId
|
||||
```
|
||||
Get-PartnerProduct [-CountryCode <String>] -ProductId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list or a single product.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerProduct -Catalog 'Azure' -Segment 'commercial'
|
||||
```
|
||||
|
||||
Gets a list of products scoped to the Azure target view and commercial segment.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -Catalog
|
||||
A string that the product catalog.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByCatalog
|
||||
Aliases:
|
||||
Accepted values: Azure, OnlineServices, Software
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CountryCode
|
||||
The country ISO2 code.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ProductId
|
||||
A string that identifies the product.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByProductId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Segment
|
||||
A string that the product segment.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByCatalog
|
||||
Aliases:
|
||||
Accepted values: commercial, education, government, nonprofit
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Products.PSProduct
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,130 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerProductAvailability
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the availability for a specified product.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### BySku (Default)
|
||||
```
|
||||
Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>] [-Segment <String>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByAvailabilityId
|
||||
```
|
||||
Get-PartnerProductAvailability -ProductId <String> -SkuId <String> [-CountryCode <String>]
|
||||
-AvailabilityId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the availability for a specified product.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerProductAvailability -Product DZH318Z0BQ3Q -SkuId 0001
|
||||
```
|
||||
|
||||
Gets the availability for a specified product.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AvailabilityId
|
||||
A string that identifies the availability.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByAvailabilityId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CountryCode
|
||||
The country ISO2 code.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ProductId
|
||||
A string that identifies the product.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Segment
|
||||
A string that identifies the product segment.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: BySku
|
||||
Aliases:
|
||||
Accepted values: commercial, education, government, nonprofit
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkuId
|
||||
A string that identifies the product Sku.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Products.PSProductAvailability
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,108 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerProductInventory
|
||||
|
||||
## SYNOPSIS
|
||||
Checks the inventory for the specified product.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerProductInventory [-CountryCode <String>] -ProductId <String> [-SkuId <String>]
|
||||
[-Variables <Hashtable>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Checks the inventory for the specified product.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> $variables = @{ customerId='46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'; azureSubscriptionId='f5edca90-8799-44bd-ac59-64bd93285ed1'; armRegionName='uswest' }
|
||||
PS C:\> Get-PartnerProductInventory -ProductId 'DZH318Z0BQ3P' -Variables $variables
|
||||
```
|
||||
|
||||
Checks the inventory for the specified product.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CountryCode
|
||||
The country ISO2 code.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ProductId
|
||||
A string that identifies the product.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkuId
|
||||
A string that identifies the sku.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Variables
|
||||
A hashtable of inventory variables for the product.
|
||||
|
||||
```yaml
|
||||
Type: Hashtable
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Products.PSInventoryItem
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,118 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerProductSKU
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the list of SKUs for a product.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByProductId (Default)
|
||||
```
|
||||
Get-PartnerProductSKU [-CountryCode <String>] -ProductId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### BySkuId
|
||||
```
|
||||
Get-PartnerProductSKU [-CountryCode <String>] -ProductId <String> -SkuId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### BySegment
|
||||
```
|
||||
Get-PartnerProductSKU [-CountryCode <String>] -ProductId <String> [-Segment <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the list of SKUs for a specified product.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerProductSku -ProductId 'DZH318Z0BQ5S'
|
||||
```
|
||||
|
||||
Gets the available SKUs for the product with the identifier of DZH318Z0BQ5S.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CountryCode
|
||||
The country ISO2 code.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ProductId
|
||||
A string that identifies the product.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Segment
|
||||
A string that the product segment.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: BySegment
|
||||
Aliases:
|
||||
Accepted values: commercial, education, government, nonprofit
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkuId
|
||||
A string that identifies the sku.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: BySkuId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Products.PSSku
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerResellerRequestLink
|
||||
|
||||
## SYNOPSIS
|
||||
Retrieves a relationship request URL to send to a customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerResellerRequestLink [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Retrieves a relationship request URL to send to a customer.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerResellerRequestLink
|
||||
```
|
||||
|
||||
Retrieves a relationship request URL to send to a customer.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CustomerRelationshipRequests.PSCustomerRelationshipRequest
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,77 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerServiceIncident
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of service incidents.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerServiceIncident [-Status <ServiceIncidentStatus>] [-Resolved] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a list of service incidents.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerServiceIncident -Status Warning -Resolved
|
||||
```
|
||||
|
||||
Gets a list of service incidents that have a status of warning and are marked as resolved.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -Resolved
|
||||
If specified resolved incidents are also returned.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Status
|
||||
Specifies which status types to return.
|
||||
|
||||
```yaml
|
||||
Type: ServiceIncidentStatus
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
Accepted values: Critical, Information, Normal, Warning
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.Models.ServiceIncidents.ServiceIncidentDetail
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,128 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerServiceRequest
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the specified customer's service requests.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByStatus (Default)
|
||||
```
|
||||
Get-PartnerServiceRequest [-Status <ServiceRequestStatus>] [-Severity <ServiceRequestSeverity>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
### BySeverity
|
||||
```
|
||||
Get-PartnerServiceRequest [-Status <ServiceRequestStatus>] [-Severity <ServiceRequestSeverity>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByCustomerId
|
||||
```
|
||||
Get-PartnerServiceRequest [-Status <ServiceRequestStatus>] [-Severity <ServiceRequestSeverity>]
|
||||
-CustomerId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByRequestId
|
||||
```
|
||||
Get-PartnerServiceRequest -CustomerId <String> [-RequestId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
Gets the specified customer's service requests.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerServiceRequest -CustomerId <Customer ID> -Severity "Critical" -Status "Open"
|
||||
```
|
||||
|
||||
Gets the service requests for the specified customer that are critical in severity and have a status of open.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByCustomerId, ByRequestId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -RequestId
|
||||
The identifier of the service request.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByRequestId
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Severity
|
||||
The status of the support request.
|
||||
|
||||
```yaml
|
||||
Type: ServiceRequestSeverity
|
||||
Parameter Sets: ByStatus, BySeverity, ByCustomerId
|
||||
Aliases:
|
||||
Accepted values: Critical, Minimal, Moderate, Unknown
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Status
|
||||
The status of the support request.
|
||||
|
||||
```yaml
|
||||
Type: ServiceRequestStatus
|
||||
Parameter Sets: ByStatus, BySeverity, ByCustomerId
|
||||
Aliases:
|
||||
Accepted values: AttentionNeeded, Closed, None, Open
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.ServiceRequests.PSServiceRequest
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerServiceRequestTopic
|
||||
|
||||
## SYNOPSIS
|
||||
Gets a list of service request topics.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerServiceRequestTopic [-SupportTopicId <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets a collection of items representing valid topics for service requests.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerServiceRequestTopic -SupportTopicId <Support Topic ID>
|
||||
```
|
||||
|
||||
Gets a specific support topic based on the specified support topic identifier.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Get-PartnerServiceRequestTopic
|
||||
```
|
||||
|
||||
Gets all of the available support topics.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -SupportTopicId
|
||||
The identifier of the support topic.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.ServiceRequests.PSSupportTopic
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,46 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Get-PartnerSupportProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Gets the partner's support profile.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Get-PartnerSupportProfile [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Gets the partner's support profile.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Get-PartnerSupportProfile
|
||||
```
|
||||
|
||||
Gets the partner's support profile.
|
||||
|
||||
## 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSSupportProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,307 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomer
|
||||
|
||||
## SYNOPSIS
|
||||
Creates a new customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomer -BillingAddressLine1 <String> [-BillingAddressLine2 <String>]
|
||||
[-BillingAddressCity <String>] -BillingAddressCountry <String> [-BillingAddressPostalCode <String>]
|
||||
[-BillingAddressRegion <String>] [-BillingAddressState <String>] [-ContactEmail <String>]
|
||||
[-ContactFirstName <String>] [-ContactLastName <String>] [-ContactPhoneNumber <String>] [-Culture <String>]
|
||||
-Domain <String> -Language <String> -Name <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Creates a new customer.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> New-PartnerCustomer -BillingAddressLine1 '1 Microsoft Way' -BillingAddressCity 'Redmond' -BillingAddressCountry ;'US' -BillingAddressPostalCode '98052' -BillingAddressState 'WA' -ContactEmail 'jdoe@customer.com' -ContactFirstName 'Jane' -ContactLastName 'Doe' -Culture 'en-US' -Domain 'newcustomer.onmicrosoft.com' -Language 'en' -Name 'New Customer'
|
||||
```
|
||||
|
||||
Creates a new customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -BillingAddressCity
|
||||
The city of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressCountry
|
||||
The country of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressLine1
|
||||
The first line of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressLine2
|
||||
The second line of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressPostalCode
|
||||
The postal code of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressRegion
|
||||
The region of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressState
|
||||
The state of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactEmail
|
||||
The email address of the primary contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactFirstName
|
||||
The first name of the primary contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactLastName
|
||||
The last name of the primary contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactPhoneNumber
|
||||
The phone number of the primary contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Culture
|
||||
The preferred culture for communication and currency.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Domain
|
||||
The customer's domain name, such as contoso.onmicrosoft.com.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Language
|
||||
The default language.
|
||||
Two character language codes (e.g., en, fr) are supported.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Name
|
||||
The name of the customer to be created.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Customers.PSCustomer
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,154 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerAgreement
|
||||
|
||||
## SYNOPSIS
|
||||
Confirms the customer acceptance of the Microsoft Cloud agreement.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerAgreement -AgreementType <AgreementType> -ContactEmail <String> -ContactFirstName <String>
|
||||
-ContactLastName <String> [-ContactPhoneNumber <String>] -CustomerId <String> -TemplateId <String>
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Confirms the customer acceptance of the Microsoft Cloud agreement.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> New-PartnerCustomerAgreement -AgreementType MicrosoftCloudAgreement -ContactEmail 'jdoe@customer.com' -ContactFirstName 'Jane' -ContactLastName 'Doe' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -TemplateId '998b88de-aa99-4388-a42c-1b3517d49490'
|
||||
```
|
||||
|
||||
Confirms the customer acceptance of the Microsoft Cloud agreement.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AgreementType
|
||||
The type of agreement being accepted.
|
||||
|
||||
```yaml
|
||||
Type: AgreementType
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
Accepted values: MicrosoftCloudAgreement
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactEmail
|
||||
The email address of the contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactFirstName
|
||||
The first name of the contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactLastName
|
||||
The last name of the contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ContactPhoneNumber
|
||||
The phone number of the contact at the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -TemplateId
|
||||
The identifier for the template.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Agreements.PSAgreement
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,110 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerCart
|
||||
|
||||
## SYNOPSIS
|
||||
Creates an order for a customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerCart -CustomerId <String> -LineItems <CartLineItem[]> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Creates an order for a customer.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> $lineItems = @()
|
||||
PS C:\> $lineItems += New-PartnerCustomerCartLineItem -BillingCycle 'OneTime' -CatalogItemId 'DG7GMGF0DWTL:0001:DG7GMGF0DSJB' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -FriendlyName 'Sample RI Purchase' -ProvisioningContext @{duration='1Year'; scope='shared'; subscriptionId='b35d5324-df8e-4306-9023-6edac2d4896c'} -Quantity 10
|
||||
PS C:\> New-PartnerCustomerCart -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LineItems $lineItems
|
||||
```
|
||||
|
||||
Creates an order for a customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LineItems
|
||||
A list of cart line items.
|
||||
|
||||
```yaml
|
||||
Type: CartLineItem[]
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCart
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,200 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerCartLineItem
|
||||
|
||||
## SYNOPSIS
|
||||
Creates a new cart line item object in memory.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerCartLineItem -BillingCycle <BillingCycleType> -CatalogItemId <String> -CustomerId <String>
|
||||
[-CurrencyCode <String>] [-FriendlyName <String>] [-OrderGroup <String>] [-ProvisioningContext <Hashtable>]
|
||||
[-Quantity <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Creates a new cart line item object in memory.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> New-PartnerCustomerCartLineItem -BillingCycle 'OneTime' -CatalogItemId 'DG7GMGF0DWTL:0001:DG7GMGF0DSJB' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -FriendlyName 'Sample RI Purchase' -ProvisioningContext ${duration='1Year', scope='shared', subscriptionId='b35d5324-df8e-4306-9023-6edac2d4896c'} -Quantity 10
|
||||
```
|
||||
|
||||
Creates a new cart line item object in memory.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -BillingCycle
|
||||
The type of billing cycle set for the current period.
|
||||
|
||||
```yaml
|
||||
Type: BillingCycleType
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
Accepted values: Annual, Monthly, None, OneTime
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CatalogItemId
|
||||
The catalog item identifier.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CurrencyCode
|
||||
The currency code used when this line item is invoiced.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -FriendlyName
|
||||
The friendly name for the item defined by the partner to help disambiguate.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OrderGroup
|
||||
A group to indicate which items can be placed together.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ProvisioningContext
|
||||
A context used for provisioning of offer.
|
||||
|
||||
```yaml
|
||||
Type: Hashtable
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Quantity
|
||||
The number of licenses or instances.
|
||||
|
||||
```yaml
|
||||
Type: Int32
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartLineItem
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,214 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerConfigurationPolicy
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
Creates a new configuration policy for the specified customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerConfigurationPolicy [-CustomerId] <String> [-Name] <String> [-Description <String>]
|
||||
[-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>] [-SkipExpressSettings <Boolean>]
|
||||
[-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
The New-PartnerCustomerConfigurationPolicy cmdlet creates a new configuration policy.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> New-PartnerCustomerConfigurationPolicy -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -Name "New Config Policy" -Description "Test Policy" -SkipEula $true -OobeUserNotLocalAdmin $true
|
||||
```
|
||||
|
||||
Create a new configuration policy for a customer with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08. The policy is named "New Config Policy" and has a description of "Test Policy. Both the SkipEula and OobeUserNotLocalAdmin policies have been set.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Description
|
||||
|
||||
Description for the new policy.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Name
|
||||
|
||||
Policy name for the new policy.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 1
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OobeUserNotLocalAdmin
|
||||
|
||||
Enables or disables the Disable local admin account in setup policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -RemoveOemPreinstalls
|
||||
Enables or disables the Remove OEM preinstalls policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkipEula
|
||||
|
||||
Enables or disables the Skip end user license agreement (EULA) policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkipExpressSettings
|
||||
|
||||
Enables or disables the Automatically skip pages in setup policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkipOemRegistration
|
||||
Enables or disables the Skip OEM registration policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.PSConfigurationPolicy
|
||||
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,111 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerOrder
|
||||
|
||||
## SYNOPSIS
|
||||
Create a new order for the specified services on behalf of the customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerOrder -CustomerId <String> -LineItems <PSOrderLineItem[]> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Create a new order for the specified services on behalf of the customer.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> $lineItem = New-PartnerCustomerOrderLineItem -LineItemNumber 0 -OfferId 031C9E47-4802-4248-838E-778FB1D2CC05 -Quantity 1
|
||||
PS C:\> New-PartnerCustomerOrder -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -LineItems @($lineItem)
|
||||
```
|
||||
|
||||
Create a new order for the specified services on behalf of the customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer making the purchase.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LineItems
|
||||
The order line items.
|
||||
Each order line item refers to one offer's purchase data.
|
||||
|
||||
```yaml
|
||||
Type: PSOrderLineItem[]
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Orders.PSOrder
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,200 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerOrderLineItem
|
||||
|
||||
## SYNOPSIS
|
||||
Creates a new order line item in memory.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerOrderLineItem [-FriendlyName <String>] -LineItemNumber <Int32> -OfferId <String>
|
||||
[-PartnerIdOnRecord <String>] [-ParentSubscriptionId <String>] [-ProvisioningContext <Hashtable>]
|
||||
-Quantity <Int32> [-SubscriptionId <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
Creates a new order line item in memory.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> New-PartnerCustomerOrderLineItem -LineItemNumber 0 -OfferId 031C9E47-4802-4248-838E-778FB1D2CC05 -Quantity 1
|
||||
```
|
||||
|
||||
Creates a new order line item in memory that will be used to order the offer with the identifier of 031C9E47-4802-4248-838E-778FB1D2CC05.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -FriendlyName
|
||||
The friendly name for the result contract (subscription).
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LineItemNumber
|
||||
The line item number.
|
||||
|
||||
```yaml
|
||||
Type: Int32
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OfferId
|
||||
The offer identifier.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ParentSubscriptionId
|
||||
The parent subscription identifier.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PartnerIdOnRecord
|
||||
The partner identifier on record.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ProvisioningContext
|
||||
The provisioning context for the offer.
|
||||
|
||||
```yaml
|
||||
Type: Hashtable
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Quantity
|
||||
The product quantity.
|
||||
|
||||
```yaml
|
||||
Type: Int32
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The resulting subscription identifier.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs. The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Orders.PSOrderLineItem
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,108 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerSubscriptionRegistration
|
||||
|
||||
## SYNOPSIS
|
||||
Registers the specified subscription.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerSubscriptionRegistration -CustomerId <String> -SubscriptionId <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Registers the specified subscription, so that is eligible to purcahse Azure reservations.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> New-PartnerCustomerSubscriptionRegistration -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -SubscriptionId 'b2f26801-2849-4fb1-8815-ad5fcd81143d'
|
||||
```
|
||||
|
||||
Registers the specified subscription.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The identifier for the subscription.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.String
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,200 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# New-PartnerCustomerUser
|
||||
|
||||
## SYNOPSIS
|
||||
Creates a new user in the specified customer Azure Active Directory tenant.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
New-PartnerCustomerUser -CustomerId <String> [-FirstName <String>] [-LastName <String>] -DisplayName <String>
|
||||
-UserPrincipalName <String> -Password <SecureString> [-ForceChangePassword] [-UsageLocation <String>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
The New-PartnerCustomerUser cmdlet creates a new user in the tenant Azure Active Directory.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> New-PartnerCustomerUser -CustomerId 45916f92-e9c3-4ed2-b8c2-d87aa129905f -UsageLocation US -UserPrincipalName 'joe@contoso.onmicrosoft.com' -FirstName 'Joe' -LastName 'Smith' -DisplayName 'Joe Smith' -ForceChangePassword -Password $PasswordSecure
|
||||
```
|
||||
|
||||
Creates a new user account.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The customer identifier.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -DisplayName
|
||||
The display name for the new customer user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -FirstName
|
||||
The first name for the new customer user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ForceChangePassword
|
||||
Forces user to change password during next login.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LastName
|
||||
The last name for the new customer user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Password
|
||||
The password for the new custom user as a secure string
|
||||
|
||||
```yaml
|
||||
Type: SecureString
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UsageLocation
|
||||
The location where the customer user will use software and services. Service availability varies by region.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserPrincipalName
|
||||
The user principal name (UPN) for the new customer user, including the onmicrosoft.com domain name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CustomerUsers.PSCustomerUser
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,213 @@
|
|||
---
|
||||
Module Name: PartnerCenter
|
||||
Module Guid: 70cb9a9e-1491-403a-8a2f-63e1afe7dfee
|
||||
Download Help Link: none
|
||||
Help Version: 1.0
|
||||
Locale: en-US
|
||||
---
|
||||
|
||||
# PartnerCenter Module
|
||||
## Description
|
||||
This topic displays help topics for the Partner Center Cmdlets.
|
||||
|
||||
## PartnerCenter Cmdlets
|
||||
### [Add-PartnerCustomerCartLineItem](Add-PartnerCustomerCartLineItem.md)
|
||||
Adds a new line item to the specified cart.
|
||||
|
||||
### [Add-PartnerCustomerUserRoleMember](Add-PartnerCustomerUserRoleMember.md)
|
||||
Adds a customer user to a specified role.
|
||||
|
||||
### [Connect-PartnerCenter](Connect-PartnerCenter.md)
|
||||
Connect to Partner Center with an authenticated account for use with cmdlet requests.
|
||||
|
||||
### [Get-PartnerAgreementDetail](Get-PartnerAgreementDetail.md)
|
||||
Gets the agreement metadata for the Microsoft Cloud Agreement.
|
||||
|
||||
### [Get-PartnerAuditRecord](Get-PartnerAuditRecord.md)
|
||||
Retrieves audit records from Partner Center.
|
||||
|
||||
### [Get-PartnerAzureRateCard](Get-PartnerAzureRateCard.md)
|
||||
Gets real-time prices for an Azure offer.
|
||||
|
||||
### [Get-PartnerBillingProfile](Get-PartnerBillingProfile.md)
|
||||
Gets the partner's billing profile.
|
||||
|
||||
### [Get-PartnerCountryValidation](Get-PartnerCountryValidation.md)
|
||||
Gets the rules for validating an address for a specific country.
|
||||
|
||||
### [Get-PartnerCustomer](Get-PartnerCustomer.md)
|
||||
Gets a specific customer or a list of available customers.
|
||||
|
||||
### [Get-PartnerCustomerAgreement](Get-PartnerCustomerAgreement.md)
|
||||
Retrieves confirmation of customer acceptance provided previously.
|
||||
|
||||
### [Get-PartnerCustomerCart](Get-PartnerCustomerCart.md)
|
||||
Gets a specific cart for the specified partner.
|
||||
|
||||
### [Get-PartnerCustomerConfigurationPolicy](Get-PartnerCustomerConfigurationPolicy.md)
|
||||
Gets a list of all of a customer's policies.
|
||||
|
||||
### [Get-PartnerCustomerDevice](Get-PartnerCustomerDevice.md)
|
||||
Gets a list of devices in the specified device batch for the specified customer.
|
||||
|
||||
### [Get-PartnerCustomerDeviceBatch](Get-PartnerCustomerDeviceBatch.md)
|
||||
Gets a list of device batches for the specified customer Id.
|
||||
|
||||
### [Get-PartnerCustomerEntitlement](Get-PartnerCustomerEntitlement.md)
|
||||
Gets a collection of entitlements.
|
||||
|
||||
### [Get-PartnerCustomerLicense](Get-PartnerCustomerLicense.md)
|
||||
Get a list of licenses available for a customer that are assigned or can be assigned to a user.
|
||||
|
||||
### [Get-PartnerCustomerLicenseDeploymentInfo](Get-PartnerCustomerLicenseDeploymentInfo.md)
|
||||
Gets aggregated data on deployment for a specified customer.
|
||||
|
||||
### [Get-PartnerCustomerManagedService](Get-PartnerCustomerManagedService.md)
|
||||
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-PartnerCustomerSubscription](Get-PartnerCustomerSubscription.md)
|
||||
Gets a list or a single customer subscription.
|
||||
|
||||
### [Get-PartnerCustomerSubscriptionProvisioningStatus](Get-PartnerCustomerSubscriptionProvisioningStatus.md)
|
||||
Gets the provisioning status of the specified customerID and subscription ID.
|
||||
|
||||
### [Get-PartnerCustomerSubscriptionRegistrationStatus](Get-PartnerCustomerSubscriptionRegistrationStatus.md)
|
||||
Gets the subscription registration status.
|
||||
|
||||
### [Get-PartnerCustomerSubscriptionUpgrades](Get-PartnerCustomerSubscriptionUpgrades.md)
|
||||
Gets the available upgrade offers for the specified subscription.
|
||||
|
||||
### [Get-PartnerCustomerSubscriptionUtilization](Get-PartnerCustomerSubscriptionUtilization.md)
|
||||
Gets the utilization of a customer's Azure subscription.
|
||||
|
||||
### [Get-PartnerCustomerTrialConversion](Get-PartnerCustomerTrialConversion.md)
|
||||
Gets a list of trial conversions available for the specified subscription.
|
||||
|
||||
### [Get-PartnerCustomerUser](Get-PartnerCustomerUser.md)
|
||||
Gets a list of all customer users or a specified user for the tenant.
|
||||
|
||||
### [Get-PartnerCustomerUserRole](Get-PartnerCustomerUserRole.md)
|
||||
Gets a list of directory roles for a customer.
|
||||
|
||||
### [Get-PartnerIndirectReseller](Get-PartnerIndirectReseller.md)
|
||||
Gets a list of indirect resellers.
|
||||
|
||||
### [Get-PartnerInvoice](Get-PartnerInvoice.md)
|
||||
Gets a list of invoices available to the partner.
|
||||
|
||||
### [Get-PartnerInvoiceStatement](Get-PartnerInvoiceStatement.md)
|
||||
Gets an invoice statement using the invoice identifier.
|
||||
|
||||
### [Get-PartnerInvoiceSummary](Get-PartnerInvoiceSummary.md)
|
||||
Gets a summary view of the invoice.
|
||||
|
||||
### [Get-PartnerLegalProfile](Get-PartnerLegalProfile.md)
|
||||
Gets the partner legal business profile from Partner Center.
|
||||
|
||||
### [Get-PartnerLicenseDeploymentInfo](Get-PartnerLicenseDeploymentInfo.md)
|
||||
Gets aggregated data on licenses deployment
|
||||
|
||||
### [Get-PartnerLicenseUsageInfo](Get-PartnerLicenseUsageInfo.md)
|
||||
Gets aggregated data on licenses deployment
|
||||
|
||||
### [Get-PartnerOffer](Get-PartnerOffer.md)
|
||||
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-PartnerOrganizationProfile](Get-PartnerOrganizationProfile.md)
|
||||
Gets the partner organization profile from Partner Center.
|
||||
|
||||
### [Get-PartnerProduct](Get-PartnerProduct.md)
|
||||
Gets a list or a single product.
|
||||
|
||||
### [Get-PartnerProductAvailability](Get-PartnerProductAvailability.md)
|
||||
Gets the availability for a specified product.
|
||||
|
||||
### [Get-PartnerProductInventory](Get-PartnerProductInventory.md)
|
||||
Checks the inventory for the specified product.
|
||||
|
||||
### [Get-PartnerProductSKU](Get-PartnerProductSKU.md)
|
||||
Gets the list of SKUs for a product.
|
||||
|
||||
### [Get-PartnerResellerRequestLink](Get-PartnerResellerRequestLink.md)
|
||||
Gets a relationship request URL to send to a customer.
|
||||
|
||||
### [Get-PartnerServiceIncident](Get-PartnerServiceIncident.md)
|
||||
Gets a list of service incidents.
|
||||
|
||||
### [Get-PartnerServiceRequest](Get-PartnerServiceRequest.md)
|
||||
Gets the specified customer's service requests.
|
||||
|
||||
### [Get-PartnerServiceRequestTopic](Get-PartnerServiceRequestTopic.md)
|
||||
Gets a list of service request topics.
|
||||
|
||||
### [Get-PartnerSupportProfile](Get-PartnerSupportProfile.md)
|
||||
Gets the partner's support profile.
|
||||
|
||||
### [Invoke-PartnerCustomerCart](Invoke-PartnerCustomerCart.md)
|
||||
Checks out the specified cart.
|
||||
|
||||
### [New-PartnerCustomer](New-PartnerCustomer.md)
|
||||
Creates a new customer.
|
||||
|
||||
### [New-PartnerCustomerAgreement](New-PartnerCustomerAgreement.md)
|
||||
Confirms the customer acceptance of the Microsoft Cloud agreement.
|
||||
|
||||
### [New-PartnerCustomerCart](New-PartnerCustomerCart.md)
|
||||
Creates an order for a customer.
|
||||
|
||||
### [New-PartnerCustomerCartLineItem](New-PartnerCustomerCartLineItem.md)
|
||||
Creates a new cart line item object in memory.
|
||||
|
||||
### [New-PartnerCustomerOrder](New-PartnerCustomerOrder.md)
|
||||
Create a new order for the specified services on behalf of the customer.
|
||||
|
||||
### [New-PartnerCustomerOrderLineItem](New-PartnerCustomerOrderLineItem.md)
|
||||
Creates a new order line item in memory.
|
||||
|
||||
### [New-PartnerCustomerSubscriptionRegistration](New-PartnerCustomerSubscriptionRegistration.md)
|
||||
Registers the specified subscription.
|
||||
|
||||
### [New-PartnerCustomerUser](New-PartnerCustomerUser.md)
|
||||
Creates a new user in the specified customer Azure Active Directory tenant.
|
||||
|
||||
### [Remove-PartnerCustomerUser](Remove-PartnerCustomerUser.md)
|
||||
Removes a user from the customer's tenant.
|
||||
|
||||
### [Remove-PartnerCustomerUserRoleMember](Remove-PartnerCustomerUserRoleMember.md)
|
||||
Removes a customer user from a specified role.
|
||||
|
||||
### [Restore-PartnerCustomerUser](Restore-PartnerCustomerUser.md)
|
||||
Restores a previously removed customer user from the customer's tenant.
|
||||
|
||||
### [Set-PartnerBillingProfile](Set-PartnerBillingProfile.md)
|
||||
Updates the partner's billing profile.
|
||||
|
||||
### [Set-PartnerCustomer](Set-PartnerCustomer.md)
|
||||
Updates a customer's billing profile, including the address associated with the profile.
|
||||
|
||||
### [Set-PartnerCustomerSubscription](Set-PartnerCustomerSubscription.md)
|
||||
Updates the specified customer subscription.
|
||||
|
||||
### [Set-PartnerCustomerUser](Set-PartnerCustomerUser.md)
|
||||
Updates the specified customer user account.
|
||||
|
||||
### [Set-PartnerLegalProfile](Set-PartnerLegalProfile.md)
|
||||
Updates the partner's legal profile.
|
||||
|
||||
### [Set-PartnerOrganizationProfile](Set-PartnerOrganizationProfile.md)
|
||||
Updates the partner's organization profile
|
||||
|
||||
### [Set-PartnerSupportProfile](Set-PartnerSupportProfile.md)
|
||||
Updates the partner's support profile.
|
||||
|
||||
### [Test-PartnerAddress](Test-PartnerAddress.md)
|
||||
Tests whether or not the specified address is valid.
|
||||
|
||||
### [Test-PartnerDomainAvailability](Test-PartnerDomainAvailability.md)
|
||||
Tests if the specified domain name is available for creating a new tenant
|
|
@ -0,0 +1,83 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Remove-PartnerCustomerConfigurationPolicy
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
Removes the specified configuration policy.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Remove-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
The Remove-PartnerCustomerConfigurationPolicy removes the specified configuration policy.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Remove-PartnerCustomerConfigurationPolicy -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -PolicyId 2975afbf-4859-4d56-9f8d-e86996db92dd
|
||||
```
|
||||
|
||||
Remove the configuration policy with the identifier of 2975afbf-4859-4d56-9f8d-e86996db92dd from the customer with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PolicyId
|
||||
|
||||
The identifier for the configuration policy.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,136 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Remove-PartnerCustomerUser
|
||||
|
||||
## SYNOPSIS
|
||||
Removes a user from the customer's tenant.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByUserId (Default)
|
||||
```
|
||||
Remove-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUpn
|
||||
```
|
||||
Remove-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Remove-PartnerCustomerUser cmdlet removes the specified user from the customer tenant.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName "hugh@wingtiptoys.onmicrosoft.com"
|
||||
```
|
||||
|
||||
Removes the customer user with the User Principal Name of Hugh@wingtiptoys.onmicrosoft.com
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserId
|
||||
```
|
||||
|
||||
Removes the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
Identifier for the user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByUserId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserPrincipalName
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByUpn
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,92 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Remove-PartnerCustomerUserRoleMember
|
||||
|
||||
## SYNOPSIS
|
||||
Removes a customer user from a specified role.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Remove-PartnerCustomerUserRoleMember -CustomerId <String> [-UserId <String>] [-RoleId <String>]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Remove-PartnerCustomerUserRoleMember cmdlets removes a specified role to the target customer user.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Remove-PartnerCustomerUserRoleMember -CustomerId c4f6bf3c-60de-432e-a3ec-20bcc5b26ec2 -UserId 17765f05-723c-4be4-89e2-c7d1cdbb0906 -RoleId 62e90394-69f5-4237-9190-012177145e10
|
||||
```
|
||||
|
||||
Removes the specified user with the identifier of 17765f05-723c-4be4-89e2-c7d1cdbb0906 from the role with the identifier of 62e90394-69f5-4237-9190-012177145e10.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -RoleId
|
||||
Identifier for the role.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
Identifier for the user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,93 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Remove-PartnerSandboxCustomer
|
||||
|
||||
## SYNOPSIS
|
||||
Removes the specified customer.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Remove-PartnerSandboxCustomer [-CustomerId] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Removes the specified customer. This operation is only supported when connected to the integration sandbox.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Remove-PartnerSandboxCustomer '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'
|
||||
```
|
||||
|
||||
Removes the specified customer.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
The identifier of the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,136 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Restore-PartnerCustomerUser
|
||||
|
||||
## SYNOPSIS
|
||||
Restores a previously removed customer user from the customer's tenant.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### ByUserId (Default)
|
||||
```
|
||||
Restore-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### ByUpn
|
||||
```
|
||||
Restore-PartnerCustomerUser [-CustomerId] <String> -UserPrincipalName <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Restore-PartnerCustomerUser cmdlet restores the specified user that was previously removed from the customer tenant.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Restore-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName "Hugh@wingtiptoys.onmicrosoft.com"
|
||||
```
|
||||
|
||||
Restores the customer user with the User Principal Name of Hugh@wingtiptoys.onmicrosoft.com
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserId
|
||||
```
|
||||
|
||||
Restores the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
Identifier for the user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByUserId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserPrincipalName
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: ByUpn
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,262 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerBillingProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Updates the partner's billing profile.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
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>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Updates the partner's billing profile.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Set-PartnerBillingProfile -AddressLine1 "1 Microsoft Way" -AddressLine2 "Suite 55" -City "Redmond" -State "WA" -PostalCode "98052"
|
||||
```
|
||||
|
||||
This usage is an example of a partner updating their corporate address.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AddressLine1
|
||||
The first line of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -AddressLine2
|
||||
The second line of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -City
|
||||
The city portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -EmailAddress
|
||||
The email address of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -FirstName
|
||||
The first name of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LastName
|
||||
The last name of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PhoneNumber
|
||||
The phone number of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PostalCode
|
||||
The postal code portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PurchaseOrderNumber
|
||||
The purchase order number to be used for billing purposes.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Region
|
||||
The region portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -State
|
||||
The state portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -TaxId
|
||||
The tax identifier to be used for billing purposes.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSBillingProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
||||
|
||||
Partner Center SDK reference for updating the partner billing profile: <https://docs.microsoft.com/en-us/partner-center/develop/update-partner-billing-profile>
|
|
@ -0,0 +1,247 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerCustomer
|
||||
|
||||
## SYNOPSIS
|
||||
Updates a customer's billing profile, including the address associated with the profile.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### Customer (Default)
|
||||
```
|
||||
Set-PartnerCustomer [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>]
|
||||
[-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPostalCode <String>]
|
||||
[-BillingAddressRegion <String>] [-BillingAddressState <String>] -CustomerId <String> [-Name <String>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### CustomerObject
|
||||
```
|
||||
Set-PartnerCustomer -InputObject <PSCustomer> [-BillingAddressLine1 <String>] [-BillingAddressLine2 <String>]
|
||||
[-BillingAddressCity <String>] [-BillingAddressCountry <String>] [-BillingAddressPostalCode <String>]
|
||||
[-BillingAddressRegion <String>] [-BillingAddressState <String>] [-Name <String>] [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Updates a customer's billing profile.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Set-PartnerCustomer -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -BillingAddressLine1 '700 Bellevue Way' -BillingAddressCity 'Bellevue' -BillingAddressPostalCode '98004'
|
||||
```
|
||||
|
||||
Updates the billing address for the customer, with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08, to 700 Bellevue Way NE, Bellevue, WA 98004.
|
||||
|
||||
### Example 2
|
||||
```powershell
|
||||
PS C:\> $customer = Get-PartnerCustomer 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08
|
||||
PS C:\> $customer | Set-PartnerCustomer -BillingAddressLine1 '700 Bellevue Way' -BillingAddressCity 'Bellevue' -BillingAddressPostalCode '98004'
|
||||
```
|
||||
|
||||
Updates the billing address for the customer, with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08, to 700 Bellevue Way NE, Bellevue, WA 98004.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -BillingAddressCity
|
||||
The city of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressCountry
|
||||
The country of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressLine1
|
||||
The first line of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressLine2
|
||||
The second line of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressPostalCode
|
||||
The postal code of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressRegion
|
||||
The region of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -BillingAddressState
|
||||
The state of the customer's billing address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
Identifier of the customer being modified.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: Customer
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -InputObject
|
||||
The customer object to be modified.
|
||||
|
||||
```yaml
|
||||
Type: PSCustomer
|
||||
Parameter Sets: CustomerObject
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: True (ByValue)
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Name
|
||||
Name of the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Customers.PSCustomer
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Customers.PSCustomer
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,226 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerCustomerConfigurationPolicy
|
||||
|
||||
## SYNOPSIS
|
||||
|
||||
Updates an existing configuration policy with the specified options.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Set-PartnerCustomerConfigurationPolicy [-CustomerId] <String> -PolicyId <String> [-Name <String>]
|
||||
[-Description <String>] [-RemoveOemPreinstalls <Boolean>] [-OobeUserNotLocalAdmin <Boolean>]
|
||||
[-SkipExpressSettings <Boolean>] [-SkipEula <Boolean>] [-SkipOemRegistration <Boolean>] [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
The Set-PartnerCustomerConfigurationPolicy cmdlet will update an existing configuration.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Set-PartnerCustomerConfigurationPolicy -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -PolicyId 2975afbf-4859-4d56-9f8d-e86996db92dd -Name "Updated Policy Name"
|
||||
```
|
||||
|
||||
Updates the existing configuration policy with the identifier of 2975afbf-4859-4d56-9f8d-e86996db92dd with a new name of "Updated Policy Name"
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Description
|
||||
|
||||
Description for the policy.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Name
|
||||
|
||||
Policy name for the policy.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -OobeUserNotLocalAdmin
|
||||
|
||||
Enables or disables the Disable local admin account in setup policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PolicyId
|
||||
|
||||
Identifier for the policy.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -RemoveOemPreinstalls
|
||||
Enables or disables the Remove OEM preinstalls policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkipEula
|
||||
Enables or disables the Skip end user license agreement (EULA) policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkipExpressSettings
|
||||
Enables or disables the Automatically skip pages in setup policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SkipOemRegistration
|
||||
Enables or disables the Skip OEM registration policy.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.PSConfigurationPolicy
|
||||
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,193 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerCustomerSubscription
|
||||
|
||||
## SYNOPSIS
|
||||
Updates the specified customer subscription.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### Customer
|
||||
```
|
||||
Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] -CustomerId <String> [-FriendlyName <String>]
|
||||
[-Quantity <Int32>] [-Status <SubscriptionStatus>] -SubscriptionId <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
### CustomerObject
|
||||
```
|
||||
Set-PartnerCustomerSubscription [-AutoRenew <Boolean>] -InputObject <PSCustomer> [-FriendlyName <String>]
|
||||
[-Quantity <Int32>] [-Status <SubscriptionStatus>] -SubscriptionId <String> [-WhatIf] [-Confirm]
|
||||
[<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Updates the specified customer subscription.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Set-ParnterCustomerSubscription -AutoRenew $false -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -Subscription dace42ca-22df-4b1f-8f9e-992364dd866e
|
||||
```
|
||||
|
||||
Disables the auto renew functionality for the specified subscription.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AutoRenew
|
||||
A flag indiciating whether or not the subscription will auto renew.
|
||||
|
||||
```yaml
|
||||
Type: Boolean
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
The customer identifier used to scope the request.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: Customer
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -FriendlyName
|
||||
The friendly name of the subscription.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -InputObject
|
||||
The customer object used to scope the request.
|
||||
|
||||
```yaml
|
||||
Type: PSCustomer
|
||||
Parameter Sets: CustomerObject
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Quantity
|
||||
The quantity of the subscription.
|
||||
|
||||
```yaml
|
||||
Type: Int32
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Status
|
||||
The status of the subscription.
|
||||
|
||||
```yaml
|
||||
Type: SubscriptionStatus
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
Accepted values: None, Active, Suspended, Deleted
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SubscriptionId
|
||||
The subscription identifier used to scope the request.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Subscriptions.PSSubscription
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,233 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerCustomerUser
|
||||
|
||||
## SYNOPSIS
|
||||
Updates the specified customer user account.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
### UserId (Default)
|
||||
```
|
||||
Set-PartnerCustomerUser [-CustomerId] <String> -UserId <String> [-UserPrincipalName <String>]
|
||||
[-FirstName <String>] [-LastName <String>] [-DisplayName <String>] [-Password <SecureString>]
|
||||
[-ForceChangePasswordNextLogin] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
### UserObject
|
||||
```
|
||||
Set-PartnerCustomerUser -InputObject <PSCustomerUser> [-CustomerId] <String> [-UserPrincipalName <String>]
|
||||
[-FirstName <String>] [-LastName <String>] [-DisplayName <String>] [-Password <SecureString>]
|
||||
[-ForceChangePasswordNextLogin] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
The Set-PartnerCustomerUser cmdlet modifies a customer user account.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
|
||||
```powershell
|
||||
PS C:\> Set-PartnerCustomerUser -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -UserId a9ef48bb-8758-4590-a312-d4a47bfaded4 -LastName 'Sullivan'
|
||||
```
|
||||
|
||||
Modify the user's last name
|
||||
|
||||
### Example 2
|
||||
|
||||
```powershell
|
||||
$password = '<Password>'
|
||||
PS C:\>$passwordSecure = $password | ConvertTo-SecureString -AsPlainText -Force
|
||||
PS C:\>Set-PartnerCustomerUser -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -UserId a9ef48bb-8758-4590-a312-d4a47bfaded4 -Password $passwordSecure -ForceChangePassword $true
|
||||
```
|
||||
|
||||
Set the password for the user account and require the user to change the password during the next sign on.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CustomerId
|
||||
Identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -DisplayName
|
||||
User's display name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -FirstName
|
||||
User's first name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -ForceChangePasswordNextLogin
|
||||
Forces user to change password during next login.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -InputObject
|
||||
The customer user object to be modified.
|
||||
|
||||
```yaml
|
||||
Type: PSCustomerUser
|
||||
Parameter Sets: UserObject
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: True (ByValue)
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LastName
|
||||
User's last name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Password
|
||||
User's new password.
|
||||
|
||||
```yaml
|
||||
Type: SecureString
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserId
|
||||
Identifier for the user.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: UserId
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -UserPrincipalName
|
||||
User principal name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CustomerUsers.PSCustomerUser
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.CustomerUsers.PSCustomerUser
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,244 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerLegalProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Updates the partner's legal profile.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
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>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Updates the partner's legal profile.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Set-PartnerLegalProfile -AddressLine1 '700 Bellevue Way NE' -City 'Bellevue' -PostalCode '98004' -State 'WA'
|
||||
```
|
||||
|
||||
Updates the partner's legal profile.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AddressLine1
|
||||
The first line of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -AddressLine2
|
||||
The second line of the adress.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -City
|
||||
The city portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Country
|
||||
The country portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -EmailAddress
|
||||
The email address of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -FirstName
|
||||
The first name of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LastName
|
||||
The last name of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PhoneNumber
|
||||
The phone number of the primary billing contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PostalCode
|
||||
The postal code portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Region
|
||||
The region portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -State
|
||||
The state portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSLegalBusinessProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,275 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerOrganizationProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Updates the partner's organization profile
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
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>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Updates the partner's organization profile
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Set-PartnerOrganizationProfile -AddressLine1 '700 Bellevue Way NE' -City 'Bellevue' -PostalCode '98004' -State 'WA'
|
||||
```
|
||||
|
||||
Updates the partner's organization profile
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AddressLine1
|
||||
The first line of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -AddressLine2
|
||||
The second line of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -City
|
||||
The city portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CompanyName
|
||||
The company name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Country
|
||||
The country portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Culture
|
||||
The preferred organization culture.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Email
|
||||
The organization technical contact's email address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -FirstName
|
||||
The primary organization contact's first name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Language
|
||||
The primary organization language.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -LastName
|
||||
The primary organization contact's last name.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PhoneNumber
|
||||
The primary organization contact's phone number.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PostalCode
|
||||
The postal code of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -State
|
||||
The state portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSOrganizationProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,123 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Set-PartnerSupportProfile
|
||||
|
||||
## SYNOPSIS
|
||||
Updates the partner's support profile.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Set-PartnerSupportProfile [-SupportEmail <String>] [-SupportPhoneNumber <String>] [-SupportWebsite <String>]
|
||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Updates the partner's support profile.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Set-PartnerSupportProfile -SupportEmail 'support@contoso.com' -SupportPhoneNumber '4255555555' -SupportWebsite 'https://www.microsoft.com'
|
||||
```
|
||||
|
||||
Updates the partner's support profile.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -SupportEmail
|
||||
The email address of the support contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SupportPhoneNumber
|
||||
The phone number of the support contact.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -SupportWebsite
|
||||
The website where customers can get support.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Partners.PSSupportProfile
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,107 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Submit-PartnerCustomerCart
|
||||
|
||||
## SYNOPSIS
|
||||
Checks out the specified cart.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Submit-PartnerCustomerCart -CartId <String> -CustomerId <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Checks out the specified cart.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Submit-PartnerCustomerCart -CartId '65faf57b-0205-47ee-92b3-08dcf233ea73' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08'
|
||||
```
|
||||
|
||||
Checks out the specified cart.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -CartId
|
||||
The identifier for the cart.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -CustomerId
|
||||
The identifier for the customer.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartCheckoutResult
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,183 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Test-PartnerAddress
|
||||
|
||||
## SYNOPSIS
|
||||
Tests whether or not the specified address is valid.
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Test-PartnerAddress -AddressLine1 <String> [-AddressLine2 <String>] [-City <String>] [-Country <String>]
|
||||
-PostalCode <String> [-Region <String>] [-State <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
Tests whether or not the specified address is valid.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Test-PartnerAddress -AddressLine1 '700 Bellevue Way NE' -City 'Bellevue' -Country 'US' -PostalCode '98004' -State 'WA'
|
||||
```
|
||||
|
||||
Tests whether or not the specified address is valid.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -AddressLine1
|
||||
The first line of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -AddressLine2
|
||||
The second line of the adress.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -City
|
||||
The city portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Country
|
||||
The country portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -PostalCode
|
||||
The postal code portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Region
|
||||
The region portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -State
|
||||
The state portion of the address.
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -Confirm
|
||||
Prompts you for confirmation before running the cmdlet.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: cf
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### -WhatIf
|
||||
Shows what would happen if the cmdlet runs.
|
||||
The cmdlet is not run.
|
||||
|
||||
```yaml
|
||||
Type: SwitchParameter
|
||||
Parameter Sets: (All)
|
||||
Aliases: wi
|
||||
|
||||
Required: False
|
||||
Position: Named
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,63 @@
|
|||
---
|
||||
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
|
||||
Module Name: PartnerCenter
|
||||
online version:
|
||||
schema: 2.0.0
|
||||
---
|
||||
|
||||
# Test-PartnerDomainAvailability
|
||||
|
||||
## SYNOPSIS
|
||||
Tests if the specified domain name is available for creating a new tenant
|
||||
|
||||
## SYNTAX
|
||||
|
||||
```
|
||||
Test-PartnerDomainAvailability [-Domain] <String> [<CommonParameters>]
|
||||
```
|
||||
|
||||
## DESCRIPTION
|
||||
|
||||
The Test-PartnerDomainAvailability cmdlet tests to see if the specified domain name is available for creating a new tenant.
|
||||
|
||||
## EXAMPLES
|
||||
|
||||
### Example 1
|
||||
```powershell
|
||||
PS C:\> Test-PartnerDomainAvailability -Domain 'contoso.onmicrosoft.com'
|
||||
```
|
||||
|
||||
Tests if the domain contoso.onmicrosoft.com is available. Returns true if yes, false otherwise.
|
||||
|
||||
## PARAMETERS
|
||||
|
||||
### -Domain
|
||||
A string that identifies the domain to check, e.g.
|
||||
"contoso.onmicrosoft.com" .
|
||||
|
||||
```yaml
|
||||
Type: String
|
||||
Parameter Sets: (All)
|
||||
Aliases:
|
||||
|
||||
Required: True
|
||||
Position: 0
|
||||
Default value: None
|
||||
Accept pipeline input: False
|
||||
Accept wildcard characters: False
|
||||
```
|
||||
|
||||
### 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
|
||||
|
||||
## OUTPUTS
|
||||
|
||||
### System.Boolean
|
||||
|
||||
## NOTES
|
||||
|
||||
## RELATED LINKS
|
|
@ -0,0 +1,24 @@
|
|||
# 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)
|
|
@ -0,0 +1,39 @@
|
|||
# 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>'
|
||||
```
|
|
@ -0,0 +1,84 @@
|
|||
# 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
|
||||
$lineItems = @()
|
||||
$lineItems += New-PartnerCustomerCartLineItem -BillingCycle 'OneTime' -CatalogItemId '<Catalog-Item-Id>' -CustomerId '<Customer-Id>' -FriendlyName '<Friendly-Name>' -ProvisioningContext @{duration='1Year'; scope='shared'; subscriptionId='<Subscription-Id>'} -Quantity 1
|
||||
|
||||
New-PartnerCustomerCart -CustomerId '<Customer-Id>' -LineItems $lineItems
|
||||
```
|
||||
|
||||
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 '<Cart-Id>' -CustomerId '<Customer-Id>'
|
||||
```
|
|
@ -0,0 +1,35 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="EnvironmentConstants.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Authentication
|
||||
{
|
||||
/// <summary>
|
||||
/// Known endpoint values for accessing cloud based resources.
|
||||
/// </summary>
|
||||
public static class EnvironmentConstants
|
||||
{
|
||||
/// <summary>
|
||||
/// The Azure Active Directory authentication endpoint
|
||||
/// </summary>
|
||||
public const string AzureActiveDirectoryEndpoint = "https://login.microsoftonline.com/";
|
||||
public const string ChinaActiveDirectoryEndpoint = "https://login.chinacloudapi.cn/";
|
||||
public const string GermanActiveDirectoryEndpoint = "https://login.microsoftonline.de/";
|
||||
public const string USGovernmentActiveDirectoryEndpoint = "https://login.microsoftonline.us/";
|
||||
|
||||
/// <summary>
|
||||
/// The Azure Active Directory Graph endpoint
|
||||
/// </summary>
|
||||
public const string AzureGraphEndpoint = "https://graph.windows.net/";
|
||||
public const string ChinaGraphEndpoint = "https://graph.chinacloudapi.cn/";
|
||||
public const string GermanGraphEndpoint = "https://graph.cloudapi.de/";
|
||||
public const string USGovernmentGraphEndpoint = "https://graph.windows.net/";
|
||||
|
||||
/// <summary>
|
||||
/// The Partner Center endpoint
|
||||
/// </summary>
|
||||
public const string PartnerCenterEndpoint = "https://api.partnercenter.microsoft.com";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="EnvironmentName.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Authentication
|
||||
{
|
||||
/// <summary>
|
||||
/// Collection of names for the available instances of Microsoft Partner Center.
|
||||
/// </summary>
|
||||
public enum EnvironmentName
|
||||
{
|
||||
/// <summary>
|
||||
/// The global instance of Microsoft Partner Center.
|
||||
/// </summary>
|
||||
GlobalCloud,
|
||||
|
||||
/// <summary>
|
||||
/// The Chinese sovereign cloud instance of Microsoft Partner Center.
|
||||
/// </summary>
|
||||
ChinaCloud,
|
||||
|
||||
/// <summary>
|
||||
/// The German sovereign cloud instance of Microsoft Partner Center.
|
||||
/// </summary>
|
||||
GermanCloud,
|
||||
|
||||
/// <summary>
|
||||
/// The US Government sovereign cloud instance of Microsoft Partner Center.
|
||||
/// </summary>
|
||||
USGovernment
|
||||
}
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="PartnerContext.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Authentication
|
||||
{
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Partner and user details used by the Partner Center cmdlets.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class PartnerContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the application identifier.
|
||||
/// </summary>
|
||||
public string ApplicationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ISO2 country code.
|
||||
/// </summary>
|
||||
public string CountryCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or set the envrionment.
|
||||
/// </summary>
|
||||
public EnvironmentName Environment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the locale of the authenicated user.
|
||||
/// </summary>
|
||||
public string Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the tenant identifier.
|
||||
/// </summary>
|
||||
public string TenantId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user identifier.
|
||||
/// </summary>
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user name.
|
||||
/// </summary>
|
||||
public string Username { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="PartnerEnvironment.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Authentication
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
|
||||
/// <summary>
|
||||
/// A record of metadata necessary to manage assets in a specific azure cloud, including necessary endpoints,
|
||||
/// location of service-specific endpoints, and information for bootstrapping authentication
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class PartnerEnvironment
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the authentication endpoint.
|
||||
/// </summary>
|
||||
public string ActiveDirectoryAuthority { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the Azure AD Graph endpoint.
|
||||
/// </summary>
|
||||
public string AzureAdGraphEndpoint { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the Partner Center endpoint.
|
||||
/// </summary>
|
||||
public string PartnerCenterEndpoint { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the defined Microsoft Partner Center environments.
|
||||
/// </summary>
|
||||
public static IDictionary<EnvironmentName, PartnerEnvironment> PublicEnvironments { get; } = InitializeEnvironments();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the tenant in this environment.
|
||||
/// </summary>
|
||||
public string Tenant { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a list of known environments.
|
||||
/// </summary>
|
||||
/// <returns>A dictionary containing the known environments.</returns>
|
||||
private static IDictionary<EnvironmentName, PartnerEnvironment> InitializeEnvironments()
|
||||
{
|
||||
return new ConcurrentDictionary<EnvironmentName, PartnerEnvironment>
|
||||
{
|
||||
[EnvironmentName.GlobalCloud] = new PartnerEnvironment
|
||||
{
|
||||
ActiveDirectoryAuthority = EnvironmentConstants.AzureActiveDirectoryEndpoint,
|
||||
AzureAdGraphEndpoint = EnvironmentConstants.AzureGraphEndpoint,
|
||||
PartnerCenterEndpoint = EnvironmentConstants.PartnerCenterEndpoint,
|
||||
Tenant = "Common"
|
||||
},
|
||||
|
||||
[EnvironmentName.ChinaCloud] = new PartnerEnvironment
|
||||
{
|
||||
ActiveDirectoryAuthority = EnvironmentConstants.ChinaActiveDirectoryEndpoint,
|
||||
AzureAdGraphEndpoint = EnvironmentConstants.ChinaGraphEndpoint,
|
||||
PartnerCenterEndpoint = EnvironmentConstants.PartnerCenterEndpoint,
|
||||
Tenant = "Common"
|
||||
},
|
||||
|
||||
[EnvironmentName.USGovernment] = new PartnerEnvironment
|
||||
{
|
||||
ActiveDirectoryAuthority = EnvironmentConstants.USGovernmentActiveDirectoryEndpoint,
|
||||
AzureAdGraphEndpoint = EnvironmentConstants.USGovernmentGraphEndpoint,
|
||||
PartnerCenterEndpoint = EnvironmentConstants.PartnerCenterEndpoint,
|
||||
Tenant = "Common"
|
||||
},
|
||||
|
||||
[EnvironmentName.GermanCloud] = new PartnerEnvironment
|
||||
{
|
||||
ActiveDirectoryAuthority = EnvironmentConstants.GermanActiveDirectoryEndpoint,
|
||||
AzureAdGraphEndpoint = EnvironmentConstants.GermanGraphEndpoint,
|
||||
PartnerCenterEndpoint = EnvironmentConstants.PartnerCenterEndpoint,
|
||||
Tenant = "Common"
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="PartnerProfile.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Authentication
|
||||
{
|
||||
using System;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a profile structure with context and environments.
|
||||
/// </summary>
|
||||
public class PartnerProfile
|
||||
{
|
||||
/// <summary>
|
||||
/// Singleton instance of the <see cref="PartnerContext" /> class.
|
||||
/// </summary>
|
||||
private static readonly Lazy<PartnerProfile> instance = new Lazy<PartnerProfile>(() => new PartnerProfile());
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the context.
|
||||
/// </summary>
|
||||
public PartnerContext Context { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets an instance of the <see cref="PartnerProfile" /> class.
|
||||
/// </summary>
|
||||
public static PartnerProfile Instance => instance.Value;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="PartnerSession.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Authentication
|
||||
{
|
||||
using System;
|
||||
using Factories;
|
||||
|
||||
/// <summary>
|
||||
/// Represents the current partner session.
|
||||
/// </summary>
|
||||
public class PartnerSession
|
||||
{
|
||||
/// <summary>
|
||||
/// Singleton instance of the <see cref="PartnerSession" /> class.
|
||||
/// </summary>
|
||||
private static readonly Lazy<PartnerSession> partnerSession = new Lazy<PartnerSession>();
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an instance of the authentication factory.
|
||||
/// </summary>
|
||||
public IAuthenticationFactory AuthenticationFactory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets an instance of the client facotry.
|
||||
/// </summary>
|
||||
public IClientFactory ClientFactory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets an instance of the <see cref="PartnerSession" /> class.
|
||||
/// </summary>
|
||||
public static PartnerSession Instance => partnerSession.Value;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="AddPartnerCustomerCartLineItem.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Management.Automation;
|
||||
using System.Text.RegularExpressions;
|
||||
using Common;
|
||||
using Models.Carts;
|
||||
using PartnerCenter.Models.Carts;
|
||||
using Properties;
|
||||
|
||||
/// <summary>
|
||||
/// Adds a cart line item to the specified cart.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Add, "PartnerCustomerCartLineItem", SupportsShouldProcess = true), OutputType(typeof(PSCart))]
|
||||
public class AddPartnerCustomerCartLineItem : PartnerPSCmdlet
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the required cart identifier.
|
||||
/// </summary>
|
||||
[Parameter(HelpMessage = "The identifier for the cart.", Mandatory = true)]
|
||||
[ValidateNotNull]
|
||||
public string CartId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the required customer identifier.
|
||||
/// </summary>
|
||||
[Parameter(HelpMessage = "The identifier for the customer.", Mandatory = true)]
|
||||
[ValidatePattern(@"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$", Options = RegexOptions.Compiled)]
|
||||
public string CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the line item to be added.
|
||||
/// </summary>
|
||||
[Parameter(HelpMessage = "The line item to be added.", Mandatory = true)]
|
||||
[ValidateNotNull]
|
||||
public PSCartLineItem LineItem { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
Cart cart;
|
||||
CartLineItem cartLineItem;
|
||||
List<CartLineItem> lineItems;
|
||||
|
||||
try
|
||||
{
|
||||
if (ShouldProcess(string.Format(CultureInfo.CurrentCulture, Resources.AddPartnerCustomerCartLineItemWhatIf, CartId)))
|
||||
{
|
||||
cart = Partner.Customers[CustomerId].Carts[CartId].Get();
|
||||
lineItems = cart.LineItems.ToList();
|
||||
|
||||
cartLineItem = new CartLineItem();
|
||||
cartLineItem.CopyFrom(LineItem);
|
||||
|
||||
lineItems.Add(cartLineItem);
|
||||
|
||||
cart = Partner.Customers[CustomerId].Carts[CartId].Put(cart);
|
||||
|
||||
WriteObject(new PSCart(cart));
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
cart = null;
|
||||
cartLineItem = null;
|
||||
lineItems = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,105 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="AddPartnerCustomerUserRoleMember.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Management.Automation;
|
||||
using System.Text.RegularExpressions;
|
||||
using Common;
|
||||
using Exceptions;
|
||||
using PartnerCenter.Models.Roles;
|
||||
using PartnerCenter.Models.Users;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a list of roles for the specified customer user from Partner Center.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Add, "PartnerCustomerUserRoleMember"), OutputType(typeof(bool))]
|
||||
public class AddPartnerCustomerUserRoleMember : PartnerPSCmdlet
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the required customer identifier.
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = true, HelpMessage = "The identifier for the customer.")]
|
||||
[ValidatePattern(@"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$", Options = RegexOptions.Compiled)]
|
||||
public string CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user identifier.
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = false, HelpMessage = "The identifier for the customer user.")]
|
||||
[ValidatePattern(@"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$", Options = RegexOptions.Compiled)]
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the role identifier.
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = false, HelpMessage = "The identifier for the role.")]
|
||||
[ValidateNotNull]
|
||||
public string RoleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
UserId.AssertNotEmpty(nameof(UserId));
|
||||
RoleId.AssertNotEmpty(nameof(RoleId));
|
||||
|
||||
CustomerUser user = GetUserById(CustomerId, UserId);
|
||||
|
||||
try
|
||||
{
|
||||
UserMember newMember = new UserMember()
|
||||
{
|
||||
UserPrincipalName = user.UserPrincipalName,
|
||||
DisplayName = user.DisplayName,
|
||||
Id = user.Id
|
||||
};
|
||||
|
||||
Partner.Customers[CustomerId].DirectoryRoles[RoleId].UserMembers.Create(newMember);
|
||||
WriteObject(true);
|
||||
}
|
||||
catch (PSPartnerException ex)
|
||||
{
|
||||
throw new PSPartnerException($"Error adding user {UserId} to role {RoleId}", ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
user = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets details for a specified user and customer from Partner Center.
|
||||
/// </summary>
|
||||
/// <param name="customerId">Identifier of the customer.</param>
|
||||
/// <param name="userId">Identifier of the user.</param>
|
||||
/// <exception cref="System.ArgumentException">
|
||||
/// <paramref name="customerId"/> is empty or null.
|
||||
/// </exception>
|
||||
private CustomerUser GetUserById(string customerId, string userId)
|
||||
{
|
||||
CustomerUser user;
|
||||
|
||||
customerId.AssertNotEmpty(nameof(customerId));
|
||||
userId.AssertNotEmpty(nameof(userId));
|
||||
|
||||
try
|
||||
{
|
||||
user = Partner.Customers[customerId].Users[userId].Get();
|
||||
return user;
|
||||
}
|
||||
catch (PSPartnerException ex)
|
||||
{
|
||||
throw new PSPartnerException("Error finding user:" + userId, ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
user = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="ConnectPartnerCenter.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Management.Automation;
|
||||
using System.Security;
|
||||
using Authentication;
|
||||
using Factories;
|
||||
using Properties;
|
||||
|
||||
/// <summary>
|
||||
/// Cmdlet to log into a Partner Center environment.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommunications.Connect, "PartnerCenter"), OutputType(typeof(PartnerContext))]
|
||||
public class ConnectPartnerCenter : PSCmdlet, IModuleAssemblyInitializer
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the application identifier used to access the Partner Center API.
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = true, HelpMessage = "The application identifier used to access the Partner Center API.")]
|
||||
public string ApplicationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional user credentials to used during the authentication request.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If this parameter is not specified then the user will be prompted for credentials.
|
||||
/// </remarks>
|
||||
[Parameter(Mandatory = false, ParameterSetName = "UserCredential")]
|
||||
public PSCredential Credential { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the optional envrionment name used during the authentication request.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If this parameter is not specified the default Global Cloud envrionment will be used.
|
||||
/// </remarks>
|
||||
[Parameter(Mandatory = false, HelpMessage = "Name of the environment containing the account to log into")]
|
||||
[Alias("EnvironmentName")]
|
||||
[ValidateNotNullOrEmpty]
|
||||
public EnvironmentName Environment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Operations that happen before the cmdlet is executed.
|
||||
/// </summary>
|
||||
protected override void BeginProcessing()
|
||||
{
|
||||
if (!PartnerEnvironment.PublicEnvironments.ContainsKey(Environment))
|
||||
{
|
||||
throw new PSInvalidOperationException(Resources.InvalidEnvironmentException);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Operations that are performed when the Partner Center module is imported.
|
||||
/// </summary>
|
||||
public void OnImport()
|
||||
{
|
||||
if (PartnerSession.Instance.AuthenticationFactory == null)
|
||||
{
|
||||
PartnerSession.Instance.AuthenticationFactory = new AuthenticationFactory();
|
||||
}
|
||||
|
||||
if (PartnerSession.Instance.ClientFactory == null)
|
||||
{
|
||||
PartnerSession.Instance.ClientFactory = new ClientFactory();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs the execution of the command.
|
||||
/// </summary>
|
||||
protected override void ProcessRecord()
|
||||
{
|
||||
SecureString password = null;
|
||||
string username = string.Empty;
|
||||
|
||||
if (Credential != null)
|
||||
{
|
||||
password = Credential.Password;
|
||||
username = Credential.UserName;
|
||||
}
|
||||
|
||||
PartnerProfile.Instance.Context = PartnerSession.Instance.AuthenticationFactory.Authenticate(
|
||||
ApplicationId,
|
||||
Environment,
|
||||
username,
|
||||
password,
|
||||
"common");
|
||||
|
||||
WriteObject(PartnerProfile.Instance.Context);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="GetPartnerAgreementDetail.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Linq;
|
||||
using System.Management.Automation;
|
||||
using Models.Agreements;
|
||||
using PartnerCenter.Models;
|
||||
using PartnerCenter.Models.Agreements;
|
||||
|
||||
/// <summary>
|
||||
/// Gets a metadata for the available agreements.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Get, "PartnerAgreementDetail"), OutputType(typeof(PSAgreementMetaData))]
|
||||
public class GetPartnerAgreementDetail : PartnerPSCmdlet
|
||||
{
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
ResourceCollection<AgreementMetaData> agreements;
|
||||
|
||||
try
|
||||
{
|
||||
agreements = Partner.AgreementDetails.Get();
|
||||
|
||||
WriteObject(agreements.Items.Select(a => new PSAgreementMetaData(a)), true);
|
||||
}
|
||||
finally
|
||||
{
|
||||
agreements = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="GetPartnerAuditRecord.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Management.Automation;
|
||||
using Enumerators;
|
||||
using Models.Auditing;
|
||||
using PartnerCenter.Models;
|
||||
using PartnerCenter.Models.Auditing;
|
||||
using Properties;
|
||||
|
||||
/// <summary>
|
||||
/// Cmdlet that retrieves audit records from Partner Center.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Get, "PartnerAuditRecord"), OutputType(typeof(PSAuditRecord))]
|
||||
public class GetPartnerAuditRecord : PartnerPSCmdlet
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the end date porition of the query.
|
||||
/// </summary>
|
||||
[Parameter(HelpMessage = "The end date of the audit record logs.", Mandatory = false)]
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the start date porition of the query.
|
||||
/// </summary>
|
||||
[Parameter(HelpMessage = "The start date of the audit record logs.", Mandatory = false)]
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
DateTime endDate;
|
||||
IResourceCollectionEnumerator<SeekBasedResourceCollection<AuditRecord>> enumerator;
|
||||
List<PSAuditRecord> records;
|
||||
SeekBasedResourceCollection<AuditRecord> auditRecords;
|
||||
|
||||
try
|
||||
{
|
||||
endDate = EndDate ?? DateTime.Now;
|
||||
|
||||
if ((endDate - StartDate).Days >= 90)
|
||||
{
|
||||
throw new PSInvalidOperationException(Resources.AuditRecordDateError);
|
||||
}
|
||||
|
||||
records = new List<PSAuditRecord>();
|
||||
|
||||
foreach (DateTime date in ChunkDate(StartDate, endDate, 30))
|
||||
{
|
||||
auditRecords = Partner.AuditRecords.Query(
|
||||
date);
|
||||
|
||||
enumerator = Partner.Enumerators.AuditRecords.Create(auditRecords);
|
||||
|
||||
while (enumerator.HasValue)
|
||||
{
|
||||
records.AddRange(enumerator.Current.Items.Select(r => new PSAuditRecord(r)));
|
||||
enumerator.Next();
|
||||
}
|
||||
}
|
||||
|
||||
WriteObject(records, true);
|
||||
}
|
||||
finally
|
||||
{
|
||||
auditRecords = null;
|
||||
}
|
||||
}
|
||||
|
||||
private static IEnumerable<DateTime> ChunkDate(DateTime startDate, DateTime endDate, int size)
|
||||
{
|
||||
while (startDate < endDate)
|
||||
{
|
||||
yield return startDate;
|
||||
|
||||
startDate = startDate.AddDays(size);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="GetPartnerAzureRateCard.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Management.Automation;
|
||||
using Models.RateCards;
|
||||
using PartnerCenter.Models.RateCards;
|
||||
|
||||
/// <summary>
|
||||
/// Cmdlet that retrieves Azrue Rate Card details.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Get, "PartnerAzureRateCard"), OutputType(typeof(PSAzureRateCard))]
|
||||
public class GetPartnerAzureRateCard : PartnerPSCmdlet
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the identifier of the customer.
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = false, HelpMessage = "An optional three letter ISO code for the currency in which the resource rates will be provided.")]
|
||||
public string Currency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the offer category.
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = false, HelpMessage = "An optional two-letter ISO country/region code that indicates the market where the offer is purchased.")]
|
||||
public string Region { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a flag indicating whether or not to retrieve the Azure Rate Card for Azure Partner Shared Services (APSS).
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = false, HelpMessage = "Flag indicating whether or not to retrieve the Azure Rate Card for Azure Partner Shared Services (APSS).")]
|
||||
public SwitchParameter SharedServices { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
AzureRateCard rateCard;
|
||||
|
||||
try
|
||||
{
|
||||
if (SharedServices.IsPresent && SharedServices.ToBool())
|
||||
{
|
||||
rateCard = Partner.RateCards.Azure.GetShared(Currency, Region);
|
||||
}
|
||||
else
|
||||
{
|
||||
rateCard = Partner.RateCards.Azure.Get(Currency, Region);
|
||||
}
|
||||
|
||||
WriteObject(new PSAzureRateCard(rateCard));
|
||||
}
|
||||
finally
|
||||
{
|
||||
rateCard = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="GetPartnerBillingProfile.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Management.Automation;
|
||||
using Models.Partners;
|
||||
using PartnerCenter.Models.Partners;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the partner billing profile from Partner Center.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Get, "PartnerBillingProfile"), OutputType(typeof(PSBillingProfile))]
|
||||
public class GetPartnerBillingProfile : PartnerPSCmdlet
|
||||
{
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
BillingProfile profile;
|
||||
|
||||
try
|
||||
{
|
||||
profile = Partner.Profiles.BillingProfile.Get();
|
||||
|
||||
WriteObject(new PSBillingProfile(profile));
|
||||
}
|
||||
finally
|
||||
{
|
||||
profile = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="GetPartnerCountryValidation5.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Management.Automation;
|
||||
using Models.CountryValidationRules;
|
||||
using PartnerCenter.Models.CountryValidationRules;
|
||||
|
||||
[Cmdlet(VerbsCommon.Get, "PartnerCountryValidation"), OutputType(typeof(PSCountryValidationRules))]
|
||||
public class GetPartnerCountryValidation : PartnerPSCmdlet
|
||||
{
|
||||
[Parameter(Mandatory = true, HelpMessage = "The country code in ISO2 format.")]
|
||||
public string CountryCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
CountryValidationRules rules;
|
||||
|
||||
try
|
||||
{
|
||||
rules = Partner.CountryValidationRules.ByCountry(CountryCode).Get();
|
||||
WriteObject(new PSCountryValidationRules(rules));
|
||||
}
|
||||
finally
|
||||
{
|
||||
rules = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,110 @@
|
|||
// -----------------------------------------------------------------------
|
||||
// <copyright file="GetPartnerCustomer.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Management.Automation;
|
||||
using System.Text.RegularExpressions;
|
||||
using Common;
|
||||
using Enumerators;
|
||||
using Models.Customers;
|
||||
using PartnerCenter.Models;
|
||||
using PartnerCenter.Models.Customers;
|
||||
|
||||
/// <summary>
|
||||
/// Get a customer, or a list of customers, from Partner Center.
|
||||
/// </summary>
|
||||
[Cmdlet(VerbsCommon.Get, "PartnerCustomer"), OutputType(typeof(PSCustomer))]
|
||||
public class GetPartnerCustomer : PartnerPSCmdlet
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the optional customer identifier.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// If this parameter is not specified then a list of customers will be returned.
|
||||
/// When it is specified then the customer associated with the identifier will be returned.
|
||||
/// </remarks>
|
||||
[Parameter(HelpMessage = "The identifier for the customer.", Mandatory = false, Position = 0)]
|
||||
[ValidatePattern(@"^(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}$", Options = RegexOptions.Compiled)]
|
||||
public string CustomerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Executes the operations associated with the cmdlet.
|
||||
/// </summary>
|
||||
public override void ExecuteCmdlet()
|
||||
{
|
||||
if (string.IsNullOrEmpty(CustomerId))
|
||||
{
|
||||
GetCustomers();
|
||||
}
|
||||
else
|
||||
{
|
||||
GetCustomer(CustomerId);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the specified customer from Partner Center.
|
||||
/// </summary>
|
||||
/// <param name="customerId">Identifier of the customer.</param>
|
||||
/// <exception cref="System.ArgumentException">
|
||||
/// <paramref name="customerId"/> is empty or null.
|
||||
/// </exception>
|
||||
private void GetCustomer(string customerId)
|
||||
{
|
||||
Customer customer;
|
||||
|
||||
customerId.AssertNotEmpty(nameof(customerId));
|
||||
|
||||
try
|
||||
{
|
||||
customer = Partner.Customers[customerId].Get();
|
||||
|
||||
WriteObject(new PSCustomer(customer));
|
||||
}
|
||||
finally
|
||||
{
|
||||
customer = null;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a list of customers from Partner Center.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The maximum number of customers returned by the Partner Center API in a single call is 500.
|
||||
/// So, we will need to use an enumerator to return all the available customers.
|
||||
/// </remarks>
|
||||
private void GetCustomers()
|
||||
{
|
||||
IResourceCollectionEnumerator<SeekBasedResourceCollection<Customer>> customersEnumerator;
|
||||
List<Customer> customers;
|
||||
SeekBasedResourceCollection<Customer> seekCustomers;
|
||||
|
||||
try
|
||||
{
|
||||
customers = new List<Customer>();
|
||||
|
||||
seekCustomers = Partner.Customers.Get();
|
||||
customersEnumerator = Partner.Enumerators.Customers.Create(seekCustomers);
|
||||
|
||||
while (customersEnumerator.HasValue)
|
||||
{
|
||||
customers.AddRange(customersEnumerator.Current.Items);
|
||||
customersEnumerator.Next();
|
||||
}
|
||||
|
||||
WriteObject(customers.Select(c => new PSCustomer(c)), true);
|
||||
}
|
||||
finally
|
||||
{
|
||||
customers = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче