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

Commit 0aaa8b6

Browse files
author
Isaiah Williams
authored
Updating the get customer command (#196)
1 parent fe1ce1f commit 0aaa8b6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/PowerShell/Commands/GetPartnerCustomer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Microsoft.Store.PartnerCenter.PowerShell.Commands
1111
using Enumerators;
1212
using Models.Authentication;
1313
using Models.Customers;
14+
using Network;
1415
using PartnerCenter.Models;
1516
using PartnerCenter.Models.Customers;
1617
using PartnerCenter.Models.Query;
@@ -56,7 +57,9 @@ public override void ExecuteCmdlet()
5657
}
5758
if (ParameterSetName.Equals("ByDomain", StringComparison.InvariantCultureIgnoreCase))
5859
{
59-
Graph.IGraphServiceClient client = PartnerSession.Instance.ClientFactory.CreateGraphServiceClient();
60+
Graph.GraphServiceClient client = PartnerSession.Instance.ClientFactory.CreateGraphServiceClient() as Graph.GraphServiceClient;
61+
client.AuthenticationProvider = new GraphAuthenticationProvider();
62+
6063
Graph.IGraphServiceContractsCollectionPage data = client.Contracts.Request().Filter($"defaultDomainName eq '{Domain}'").GetAsync().ConfigureAwait(false).GetAwaiter().GetResult();
6164

6265
if (data.CurrentPage != null && data.CurrentPage.Any())

0 commit comments

Comments
 (0)