This repository was archived by the owner on Sep 15, 2026. It is now read-only.
Repository navigation
Replies: 1 comment
|
nonekdan were you able to get past the error and deploy the app? I didn't realize that you opened this discussion/issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi Guys,
First off I want to say thank you and to say that I am looking forward to getting this running!
Initially I had an error in deploying this and it was
414 | Connect-MgGraph -AccessToken $token.Token #Connect-MgGraph -DeviceCod …
| ~~~~~~~~~~~~
| Cannot bind parameter 'AccessToken'. Cannot convert the
| "eyJ0eXAiOiJKV1QiLCJub25jZSI6IlNVdVNhT3FVeHVwYUVDbi1HYjdRRERmM3ljU2ZUTE5KNk11VWhJbnZ6YXciLCJhbGciOiJSUzI1NiIsIng1dCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC85ZmM5OTk1OC1k
I was able to resolve this one by modifying the deploy.ps1 like this.
Replaced line 414 with
Connect-MgGraph -AccessToken ($token.Token |ConvertTo-SecureString -AsPlainText -Force)
This allowed it to deploy.
Now I'm getting another authentication issue that MIGHT be related, but the error is different.
I'm monitoring the ListCallQueues process and it's throwing a lot of red but the gist of it looks like it thinks it has a wrong username and password. Now I'm assuming that it's binding by using the service account I created? I also gave it an E5 license on the off chance that was it and I also made sure it was excluded in my MFA policy, but I can't figure this out.
Any help would be greatly appreciated!
Here is some of the output from the logs.
Connected!
2023-09-27T08:59:44Z [Information] Executing 'Functions.ListCallQueues' (Reason='This function was programmatically called via the host APIs.', Id=04aec9ff-d1d0-44e3-823c-bba9503abf0d)
2023-09-27T09:00:10Z [Information] OUTPUT: PS Result>
2023-09-27T09:00:10Z [Information] Executed 'Functions.ListCallQueues' (Succeeded, Id=04aec9ff-d1d0-44e3-823c-bba9503abf0d, Duration=25990ms)
2023-09-27T09:00:11Z [Error] ERROR: Session is not established, run Connect-MicrosoftTeams before requesting access token
Exception :
Type : System.UnauthorizedAccessException
TargetSite :
Name : GetAccessToken
DeclaringType : Microsoft.Teams.ConfigApi.Cmdlets.CmdletHostWrapper, Microsoft.Teams.ConfigAPI.Cmdlets.private, Version=5.728.1.0, Culture=neutral, PublicKeyToken=null
MemberType : Method
Module : Microsoft.Teams.ConfigAPI.Cmdlets.private.dll
Message : Session is not established, run Connect-MicrosoftTeams before requesting access token
Source : Microsoft.Teams.ConfigAPI.Cmdlets.private
HResult : -2147024891
StackTrace :
at Microsoft.Teams.ConfigApi.Cmdlets.CmdletHostWrapper.GetAccessToken(String appId, String scope)
at Microsoft.Teams.ConfigApi.Cmdlets.SessionStateStore.Microsoft.Teams.ConfigApi.Cmdlets.ISessionStateStore.GetSessionState()
at Microsoft.Teams.ConfigApi.Cmdlets.SessionStateStore.get_ConfigApiSessionInfo()
at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Module.SendAsync(InvocationInfo invocationInfo, HttpRequestMessage request, IEventListener callback, ISendAsync next)
at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.ConfigApiBasedCmdlets.CallQueueGet_Call(HttpRequestMessage request, Func
3 onOk, IEventListener eventListener, ISendAsync sender) at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.ConfigApiBasedCmdlets.CallQueueGet_Call(HttpRequestMessage request, Func3 onOk, IEventListener eventListener, ISendAsync sender)at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.ConfigApiBasedCmdlets.CallQueueGet(Nullable
1 first, Nullable1 skip, Nullable1 excludeContent, String nameFilter, String typeFilter, String sortBy, Nullable1 descending, Nullable1 filterInvalidObos, Func3 onOk, IEventListener eventListener, ISendAsync sender)at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Cmdlets.GetCsCallQueue_Get.ProcessRecordAsync()
at Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Cmdlets.GetCsCallQueue_Get.ProcessRecordAsync()
CategoryInfo : NotSpecified: (:) [Get-CsCallQueue_Get], UnauthorizedAccessException
FullyQualifiedErrorId : Microsoft.Teams.ConfigAPI.Cmdlets.Generated.Cmdlets.GetCsCallQueue_Get
InvocationInfo :
MyCommand : Get-CsCallQueue_Get
ScriptLineNumber : 3412
OffsetInLine : 9
HistoryId : 1
ScriptName : C:\home\data\ManagedDependencies\2309270734360645583.r\MicrosoftTeams\4.6.0\custom\Merged_custom_PsExt.ps1
Line : $result = Microsoft.Teams.ConfigAPI.Cmdlets.internal\Get-CsCallQueue @PSBoundParameters
All reactions