New Azure experience in CSP support (#173)

This commit is contained in:
Isaiah Williams 2019-10-17 08:14:31 -05:00 коммит произвёл GitHub
Родитель 6a41262e8f
Коммит ab3d28407f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
31 изменённых файлов: 1017 добавлений и 57 удалений

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

@ -20,6 +20,25 @@
# Change Log
## 2.0.1910.1-preview
* Invoicing
* [Daily Rated Usage Line Item](https://github.com/microsoft/Partner-Center-PowerShell/blob/master/src/PowerShell/Models/Invoices/PSDailyRatedUsageLineItem.cs)
* Added the *EntitlementId*, *EntitlementDescription*, *PCToBCExchangeRate*, *PCToBCExchangeRateDate*, *EffectiveUnitPrice*, and *RateOfPartnerEarnedCredit* properties
* Modified the type for the *AdditionalInfo* and *Tags* properties from string to *Dictionary<string, string>*
* [One Time Invoice Line Item](https://github.com/microsoft/Partner-Center-PowerShell/blob/master/src/PowerShell/Models/Invoices/PSOneTimeInvoiceLineItem.cs)
* Added the *BillableQuantity*, *MeterDescription*, *PCToBCExchangeRateDate*, *PCToBCExchangeRate*, *PriceAdjustmentDescription*, and *PricingCurrency* properties
* Product Upgrades
* Added the [Get-PartnerProductUpgrade](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgrade) command to get information on product upgrades for the specified customer
* Added the [Get-PartnerProductUpgradeEligibility](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgrade) command to determine if the specified customer has a product eligible for an upgrade
* Added the [Get-PartnerProductUpgradeStatus](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgradeStatus) command to get the status for product upgrades for the specified customer
* Added the [New-PartnerProductUpgrade](https://docs.microsoft.com/powershell/module/partnercenter/New-PartnerProductUpgrade) command to perform an upgrade for the specified customer
* Subscriptions
* Added the [Get-PartnerCustomerAzurePlanEntitlement](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerAzurePlanEntitlement) command to get entitlement information for an Azure Plan
* Usage
* Added the [Get-PartnerCustomerUsageRecord](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerUsageRecord) command to get month usage records for all customers
* Removed the `Get-PartnerCustomerSubscriptionUsage` command due to changes with the Partner Center SDK for .NET. This command will be replaced with the [Get-PartnerCustomerSubscriptionMeterUsage](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerSubscriptionMeterUsage) and [Get-PartnerCustomerSubscriptionResourceUsage](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerSubscriptionResourceUsage) commands
## 2.0.1909.5
* Dependency
@ -27,7 +46,7 @@
## 2.0.1909.4
* Authentication
* Authentication
* Log events from the Microsoft Authentication Library (MSAL) will now be written to the console when the debug flag is set
## 2.0.1909.3

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

@ -2,7 +2,7 @@
<package>
<metadata>
<id>PartnerCenter</id>
<version>2.0.1910.1</version>
<version>2.0.1910.1-preview</version>
<authors>Microsoft Corporation</authors>
<owners>Microsoft</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>

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

@ -39,7 +39,22 @@ PS C:\>
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.
Adds a line item to purchase a reserved instance to the specified cart.
### Example 2
```powershell
PS C:\> $lineItem = New-Object -TypeName Microsoft.Store.PartnerCenter.PowerShell.Models.Carts.PSCartLineItem
PS C:\>
PS C:\> $lineItem.BillingCycle = 'OneTime'
PS C:\> $lineItem.CatalogItemId = 'DZH318Z0BPS6:0001:DZH318Z0BML6'
PS C:\> $lineItem.FriendlyName = 'Microsoft Azure Plan'
PS C:\> $lineItem.Quantity = 1
PS C:\>
PS C:\> Add-PartnerCustomerCartLineItem -CartId '65faf57b-0205-47ee-92b3-08dcf233ea73' -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -LineItem $lineItem
```
Adds a line item to purchase the Microsoft Azure Plan to the specified cart.
## PARAMETERS

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

@ -0,0 +1,78 @@
---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerAzurePlanEntitlement.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerAzurePlanEntitlement
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerAzurePlanEntitlement.md
schema: 2.0.0
---
# Get-PartnerCustomerAzurePlanEntitlement
## SYNOPSIS
Gets an Azure Plan's subscription entitlements.
## SYNTAX
```powershell
Get-PartnerCustomerAzurePlanEntitlement -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
```
## DESCRIPTION
Gets an Azure Plan's subscription entitlements.
## EXAMPLES
### Example 1
```powershell
PS C:\> Get-PartnerCustomerAzurePlanEntitlement -CustomerId '78ca6954-7016-4248-be6d-7ce4315a9431' -SubscriptionId '3c94c76e-ab23-49f1-b1a7-6959599f48cd'
```
Gets an Azure Plan's subscription entitlements.
## 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.Models.Subscriptions.AzureEntitlement
## NOTES
## RELATED LINKS

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

@ -1,34 +1,34 @@
---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerSubscriptionUsage.md
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerSubscriptionMeterUsage.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerSubscriptionUsage
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerSubscriptionUsage.md
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerSubscriptionMeterUsage
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerSubscriptionMeterUsage.md
schema: 2.0.0
---
# Get-PartnerCustomerSubscriptionUsage
# Get-PartnerCustomerSubscriptionMeterUsage
## SYNOPSIS
Gets a collection resource that contains a list of services within a customer's subscription and their associated rated usage information.
Gets the subscription's meter usage records.
## SYNTAX
```powershell
Get-PartnerCustomerSubscriptionUsage -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
Get-PartnerCustomerSubscriptionMeterUsage -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
```
## DESCRIPTION
Gets a collection resource that contains a list of services within a customer's subscription and their associated rated usage information.
Gets the subscription's meter usage records.
## EXAMPLES
### Example 1
```powershell
PS C:\> Get-PartnerCustomerSubscriptionUsage -CustomerId '46a62ece-10ad-42e5-b3f1-b2ed53e6fc08' -SubscriptionId '9ed730f0-882a-4c15-b4bc-7bb84da69835'
PS C:\> Get-PartnerCustomerSubscriptionMeterUsage -CustomerId 'aafb0edb-d0e1-4221-8862-1609fccac9b4' -SubscriptionId 'ed7b62ca-7440-4c4c-8f5d-b898258932d5'
```
Gets a collection resource that contains a list of services within a customer's subscription and their associated rated usage information.
Gets the subscription's meter usage records.
## PARAMETERS
@ -71,7 +71,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
### Microsoft.Store.PartnerCenter.PowerShell.Models.Usage.PSAzureResourceMonthlyUsageRecord
### Microsoft.Store.PartnerCenter.PowerShell.Models.Usage.PSMeterUsageRecord
## NOTES

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

@ -0,0 +1,78 @@
---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerSubscriptionResourceUsage.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerSubscriptionResourceUsage
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerSubscriptionResourceUsage.md
schema: 2.0.0
---
# Get-PartnerCustomerSubscriptionResourceUsage
## SYNOPSIS
Gets the subscription's resource usage records.
## SYNTAX
```powershell
Get-PartnerCustomerSubscriptionResourceUsage -CustomerId <String> -SubscriptionId <String> [<CommonParameters>]
```
## DESCRIPTION
Gets the subscription's resource usage records.
## EXAMPLES
### Example 1
```powershell
PS C:\> Get-PartnerCustomerSubscriptionResourceUsage -CustomerId '87045e4b-ab69-4a8f-875a-af020b383bc6' -SubscriptionId 'd2a89f2d-1aa1-4f09-bc62-cefd8d0a005c'
```
Gets the subscription's resource usage records.
## 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.Usage.PSResourceUsageRecord
## NOTES
## RELATED LINKS

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

@ -0,0 +1,48 @@
---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerUsageRecord.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerUsageRecord
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerCustomerUsageRecord.md
schema: 2.0.0
---
# Get-PartnerCustomerUsageRecord
## SYNOPSIS
Gets customer monthly usage records for all customers.
## SYNTAX
```powershell
Get-PartnerCustomerUsageRecord [<CommonParameters>]
```
## DESCRIPTION
Gets customer monthly usage records for all customers.
## EXAMPLES
### Example 1
```powershell
PS C:\> Get-PartnerCustomerUsageRecord
```
Gets customer monthly usage records 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.Usage.PSCustomerUsageSummary
## NOTES
## RELATED LINKS

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

@ -0,0 +1,79 @@
---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerProductUpgradeEligibility.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgradeEligibility
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerProductUpgradeEligibility.md
schema: 2.0.0
---
# Get-PartnerProductUpgradeEligibility
## SYNOPSIS
Gets the product upgrade eligibility for the specified customer and product family.
## SYNTAX
```powershell
Get-PartnerProductUpgradeEligibility -CustomerId <String> -ProductFamily <String> [<CommonParameters>]
```
## DESCRIPTION
Gets the product upgrade eligibility for the specified customer and product family.
## EXAMPLES
### Example 1
```powershell
PS C:\> Get-PartnerProductUpgradeEligibility -CustomerId 'f6321248-b08d-468d-a895-34ecd57714d0' -ProductFamily Azure
```
Gets the product upgrade eligibility for the specified customer and product family.
## 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
```
### -ProductFamily
The family for the product.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Azure
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.Models.ProductUpgrades.ProductUpgradeEligibility
## NOTES
## RELATED LINKS

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

@ -0,0 +1,95 @@
---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerProductUpgradeStatus.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgradeStatus
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerProductUpgradeStatus.md
schema: 2.0.0
---
# Get-PartnerProductUpgradeStatus
## SYNOPSIS
Gets the product upgrade status for the specified customer and product family.
## SYNTAX
```powershell
Get-PartnerProductUpgradeStatus -CustomerId <String> -ProductFamily <String> -UpgradeId <String>
[<CommonParameters>]
```
## DESCRIPTION
Gets the product upgrade status for the specified customer and product family.
## EXAMPLES
### Example 1
```powershell
PS C:\> Get-PartnerProductUpgradeStatus -CustomerId '409fb479-1106-41a1-91be-0ae69e880a20' -ProductFamily Azure
```
Gets the product upgrade status for the specified customer and product family.
## 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
```
### -ProductFamily
The family for the product.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Azure
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -UpgradeId
The identifier of the product upgrade.
```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.Models.ProductUpgrades.ProductUpgradeStatus
## NOTES
## RELATED LINKS

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

@ -186,7 +186,7 @@ Accept wildcard characters: False
```
### -ServicePrincipal
{{ Fill ServicePrincipal Description }}
Indicates that this account authenticates by providing service principal credentials.
```yaml
Type: SwitchParameter

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

@ -0,0 +1,79 @@
---
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/New-PartnerProductUpgrade.md
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
Module Name: PartnerCenter
online version: https://docs.microsoft.com/powershell/module/partnercenter/New-PartnerProductUpgrade
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/New-PartnerProductUpgrade.md
schema: 2.0.0
---
# New-PartnerProductUpgrade
## SYNOPSIS
Creates a product upgrade request for the specified customer.
## SYNTAX
```powershell
New-PartnerProductUpgrade -CustomerId <String> -ProductFamily <String> [<CommonParameters>]
```
## DESCRIPTION
Creates a product upgrade request for the specified customer.
## EXAMPLES
### Example 1
```powershell
PS C:\> New-PartnerProductUpgrade -CustomerId '2d92ed1b-338d-4448-9d5e-56bab44b2a97' -ProductFamily Azure
```
Creates a product upgrade request for the specified customer.
## 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
```
### -ProductFamily
The family for the product.
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Azure
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.Models.ProductUpgrades.ProductUpgradeRequest
## NOTES
## RELATED LINKS

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

@ -50,6 +50,9 @@ Gets a specific customer or a list of available customers.
### [Get-PartnerCustomerAgreement](Get-PartnerCustomerAgreement.md)
Gets confirmation of customer acceptance provided previously.
### [Get-PartnerCustomerAzurePlanEntitlement](Get-PartnerCustomerAzurePlanEntitlement.md)
Gets an Azure Plan's subscription entitlements.
### [Get-PartnerCustomerBillingProfile](Get-PartnerCustomerBillingProfile.md)
Gets the customer's billing profile.
@ -104,27 +107,33 @@ Gets a list or a single customer subscription.
### [Get-PartnerCustomerSubscriptionAddOn](Get-PartnerCustomerSubscriptionAddOn.md)
Gets the purchased add-ons for the specified subscription.
### [Get-PartnerCustomerSubscriptionMeterUsage](Get-PartnerCustomerSubscriptionMeterUsage.md)
Gets the subscription's meter usage records.
### [Get-PartnerCustomerSubscriptionProvisioningStatus](Get-PartnerCustomerSubscriptionProvisioningStatus.md)
Gets the provisioning status for the specified subscription.
### [Get-PartnerCustomerSubscriptionRegistrationStatus](Get-PartnerCustomerSubscriptionRegistrationStatus.md)
Gets the subscription registration status.
### [Get-PartnerCustomerSubscriptionResourceUsage](Get-PartnerCustomerSubscriptionResourceUsage.md)
Gets the subscription's resource usage records.
### [Get-PartnerCustomerSubscriptionSupportContact](Get-PartnerCustomerSubscriptionSupportContact.md)
Gets the support contact for the specified subscription.
### [Get-PartnerCustomerSubscriptionUpgrades](Get-PartnerCustomerSubscriptionUpgrades.md)
Gets the available upgrade offers for the specified subscription.
### [Get-PartnerCustomerSubscriptionUsage](Get-PartnerCustomerSubscriptionUsage.md)
Gets a collection resource that contains a list of services within a customer's subscription and their associated rated usage information.
### [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-PartnerCustomerUsageRecord](Get-PartnerCustomerUsageRecord.md)
Gets customer monthly usage records for all customers.
### [Get-PartnerCustomerUsageSummary](Get-PartnerCustomerUsageSummary.md)
Gets the customer's usage of a specific Azure service or resource during the current billing period.
@ -194,6 +203,12 @@ Checks the inventory for the specified product.
### [Get-PartnerProductSku](Get-PartnerProductSku.md)
Gets the list of SKUs for a product.
### [Get-PartnerProductUpgradeEligibility](Get-PartnerProductUpgradeEligibility.md)
Gets the product upgrade eligibility for the specified customer and product family.
### [Get-PartnerProductUpgradeStatus](Get-PartnerProductUpgradeStatus.md)
Gets the product upgrade status for the specified customer and product family.
### [Get-PartnerResellerRequestLink](Get-PartnerResellerRequestLink.md)
Gets a relationship request URL to send to a customer.
@ -251,6 +266,9 @@ Registers the specified subscription.
### [New-PartnerCustomerUser](New-PartnerCustomerUser.md)
Creates a new user in the specified customer Azure Active Directory tenant.
### [New-PartnerProductUpgrade](New-PartnerProductUpgrade.md)
Creates a product upgrade request for the specified customer.
### [New-PartnerServiceRequest](New-PartnerServiceRequest.md)
Creates a service request at the partner level.

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

@ -23,6 +23,11 @@
# Upcoming Breaking Changes
## Release 2.0.1910.1 - October 2019
* Usage
* Removed the `Get-PartnerCustomerSubscriptionUsage` command due to changes with the Partner Center SDK for .NET. This command will be replaced with the [Get-PartnerCustomerSubscriptionMeterUsage](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerSubscriptionMeterUsage) and [Get-PartnerCustomerSubscriptionResourceUsage](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerSubscriptionResourceUsage) commands
## Release 2.0.1909.1 - September 2019
* Authentication

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

@ -0,0 +1,46 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
{
using System.Management.Automation;
using System.Text.RegularExpressions;
using PartnerCenter.Models;
using PartnerCenter.Models.Subscriptions;
/// <summary>
/// Gets a list of Azure Plan entitlements for a customer from Partner Center.
/// </summary>
[Cmdlet(VerbsCommon.Get, "PartnerCustomerAzurePlanEntitlement"), OutputType(typeof(AzureEntitlement))]
public class GetPartnerCustomerAzurePlanEntitlement : PartnerPSCmdlet
{
/// <summary>
/// Gets or sets the 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 | RegexOptions.IgnoreCase)]
public string CustomerId { get; set; }
/// <summary>
/// Gets or sets the subscription identifier.
/// </summary>
[Parameter(HelpMessage = "The identifier for the subscription.", 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 | RegexOptions.IgnoreCase)]
public string SubscriptionId { get; set; }
/// <summary>
/// Executes the operations associated with the cmdlet.
/// </summary>
public override void ExecuteCmdlet()
{
ResourceCollection<AzureEntitlement> entitlements = Partner.Customers[CustomerId]
.Subscriptions[SubscriptionId]
.GetAzurePlanSubscriptionEntitlementsAsync()
.ConfigureAwait(false)
.GetAwaiter()
.GetResult();
WriteObject(entitlements, true);
}
}
}

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

@ -10,8 +10,8 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
using PartnerCenter.Models;
using PartnerCenter.Models.Usage;
[Cmdlet(VerbsCommon.Get, "PartnerCustomerSubscriptionUsage"), OutputType(typeof(PSAzureResourceMonthlyUsageRecord))]
public class GetPartnerCustomerSubscriptionUsage : PartnerPSCmdlet
[Cmdlet(VerbsCommon.Get, "PartnerCustomerSubscriptionMeterUsage"), OutputType(typeof(PSMeterUsageRecord))]
public class GetPartnerCustomerSubscriptionMeterUsage : PartnerPSCmdlet
{
/// <summary>
/// Gets or sets the identifier of the customer.
@ -32,10 +32,10 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
/// </summary>
public override void ExecuteCmdlet()
{
ResourceCollection<AzureResourceMonthlyUsageRecord> usageRecords;
ResourceCollection<MeterUsageRecord> usageRecords;
usageRecords = Partner.Customers[CustomerId].Subscriptions[SubscriptionId].UsageRecords.Resources.GetAsync().GetAwaiter().GetResult();
WriteObject(usageRecords.Items.Select(r => new PSAzureResourceMonthlyUsageRecord(r)), true);
usageRecords = Partner.Customers[CustomerId].Subscriptions[SubscriptionId].UsageRecords.ByMeter.GetAsync().GetAwaiter().GetResult();
WriteObject(usageRecords.Items.Select(r => new PSMeterUsageRecord(r)), true);
}
}
}

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

@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
{
using System.Linq;
using System.Management.Automation;
using System.Text.RegularExpressions;
using Models.Usage;
using PartnerCenter.Models;
using PartnerCenter.Models.Usage;
[Cmdlet(VerbsCommon.Get, "PartnerCustomerSubscriptionResourceUsage"), OutputType(typeof(PSResourceUsageRecord))]
public class GetPartnerCustomerSubscriptionResourceUsage : PartnerPSCmdlet
{
/// <summary>
/// Gets or sets the identifier of the customer.
/// </summary>
[Parameter(Mandatory = true, HelpMessage = "The identifier of 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 | RegexOptions.IgnoreCase)]
public string CustomerId { get; set; }
/// <summary>
/// Gets or sets the identifier of the subscription.
/// </summary>
[Parameter(Mandatory = true, HelpMessage = "The identifier of the subscription.")]
[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 | RegexOptions.IgnoreCase)]
public string SubscriptionId { get; set; }
/// <summary>
/// Executes the operations associated with the cmdlet.
/// </summary>
public override void ExecuteCmdlet()
{
ResourceCollection<ResourceUsageRecord> usageRecords;
usageRecords = Partner.Customers[CustomerId].Subscriptions[SubscriptionId].UsageRecords.ByResource.GetAsync().GetAwaiter().GetResult();
WriteObject(usageRecords.Items.Select(r => new PSResourceUsageRecord(r)), true);
}
}
}

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

@ -0,0 +1,25 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
{
using System.Linq;
using System.Management.Automation;
using Models.Usage;
using PartnerCenter.Models;
using PartnerCenter.Models.Usage;
[Cmdlet(VerbsCommon.Get, "PartnerCustomerUsageRecord"), OutputType(typeof(PSCustomerUsageSummary))]
public class GetPartnerCustomerUsageRecord : PartnerPSCmdlet
{
/// <summary>
/// Executes the operations associated with the cmdlet.
/// </summary>
public override void ExecuteCmdlet()
{
ResourceCollection<CustomerMonthlyUsageRecord> usageRecords = Partner.Customers.UsageRecords.GetAsync().ConfigureAwait(false).GetAwaiter().GetResult();
WriteObject(usageRecords.Items.Select(r => new PSCustomerMonthlyUsageRecord(r)), true);
}
}
}

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

@ -0,0 +1,46 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
{
using System.Management.Automation;
using System.Text.RegularExpressions;
using PartnerCenter.Models.ProductUpgrades;
[Cmdlet(VerbsCommon.Get, "PartnerProductUpgradeStatus"), OutputType(typeof(ProductUpgradeStatus))]
public class GetPartnerProductUpgradeStatus : PartnerPSCmdlet
{
/// <summary>
/// Gets or sets the identifier of the customer.
/// </summary>
[Parameter(HelpMessage = "The identifier of 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 | RegexOptions.IgnoreCase)]
public string CustomerId { get; set; }
/// <summary>
/// Gets or set the product family.
/// </summary>
[Parameter(HelpMessage = "The family for the product.", Mandatory = true)]
[ValidateSet("Azure", IgnoreCase = true)]
public string ProductFamily { get; set; }
/// <summary>
/// Gets or sets the identifier of the customer.
/// </summary>
[Parameter(HelpMessage = "The identifier of the product upgrade.", 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 | RegexOptions.IgnoreCase)]
public string UpgradeId { get; set; }
/// <summary>
/// Executes the operations associated with the cmdlet.
/// </summary>
public override void ExecuteCmdlet()
{
Partner.ProductUpgrades.ById(UpgradeId).CheckStatusAsync(new ProductUpgradeRequest
{
CustomerId = CustomerId,
ProductFamily = ProductFamily
}).ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}

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

@ -0,0 +1,39 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
{
using System.Management.Automation;
using System.Text.RegularExpressions;
using PartnerCenter.Models.ProductUpgrades;
[Cmdlet(VerbsCommon.Get, "PartnerProductUpgradeEligibility"), OutputType(typeof(ProductUpgradeEligibility))]
public class GetPartnerProductUpgradeEligibility : PartnerPSCmdlet
{
/// <summary>
/// Gets or sets the identifier of the customer.
/// </summary>
[Parameter(HelpMessage = "The identifier of 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 | RegexOptions.IgnoreCase)]
public string CustomerId { get; set; }
/// <summary>
/// Gets or set the product family.
/// </summary>
[Parameter(HelpMessage = "The family for the product.", Mandatory = true)]
[ValidateSet("Azure", IgnoreCase = true)]
public string ProductFamily { get; set; }
/// <summary>
/// Executes the operations associated with the cmdlet.
/// </summary>
public override void ExecuteCmdlet()
{
Partner.ProductUpgrades.CheckEligibilityAsync(new ProductUpgradeRequest
{
CustomerId = CustomerId,
ProductFamily = ProductFamily
}).ConfigureAwait(false).GetAwaiter().GetResult();
}
}
}

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

@ -0,0 +1,39 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
{
using System.Management.Automation;
using System.Text.RegularExpressions;
using PartnerCenter.Models.ProductUpgrades;
[Cmdlet(VerbsCommon.New, "PartnerProductUpgrade"), OutputType(typeof(ProductUpgradeRequest))]
public class NewPartnerProductUpgrade : PartnerPSCmdlet
{
/// <summary>
/// Gets or sets the identifier of the customer.
/// </summary>
[Parameter(HelpMessage = "The identifier of 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 | RegexOptions.IgnoreCase)]
public string CustomerId { get; set; }
/// <summary>
/// Gets or set the product family.
/// </summary>
[Parameter(HelpMessage = "The family for the product.", Mandatory = true)]
[ValidateSet("Azure", IgnoreCase = true)]
public string ProductFamily { get; set; }
/// <summary>
/// Executes the operations associated with the cmdlet.
/// </summary>
public override void ExecuteCmdlet()
{
WriteObject(Partner.ProductUpgrades.CreateAsync(new ProductUpgradeRequest
{
CustomerId = CustomerId,
ProductFamily = ProductFamily
}).ConfigureAwait(false).GetAwaiter().GetResult());
}
}
}

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

@ -4,6 +4,7 @@
namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
{
using System;
using System.Collections.Generic;
using Extensions;
using PartnerCenter.Models.Invoices;
@ -170,17 +171,17 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
/// <summary>
/// Gets or sets the uri of the resource instance that the usage is about.
/// </summary>
public Uri ResourceUri { get; set; }
public string ResourceUri { get; set; }
/// <summary>
/// Gets or sets the customer added tags. For more information, see Organize your Azure resources with tags.
/// Gets or sets the customer added tags.
/// </summary>
public string Tags { get; set; }
public IDictionary<string, string> Tags { get; private set; }
/// <summary>
/// Gets or sets the service-specific metadata. For example, an image type for a virtual machine.
/// </summary>
public string AdditionalInfo { get; set; }
public IDictionary<string, string> AdditionalInfo { get; private set; }
/// <summary>
/// Gets or sets internal Azure Service Metadata.
@ -247,6 +248,36 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
/// </summary>
public string PricingCurrency { get; set; }
/// <summary>
/// Gets or sets the entitlement (azure's subscription) id.
/// </summary>
public string EntitlementId { get; set; }
/// <summary>
/// Gets or sets the entitlement (azure's subscription) description.
/// </summary>
public string EntitlementDescription { get; set; }
/// <summary>
/// Gets or sets the pricing currency to billing currency exchange rate.
/// </summary>
public decimal PCToBCExchangeRate { get; set; }
/// <summary>
/// Gets or sets the pricing currency to billing currency exchange rate date.
/// </summary>
public DateTime? PCToBCExchangeRateDate { get; set; }
/// <summary>
/// Gets or sets the effective unit price.
/// </summary>
public decimal EffectiveUnitPrice { get; set; }
/// <summary>
/// Gets or sets the rate of partner earned credit.
/// </summary>
public decimal RateOfPartnerEarnedCredit { get; set; }
/// <summary>
/// Returns the type of invoice line item
/// </summary>

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

@ -37,6 +37,11 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
/// </summary>
public string AvailabilityId { get; set; }
/// <summary>
/// Gets or sets the units purchased. Per design column named as BillableQuantity.
/// </summary>
public decimal BillableQuantity { get; set; }
/// <summary>
/// Gets the billing provider.
/// </summary>
@ -106,6 +111,11 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
/// </summary>
public string InvoiceNumber { get; set; }
/// <summary>
/// Gets or sets the description for the meter.
/// </summary>
public string MeterDescription { get; set; }
/// <summary>
/// Gets or sets the MPN identifier associated to this line item.
/// </summary>
@ -126,6 +136,26 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
/// </summary>
public string PartnerId { get; set; }
/// <summary>
/// Gets or sets the exchange rate date at which the pricing currency to billing currency exchange rate was determined.
/// </summary>
public DateTime? PCToBCExchangeRateDate { get; set; }
/// <summary>
/// Gets or sets the pricing currency to billing currency exchange rate.
/// </summary>
public decimal PCToBCExchangeRate { get; set; }
/// <summary>
/// Gets or sets the price adjustment description.
/// </summary>
public string PriceAdjustmentDescription { get; set; }
/// <summary>
/// Gets or sets the pricing currency code.
/// </summary>
public string PricingCurrency { get; set; }
/// <summary>
/// Gets or sets the product unique identifier.
/// </summary>
@ -172,7 +202,7 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
public string SubscriptionDescription { get; set; }
/// <summary>
/// Gets or sets the subscription id associated with this purchase.
/// Gets or sets the subscription identifier associated with this purchase.
/// </summary>
public string SubscriptionId { get; set; }
@ -202,7 +232,7 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Invoices
public decimal UnitPrice { get; set; }
/// <summary>
/// Gets or sets the unit type.
/// Gets or sets the type of unit.
/// </summary>
public string UnitType { get; set; }
}

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

@ -0,0 +1,56 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
{
using Extensions;
using PartnerCenter.Models.Usage;
/// <summary>
/// Defines the monthly usage record of a customer for all its subscriptions.
/// </summary>
public sealed class PSCustomerMonthlyUsageRecord : PSUsageRecordBase
{
/// <summary>
/// Initializes a new instance of the <see cref="PSCustomerUsageSummary" /> class.
/// </summary>
public PSCustomerMonthlyUsageRecord()
{ }
/// <summary>
/// Initializes a new instance of the <see cref="PSCustomerMonthlyUsageRecord" /> class.
/// </summary>
/// <param name="resource">The base resource for the instance.</param>
public PSCustomerMonthlyUsageRecord(CustomerMonthlyUsageRecord resource)
{
this.CopyFrom(resource, CloneAdditionalOperations);
}
/// <summary>
/// Gets or sets the spending budget allocated for the customer.
/// </summary>
public PSSpendingBudget Budget { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the customer's Azure subscription was upgraded.
/// </summary>
/// <value>
/// <c>true</c> if this customer's Azure subscription was upgraded; otherwise, <c>false</c>.
/// </value>
public bool IsUpgraded { get; set; }
/// <summary>
/// Gets or sets the percentage used out of the allocated budget.
/// </summary>
public decimal PercentUsed { get; set; }
/// <summary>
/// Additional operations to be performed when cloning an instance of <see cref="CustomerMonthlyUsageRecord" /> to an instance of <see cref="PSCustomerMonthlyUsageRecord" />.
/// </summary>
/// <param name="resource">The reosurce being cloned.</param>
private void CloneAdditionalOperations(CustomerMonthlyUsageRecord resource)
{
Budget = new PSSpendingBudget(resource.Budget);
}
}
}

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

@ -44,7 +44,7 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
/// <summary>
/// Additional operations to be performed when cloning an instance of <see cref="CustomerUsageSummary" /> to an instance of <see cref="PSCustomerUsageSummary" />.
/// </summary>
/// <param name="customerUsageSummary">The cart being cloned.</param>
/// <param name="summary">The reosurce being cloned.</param>
private void CloneAdditionalOperations(CustomerUsageSummary summary)
{
Budget = new PSSpendingBudget(summary.Budget);

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

@ -4,57 +4,58 @@
namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
{
using Extensions;
using PartnerCenter.Models.Usage;
using Microsoft.Store.PartnerCenter.Models.Usage;
/// <summary>
/// Defines the monthly usage record for an Azure subscription resource.
/// Defines the estimated monetary cost of a subscription's meter level usage in the current billing cycle.
/// </summary>
public sealed class PSAzureResourceMonthlyUsageRecord : PSUsageRecordBase
public sealed class PSMeterUsageRecord : PSUsageRecordBase
{
/// <summary>
/// Initializes a new instance of the <see cref="PSAzureResourceMonthlyUsageRecord" /> class.
/// Initializes a new instance of the <see cref="PSMeterUsageRecord" /> class.
/// </summary>
public PSAzureResourceMonthlyUsageRecord()
public PSMeterUsageRecord()
{ }
/// <summary>
/// Initializes a new instance of the <see cref="PSAzureResourceMonthlyUsageRecord" /> class.
/// Initializes a new instance of the <see cref="PSMeterUsageRecord" /> class.
/// </summary>
/// <param name="usageRecord">The base usage record for this instance.</param>
public PSAzureResourceMonthlyUsageRecord(AzureResourceMonthlyUsageRecord usageRecord)
/// <param name="resource">The base resource for this instance.</param>
public PSMeterUsageRecord(MeterUsageRecord resource)
{
this.CopyFrom(usageRecord);
this.CopyFrom(resource);
}
/// <summary>
/// Gets or sets the Azure resource category.
/// </summary>
public string Category { get; set; }
/// <summary>
/// Gets or sets the meter Id.
/// </summary>
public string MeterId { get; set; }
/// <summary>
/// Gets or sets the meter name.
/// </summary>
public string MeterName { get; set; }
/// <summary>
/// Gets or sets the quantity of the Azure resource used.
/// </summary>
public decimal QuantityUsed { get; set; }
/// <summary>
/// Gets or sets the Azure resource unique identifier.
/// </summary>
public new string ResourceId { get; set; }
/// <summary>
/// Gets or sets the name of the Azure resource.
/// </summary>
public new string ResourceName { get; set; }
/// <summary>
/// Gets or sets the Azure resource sub-category.
/// </summary>
public string Subcategory { get; set; }
/// <summary>
/// Gets or sets the estimated total cost of usage for the Azure resource.
/// Gets or sets the subscription Id.
/// </summary>
public new decimal TotalCost { get; set; }
public string SubscriptionId { get; set; }
/// <summary>
/// Gets or sets the unit of measure for the Azure resource.

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

@ -0,0 +1,64 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
{
using Extensions;
using PartnerCenter.Models.Usage;
/// <summary>
/// Defines the estimated monetary cost of a subscription's resource level usage in the current billing cycle.
/// </summary>
public sealed class PSResourceUsageRecord : PSUsageRecordBase
{
/// <summary>
/// Initializes a new instance of the <see cref="PSResourceUsageRecord" /> class.
/// </summary>
public PSResourceUsageRecord()
{ }
/// <summary>
/// Initializes a new instance of the <see cref="PSResourceUsageRecord" /> class.
/// </summary>
/// <param name="usageRecord">The base usage record for this instance.</param>
public PSResourceUsageRecord(ResourceUsageRecord usageRecord)
{
this.CopyFrom(usageRecord);
}
/// <summary>
/// Gets or sets the entitlement identifier.
/// </summary>
public string EntitlementId { get; set; }
/// <summary>
/// Gets or sets the entitlement name.
/// </summary>
public string EntitlementName { get; set; }
/// <summary>
/// Gets or sets the name of the resource.
/// </summary>
public string Name { get; set; }
/// <summary>
/// Gets or sets the resource group name.
/// </summary>
public string ResourceGroupName { get; set; }
/// <summary>
/// Gets or sets the resource type.
/// </summary>
public string ResourceType { get; set; }
/// <summary>
/// Gets or sets the resource URI.
/// </summary>
public string ResourceUri { get; set; }
/// <summary>
/// Gets or sets the subscription identifier.
/// </summary>
public string SubscriptionId { get; set; }
}
}

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

@ -11,7 +11,14 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
/// </summary>
public abstract class PSUsageRecordBase
{
/// <summary>Gets or sets the currency locale.</summary>
/// <summary>
/// Gets or sets the currency code.
/// </summary>
public string CurrencyCode { get; set; }
/// <summary>
/// Gets or sets the currency locale.
/// </summary>
public CultureInfo CurrencyLocale { get; set; }
/// <summary>
@ -33,5 +40,10 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
/// Gets or sets the estimated total cost of usage.
/// </summary>
public decimal TotalCost { get; set; }
/// <summary>
/// Gets or sets the estimated total cost in USD.
/// </summary>
public decimal? USDTotalCost { get; set; }
}
}

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

@ -21,6 +21,11 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
/// </summary>
public DateTimeOffset BillingStartDate { get; set; }
/// <summary>
/// Gets or sets the currency code.
/// </summary>
public string CurrencyCode { get; set; }
/// <summary>
/// Gets or sets the currency locale.
/// </summary>
@ -45,5 +50,10 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Models.Usage
/// Gets or sets the total estimated cost based on current usage from the start of the billing period.
/// </summary>
public decimal TotalCost { get; set; }
/// <summary>
/// Gets or sets the estimated total cost in USD.
/// </summary>
public decimal? USDTotalCost { get; set; }
}
}

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

@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 01/01/2019
# Generated on: 10/15/2019
#
@{
@ -87,6 +87,7 @@
'Get-PartnerCountryValidation',
'Get-PartnerCustomer',
'Get-PartnerCustomerAgreement',
'Get-PartnerCustomerAzurePlanEntitlement',
'Get-PartnerCustomerBillingProfile',
'Get-PartnerCustomerCart',
'Get-PartnerCustomerCompanyProfile',
@ -105,13 +106,15 @@
'Get-PartnerCustomerSubscribedSku',
'Get-PartnerCustomerSubscription',
'Get-PartnerCustomerSubscriptionAddOn',
'Get-PartnerCustomerSubscriptionMeterUsage',
'Get-PartnerCustomerSubscriptionProvisioningStatus',
'Get-PartnerCustomerSubscriptionRegistrationStatus',
'Get-PartnerCustomerSubscriptionResourceUsage',
'Get-PartnerCustomerSubscriptionSupportContact',
'Get-PartnerCustomerSubscriptionUpgrades',
'Get-PartnerCustomerSubscriptionUsage',
'Get-PartnerCustomerSubscriptionUtilization',
'Get-PartnerCustomerTrialConversion',
'Get-PartnerCustomerUsageRecord',
'Get-PartnerCustomerUsageSummary',
'Get-PartnerCustomerUser',
'Get-PartnerCustomerUserLicense',
@ -135,6 +138,8 @@
'Get-PartnerProductAvailability',
'Get-PartnerProductInventory',
'Get-PartnerProductSku',
'Get-PartnerProductUpgradeEligibility',
'Get-PartnerProductUpgradeStatus',
'Get-PartnerResellerRequestLink',
'Get-PartnerRole',
'Get-PartnerRoleMember',
@ -154,6 +159,7 @@
'New-PartnerCustomerSubscriptionActivation',
'New-PartnerCustomerSubscriptionRegistration',
'New-PartnerCustomerUser',
'New-PartnerProductUpgrade',
'New-PartnerServiceRequest',
'Remove-PartnerCustomerConfigurationPolicy',
'Remove-PartnerCustomerUser',
@ -214,7 +220,7 @@
ReleaseNotes = ''
# Prerelease string of this module
# Prerelease = 'preview'
Prerelease = 'preview'
# Flag to indicate whether the module requires explicit user acceptance for install/update
# RequireLicenseAcceptance = $false

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

@ -18,7 +18,7 @@
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<OutputPath>$(RepoArtifacts)$(Configuration)\</OutputPath>
<PublishDir>$(OutputPath)</PublishDir>
<Version>2.0.1910.1</Version>
<Version>2.0.1910.1-preview</Version>
<LangVersion>latest</LangVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
@ -32,7 +32,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="1.1.0-preview" />
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="5.5.0" />
<PackageReference Include="PartnerCenter.DotNet" Version="1.14.1" />
<PackageReference Include="PartnerCenter.DotNet" Version="1.15.0-preview" />
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" PrivateAssets="All" />
</ItemGroup>

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

@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.3.0" />
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.3" />
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />