Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit a2975f3

Browse files
author
Isaiah Williams
authored
Service client feature update (#189)
1 parent 6c694a6 commit a2975f3

860 files changed

Lines changed: 43577 additions & 66052 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ChangeLog.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,22 @@
2020

2121
# Change Log
2222

23+
## 2.0.1911.4
24+
25+
* Azure
26+
* Added the [Get-PartnerAzureBillingAccount](https://docs.microsoft.com/powershell/module/partnercenter/get-partnerazurebillingaccount) command to get billing accounts where the authenticated user has access
27+
* Added the [Get-PartnerAzureBillingProfile](https://docs.microsoft.com/powershell/module/partnercenter/get-partnerazurebillingprofile) to get billing profiles for specified billing account
28+
* Added the [New-PartnerAzureSubscription](https://docs.microsoft.com/powershell/module/partnercenter/new-partnerazuresubscription) to create a new Azure subscription for Microsoft Partner Agreement billing account.
29+
* Security
30+
* Updated the [Get-PartnerUser](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgrade) command to ensure all user accounts are returned
31+
* Updated the [Get-PartnerUserSignActivity](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerUserSignActivity) command to ensure all user sign-in activities are returned
32+
2333
## 2.0.1911.3
2434

2535
* Authentication
26-
* Addressed issue preventing the [Test-PartnerSecurityRequirement](https://docs.microsoft.com/powershell/module/partnercenter/test-partnersecurityrequirement) command from working as expected
2736
* Addressed issue [#186](https://github.com/microsoft/Partner-Center-PowerShell/issues/186) that was preventing access token from being generated when using the device code flow
37+
* Security
38+
* Addressed issue preventing the [Test-PartnerSecurityRequirement](https://docs.microsoft.com/powershell/module/partnercenter/test-partnersecurityrequirement) command from working as expected
2839

2940
## 2.0.1911.2
3041

@@ -41,14 +52,14 @@
4152
* Modified the type for the *AdditionalInfo* and *Tags* properties from string to *Dictionary<string, string>*
4253
* [One Time Invoice Line Item](https://github.com/microsoft/Partner-Center-PowerShell/blob/master/src/PowerShell/Models/Invoices/PSOneTimeInvoiceLineItem.cs)
4354
* Added the *BillableQuantity*, *MeterDescription*, *PCToBCExchangeRateDate*, *PCToBCExchangeRate*, *PriceAdjustmentDescription*, and *PricingCurrency* properties
44-
* Partner
45-
* Added the [Get-PartnerUser](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgrade) command to get partner user accounts
46-
* Added the [Get-PartnerUserSignActivity](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerUserSignActivity) command to get sign-in activities for the specified user account
4755
* Product Upgrades
4856
* Added the [Get-PartnerProductUpgrade](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgrade) command to get information on product upgrades for the specified customer
4957
* 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
5058
* 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
5159
* Added the [New-PartnerProductUpgrade](https://docs.microsoft.com/powershell/module/partnercenter/New-PartnerProductUpgrade) command to perform an upgrade for the specified customer
60+
* Security
61+
* Added the [Get-PartnerUser](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerProductUpgrade) command to get partner user accounts
62+
* Added the [Get-PartnerUserSignActivity](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerUserSignActivity) command to get sign-in activities for the specified user account
5263
* Subscriptions
5364
* Added the [Get-PartnerCustomerAzurePlanEntitlement](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerCustomerAzurePlanEntitlement) command to get entitlement information for an Azure Plan
5465
* Usage

Partner-Center-PowerShell.sln

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{BE2D140E-5
2020
EndProject
2121
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerShell.UnitTests", "test\PowerShell.UnitTests\PowerShell.UnitTests.csproj", "{08C08BAF-107D-43BB-9560-DA2D40B27816}"
2222
EndProject
23+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Billing", "src\Billing\Billing.csproj", "{C445D44E-EEB2-4B49-A862-0F0E292F9843}"
24+
EndProject
25+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Subscription", "src\Subscription\Subscription.csproj", "{74A40D93-A16E-4823-A8A9-25EDFDF9886A}"
26+
EndProject
2327
Global
2428
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2529
Debug|Any CPU = Debug|Any CPU
@@ -34,13 +38,23 @@ Global
3438
{08C08BAF-107D-43BB-9560-DA2D40B27816}.Debug|Any CPU.Build.0 = Debug|Any CPU
3539
{08C08BAF-107D-43BB-9560-DA2D40B27816}.Release|Any CPU.ActiveCfg = Release|Any CPU
3640
{08C08BAF-107D-43BB-9560-DA2D40B27816}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{C445D44E-EEB2-4B49-A862-0F0E292F9843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{C445D44E-EEB2-4B49-A862-0F0E292F9843}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{C445D44E-EEB2-4B49-A862-0F0E292F9843}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{C445D44E-EEB2-4B49-A862-0F0E292F9843}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{74A40D93-A16E-4823-A8A9-25EDFDF9886A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{74A40D93-A16E-4823-A8A9-25EDFDF9886A}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{74A40D93-A16E-4823-A8A9-25EDFDF9886A}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{74A40D93-A16E-4823-A8A9-25EDFDF9886A}.Release|Any CPU.Build.0 = Release|Any CPU
3749
EndGlobalSection
3850
GlobalSection(SolutionProperties) = preSolution
3951
HideSolutionNode = FALSE
4052
EndGlobalSection
4153
GlobalSection(NestedProjects) = preSolution
4254
{0DAC3162-7D38-40EC-A412-496ECAFDDC8B} = {D88E76D6-773B-4691-B6AB-3323E46D486F}
4355
{08C08BAF-107D-43BB-9560-DA2D40B27816} = {BE2D140E-51A4-469F-A12A-279192E0986F}
56+
{C445D44E-EEB2-4B49-A862-0F0E292F9843} = {D88E76D6-773B-4691-B6AB-3323E46D486F}
57+
{74A40D93-A16E-4823-A8A9-25EDFDF9886A} = {D88E76D6-773B-4691-B6AB-3323E46D486F}
4458
EndGlobalSection
4559
GlobalSection(ExtensibilityGlobals) = postSolution
4660
SolutionGuid = {BE398BA5-A85F-43C4-9317-C08C61C2DB8B}

build/PartnerCenter.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>PartnerCenter</id>
5-
<version>2.0.1911.2</version>
5+
<version>2.0.1911.4</version>
66
<authors>Microsoft Corporation</authors>
77
<owners>Microsoft</owners>
88
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerAzureBillingAccount.md
3+
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
4+
Module Name: PartnerCenter
5+
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerAzureBillingAccount
6+
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerAzureBillingAccount.md
7+
schema: 2.0.0
8+
---
9+
10+
# Get-PartnerAzureBillingAccount
11+
12+
## SYNOPSIS
13+
Gets the billing accounts where the authenticated user has access.
14+
15+
## SYNTAX
16+
17+
```powershell
18+
Get-PartnerAzureBillingAccount [<CommonParameters>]
19+
```
20+
21+
## DESCRIPTION
22+
Gets the billing accounts where the authenticated user has access.
23+
24+
## EXAMPLES
25+
26+
### Example 1
27+
```powershell
28+
PS C:\> Get-PartnerAzureBillingAccount
29+
```
30+
31+
Gets the billing accounts where the authenticated user has access.
32+
33+
## PARAMETERS
34+
35+
### CommonParameters
36+
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).
37+
38+
## INPUTS
39+
40+
### None
41+
42+
## OUTPUTS
43+
44+
### Microsoft.Azure.Management.Billing.Models.BillingAccount
45+
46+
## NOTES
47+
48+
## RELATED LINKS
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerAzureBillingProfile.md
3+
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
4+
Module Name: PartnerCenter
5+
online version: https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerAzureBillingProfile
6+
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/Get-PartnerAzureBillingProfile.md
7+
schema: 2.0.0
8+
---
9+
10+
# Get-PartnerAzureBillingProfile
11+
12+
## SYNOPSIS
13+
Gets the billing profiles for specified billing account.
14+
15+
## SYNTAX
16+
17+
```powershell
18+
Get-PartnerAzureBillingProfile -BillingAccountName <String> [<CommonParameters>]
19+
```
20+
21+
## DESCRIPTION
22+
Gets the billing profiles for specified billing account.
23+
24+
## EXAMPLES
25+
26+
### Example 1
27+
```powershell
28+
PS C:\> Get-PartnerAzureBillingProfile -BillingAccountName '99a13315-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx'
29+
```
30+
31+
Gets the billing profiles for specified billing account.
32+
33+
## PARAMETERS
34+
35+
### -BillingAccountName
36+
The name for the billing account
37+
38+
```yaml
39+
Type: String
40+
Parameter Sets: (All)
41+
Aliases:
42+
43+
Required: True
44+
Position: Named
45+
Default value: None
46+
Accept pipeline input: False
47+
Accept wildcard characters: False
48+
```
49+
50+
### CommonParameters
51+
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).
52+
53+
## INPUTS
54+
55+
### None
56+
57+
## OUTPUTS
58+
59+
### Microsoft.Azure.Management.Billing.Models.BillingAccount
60+
61+
## NOTES
62+
63+
## RELATED LINKS

docs/help/Get-PartnerCountryValidation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
5757
5858
## OUTPUTS
5959
60-
### Microsoft.Store.PartnerCenter.PowerShell.Models.ValidationRules.PSCountryValidationRules
60+
### Microsoft.Store.PartnerCenter.PowerShell.Models.CountryValidationRules.PSCountryValidationRules
6161
6262
## NOTES
6363
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/New-PartnerAzureSubscription.md
3+
external help file: Microsoft.Store.PartnerCenter.PowerShell.dll-Help.xml
4+
Module Name: PartnerCenter
5+
online version: https://docs.microsoft.com/powershell/module/partnercenter/New-PartnerAzureSubscription
6+
original_content_git_url: https://github.com/Microsoft/Partner-Center-PowerShell/blob/master/docs/help/New-PartnerAzureSubscription.md
7+
schema: 2.0.0
8+
---
9+
10+
# New-PartnerAzureSubscription
11+
12+
## SYNOPSIS
13+
Creates a new Azure subscription for Microsoft Partner Agreement billing account.
14+
15+
## SYNTAX
16+
17+
```powershell
18+
New-PartnerAzureSubscription -BillingAccountName <String> -CustomerName <String> -DisplayName <String>
19+
[-ResellerId <String>] [<CommonParameters>]
20+
```
21+
22+
## DESCRIPTION
23+
Creates a new Azure subscription for Microsoft Partner Agreement billing account.
24+
25+
## EXAMPLES
26+
27+
### Example 1
28+
```powershell
29+
PS C:\> New-PartnerAzureSubscription -BillingAccountName '99a13315-xxxx-xxxx-xxxx-xxxxxxxxxxxx:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx_xxxx-xx-xx' -CustomerName 'Contoso' -DisplayName 'Microsoft Azure'
30+
```
31+
32+
Creates a new Azure subscription for Microsoft Partner Agreement billing account.
33+
34+
## PARAMETERS
35+
36+
### -BillingAccountName
37+
The name for the billing account.
38+
39+
```yaml
40+
Type: String
41+
Parameter Sets: (All)
42+
Aliases:
43+
44+
Required: True
45+
Position: Named
46+
Default value: None
47+
Accept pipeline input: False
48+
Accept wildcard characters: False
49+
```
50+
51+
### -CustomerName
52+
The name for the customer.
53+
54+
```yaml
55+
Type: String
56+
Parameter Sets: (All)
57+
Aliases:
58+
59+
Required: True
60+
Position: Named
61+
Default value: None
62+
Accept pipeline input: False
63+
Accept wildcard characters: False
64+
```
65+
66+
### -DisplayName
67+
The display for the subscription.
68+
69+
```yaml
70+
Type: String
71+
Parameter Sets: (All)
72+
Aliases:
73+
74+
Required: True
75+
Position: Named
76+
Default value: None
77+
Accept pipeline input: False
78+
Accept wildcard characters: False
79+
```
80+
81+
### -ResellerId
82+
The identifier for the indirect reseller.
83+
84+
```yaml
85+
Type: String
86+
Parameter Sets: (All)
87+
Aliases:
88+
89+
Required: False
90+
Position: Named
91+
Default value: None
92+
Accept pipeline input: False
93+
Accept wildcard characters: False
94+
```
95+
96+
### CommonParameters
97+
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).
98+
99+
## INPUTS
100+
101+
### None
102+
103+
## OUTPUTS
104+
105+
### Microsoft.Azure.Management.Subscription.Models.SubscriptionCreationResult
106+
107+
## NOTES
108+
109+
## RELATED LINKS

docs/help/PartnerCenter.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Gets the links to download or view the Microsoft Customer Agreement template.
3232
### [Get-PartnerAuditRecord](Get-PartnerAuditRecord.md)
3333
Gets audit records from Partner Center.
3434

35+
### [Get-PartnerAzureBillingAccount](Get-PartnerAzureBillingAccount.md)
36+
Gets the billing accounts where the authenticated user has access.
37+
38+
### [Get-PartnerAzureBillingProfile](Get-PartnerAzureBillingProfile.md)
39+
Gets the billing profiles for specified billing account.
40+
3541
### [Get-PartnerAzureRateCard](Get-PartnerAzureRateCard.md)
3642
Gets real-time prices for an Azure offer.
3743

@@ -242,6 +248,9 @@ Gets a collection of a partner's Government Community Cloud validation codes.
242248
### [New-PartnerAccessToken](New-PartnerAccessToken.md)
243249
Acquires an access token from Azure Active Directory.
244250

251+
### [New-PartnerAzureSubscription](New-PartnerAzureSubscription.md)
252+
Creates a new Azure subscription for Microsoft Partner Agreement billing account.
253+
245254
### [New-PartnerCustomer](New-PartnerCustomer.md)
246255
Creates a new customer.
247256

@@ -349,3 +358,4 @@ Tests if the specified domain name is available for creating a new tenant.
349358

350359
### [Test-PartnerSecurityRequirement](Test-PartnerSecurityRequirement.md)
351360
Tests the account, used during authentication, if multi-factor authentication was enforced.
361+

0 commit comments

Comments
 (0)