-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Labels
Area: Centralized DeploymentIssue related to deploying or publishing the add-inIssue related to deploying or publishing the add-in
Description
Provide required information needed to triage your issue
When connected to the OrganizationAddInService, after a while, it will timeout and not allow reconnect. Trying to Connect-OrganizationAddInService tells you you need to Connect-OrganizationAddInService first.
Your Environment
Windows 11 Enterprise
Powershell 5.1.26100.7705
O365CentralizedAddInDeployment 3.0.2
Expected behavior
When the session times out, it should reacquire the connection assuming login details are still valid. At the very least, running Connect-OrganizationAddInService again should let you initialize the session.
Current behavior
Example command:
PS > Get-OrganizationAddIn -ProductId $na.ProductId -GetAllDetails
Get-OrganizationAddIn : The Organization Add-In Service session was not initialized. Please call the
Connect-OrganizationAddInService commandlet first.
At line:1 char:7
+ $na = Get-OrganizationAddIn -ProductId $na.ProductId -GetAllDetails
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-OrganizationAddIn], SessionTimeOutException
+ FullyQualifiedErrorId : Microsoft.OrganizationAddInPowerShell.Exceptions.SessionTimeOutException,Microsoft.OrganizationAddInPowerShell.Cmdlets.GetOrganizationAddIn
Trying to reestablish session:
PS > Connect-OrganizationAddInService
Connect-OrganizationAddInService : The Organization Add-In Service session was not initialized. Please call the Connect-OrganizationAddInService commandlet first.
At line:1 char:1
+ Connect-OrganizationAddInService
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-OrganizationAddInService], SessionTimeOutException
+ FullyQualifiedErrorId : Microsoft.OrganizationAddInPowerShell.Exceptions.SessionTimeOutException,Microsoft.OrganizationAddInPowerShell.Cmdlets.ConnectOrganizationAddInService
Steps to reproduce
- Connect to the service with Connect-OrganizationAddInService
- Use commands for a while or let session be idle for a while
- Try to resume using session - fails with ServiceTimeoutException.
- Try to reconnect to service - fails with ServiceTimeoutException.
Context
Impacting ability to manage add ins,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area: Centralized DeploymentIssue related to deploying or publishing the add-inIssue related to deploying or publishing the add-in