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

Commit fcdcc07

Browse files
author
Isaiah Williams
authored
Updating the change log and version (#267)
1 parent 090d93d commit fcdcc07

8 files changed

Lines changed: 34 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020

2121
# Change Log
2222

23+
## 3.0.6 - January 2020
24+
25+
* Authentication
26+
* Addressed issue [#268](https://github.com/microsoft/Partner-Center-PowerShell/issues/268) that was impacting the [New-PartnerAccessToken](https://docs.microsoft.com/powershell/module/partnercenter/New-PartnerAccessToken) command when trying to get an access token for Exchange Online with a refresh token
27+
* Agreements
28+
* Addressed issue [#262](https://github.com/microsoft/Partner-Center-PowerShell/issues/262) that was preventing [Get-PartnerAgreementDocument](https://docs.microsoft.com/powershell/module/partnercenter/Get-PartnerAgreementDocument) from being invoked when the `Language` parameter was specified
29+
* Qualifications
30+
* Addressed issue [#258](https://github.com/microsoft/Partner-Center-PowerShell/issues/258) with the [Set-PartnerCustomerQualification](https://docs.microsoft.com/powershell/module/partnercenter/Set-PartnerCustomerQualification) command that was preventing API exception information from being parsed as excepted
31+
2332
## 3.0.5 - January 2020
2433

2534
* Authentication

azure-pipelines.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ steps:
4646
custom: msbuild
4747
arguments: 'build.proj /t:Build /p:Configuration=$(buildConfiguration)'
4848

49+
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
50+
displayName: 'Component Detection'
51+
4952
- pwsh: 'Install-Module platyPS -Force -Confirm:$false -Scope CurrentUser'
5053
displayName: 'Install platyPS'
5154

docs/help/New-PartnerAccessToken.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ New-PartnerAccessToken -ApplicationId <String> [-Environment <EnvironmentName>]
4747

4848
### ByModule
4949
```powershell
50-
New-PartnerAccessToken [-Environment <EnvironmentName>] -Module <ModuleName> [-Tenant <String>]
51-
[-UseAuthorizationCode] [<CommonParameters>]
50+
New-PartnerAccessToken [-Environment <EnvironmentName>] -Module <ModuleName> [-RefreshToken <String>]
51+
[-Tenant <String>] [-UseAuthorizationCode] [<CommonParameters>]
5252
```
5353

5454
## DESCRIPTION
@@ -233,6 +233,18 @@ Accept pipeline input: False
233233
Accept wildcard characters: False
234234
```
235235
236+
```yaml
237+
Type: String
238+
Parameter Sets: ByModule
239+
Aliases:
240+
241+
Required: False
242+
Position: Named
243+
Default value: None
244+
Accept pipeline input: False
245+
Accept wildcard characters: False
246+
```
247+
236248
### -Scopes
237249
Scopes requested to access a protected API.
238250

src/PowerShell/Commands/NewPartnerAccessToken.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
1010
using System.Text;
1111
using Extensions;
1212
using Identity.Client;
13-
using Microsoft.Azure.Management.Billing;
14-
using Microsoft.Graph;
1513
using Models.Authentication;
1614
using Newtonsoft.Json.Linq;
1715
using Utilities;
@@ -110,6 +108,7 @@ public class NewPartnerAccessToken : PartnerAsyncCmdlet
110108
/// <summary>
111109
/// Gets or sets the refresh token to use during authentication.
112110
/// </summary>
111+
[Parameter(HelpMessage = "The refresh token to use during authentication.", Mandatory = false, ParameterSetName = ByModuleParameterSet)]
113112
[Parameter(HelpMessage = "The refresh token to use during authentication.", Mandatory = true, ParameterSetName = RefreshTokenParameterSet)]
114113
[ValidateNotNullOrEmpty]
115114
public string RefreshToken { get; set; }
@@ -197,7 +196,7 @@ public override void ExecuteCmdlet()
197196
{
198197
account.ObjectId = Credential.UserName;
199198
account.SetProperty(PartnerAccountPropertyType.ServicePrincipalSecret, Credential.Password.ConvertToString());
200-
applicationId = Credential.UserName;
199+
applicationId = Credential.UserName;
201200
}
202201
else
203202
{

src/PowerShell/PartnerCenter.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 01/10/2010
6+
# Generated on: 01/22/2010
77
#
88

99
@{
1010
# Script module or binary module file associated with this manifest.
1111
RootModule = 'PartnerCenter.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '3.0.5'
14+
ModuleVersion = '3.0.6'
1515

1616
# Supported PSEditions
1717
CompatiblePSEditions = 'Core', 'Desktop'

src/PowerShell/PartnerCenter.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 01/10/2020
6+
# Generated on: 01/22/2020
77
#
88

99
$PSDefaultParameterValues.Clear()

src/PowerShell/PowerShell.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1919
<OutputPath>$(RepoArtifacts)$(Configuration)\</OutputPath>
2020
<PublishDir>$(OutputPath)</PublishDir>
21-
<Version>3.0.5</Version>
21+
<Version>3.0.6</Version>
2222
<LangVersion>latest</LangVersion>
2323
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2424
</PropertyGroup>
@@ -34,7 +34,7 @@
3434
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
3535
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="2.3.0-preview" />
3636
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="5.6.0" />
37-
<PackageReference Include="PartnerCenter.DotNet" Version="1.15.5" />
37+
<PackageReference Include="PartnerCenter.DotNet" Version="1.15.6" />
3838
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" PrivateAssets="All" />
3939
</ItemGroup>
4040

test/PowerShell.UnitTests/PowerShell.UnitTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
18-
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.3" />
18+
<PackageReference Include="Microsoft.PowerShell.SDK" Version="6.2.4" />
1919
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
2020
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
2121
</ItemGroup>

0 commit comments

Comments
 (0)