Move Trusted Application Pool
-
Tuesday, May 29, 2012 9:23 AM
I want to move a Trusted Application Pool from a Standard Lync edtion to a Enterprise Lync Pool
I try to set the Registrar to the new pool, but get this error
PS C:\> Set-CsTrustedApplicationPool -Identity AppPool.contoso.net -Registrar pool01.contoso.net
Changing the registrar for AppPool.contoso.net will orphan the application endpoints associated with it. The application will no longer be
usable until the application endpoints are moved to the new registrar using Move-CsApplicationEndpoint with -Force specified.
This operation will orphan application endpoints.
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y
Set-CsTrustedApplicationPool : "1" "ExternalServer" instances have changed Registrar dependencies.
At line:1 char:29
+ Set-CsTrustedApplicationPool <<<< -Identity AppPool.contoso.net -Registrar pool01.contoso.net
+ CategoryInfo : InvalidData: (:SourceCollection) [Set-CsTrustedApplicationPool], Exception
+ FullyQualifiedErrorId : TrustedApplicationPoolError,Microsoft.Rtc.Management.Xds.SetTrustedApplicationPoolCmdlet
Set-CsTrustedApplicationPool : Cannot publish topology changes. Users or contacts still exist on one or more deleted services.
At line:1 char:29
+ Set-CsTrustedApplicationPool <<<< -Identity AppPool.contoso.net -Registrar pool01.contoso.net
+ CategoryInfo : NotSpecified: (:) [Set-CsTrustedApplicationPool], InvalidOperationException
+ FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.Rtc.Management.Xds.SetTrustedApplicationPoolCmdletWhat am I doing wrong?
All Replies
-
Tuesday, May 29, 2012 12:57 PM
You have configured some endpoints in this application pool, this enpoints should be removed before you move the pool and then recreated. Or you create a new pool on the FE and move the endpoints.
get-CsApplicationEndpoint -poolfqdn AppPool.contoso.net |fl *
regards Holger Technical Specialist UC
-
Tuesday, May 29, 2012 2:49 PM
Hm, but isn't that what this messeage from the Set-CsTrustedApplicationPool command says?
Changing the registrar for AppPool.contoso.net will orphan the application endpoints associated with it. The application will no longer be
usable until the application endpoints are moved to the new registrar using Move-CsApplicationEndpoint with -Force specified.
This operation will orphan application endpoints.Yes, I need to move the Application Endpoints after the move...
I don't want to delete the Application Endpoints, because I didn't create them in the fiste place, and I don't want to lose any information...
-
Wednesday, May 30, 2012 8:38 AMModerator
Hi,
Since you don't want to delete the Application Endpoints, you can try to crete a new Trust Application pool on Enterprise FE pool and use Move-CsApplicationEndpoin to move application endpoints.
http://technet.microsoft.com/en-us/library/gg398188.aspx
Regards,
Kent Huang
-
Wednesday, May 30, 2012 3:47 PM
If I create a new Trusted Application pool (New-CsTrustedApplicationPool -Identity TmpAppPool.contoso.net -Registrar Registrar:pool01.contoso.com -Site 1 -ComputerFqdn TmpSrv01.contoso.net)
I get this error when moving the Trusted Application Endpoints...
Get-CsTrustedApplicationEndpoint -Filter {OwnerUrn -eq "urn:application:app"} | Move-CsApplicationEndpoint -TargetApplicationPool TmpAppPool.contoso.net
Move-CsApplicationEndpoint : The application "urn:application:app" does not exist on the pool "TmpAppPool.contoso.net". Use Get-CsTrustedApplication to see the available applications or New-CsTrustedApplication to add a new one.
At line:1 char:122
+ Get-CsTrustedApplicationEndpoint -Filter {OwnerUrn -eq "urn:application:app"} | Move-CsApplicationEndpoint <<<< -TargetApplicationPool TmpAppPool.contoso.net
+ CategoryInfo : InvalidOperation: (CN={2c914298-c1...=contoso,DC
=net:OCSADApplicationContact) [Move-CsApplicationEndpoint], ManagementExce
ption
+ FullyQualifiedErrorId : MoveError,Microsoft.Rtc.Management.AD.Cmdlets.Mo
veOcsApplicationContactCmdlet -
Friday, June 01, 2012 1:32 PM
Check your syntax, because the application endpoints are not found.Move-CsApplicationEndpoint : The application "urn:application:app" does not exist on the pool "TmpAppPool.contoso.net".
regards Holger Technical Specialist UC
-
Monday, June 04, 2012 2:02 PM
I think it's because Trusted Application don't exist on the new Trusted Application Pool
**********************
Windows PowerShell Transcript Start
Start time: 20120604154505
Username : CONTOSO\Administrator
Machine : FE01 (Microsoft Windows NT 6.1.7601 Service Pack 1)
**********************
Transcript started, output file is C:\Users\Administrator.CONTOSO\Documents\PowerShell_transcript.20120604154505.txt
PS C:\> Get-CsTrustedApplicationPool
Identity : TrustedApplicationPool:CompetellaPool.contoso.net
Registrar : Registrar:std01.contoso.net
FileStore :
ThrottleAsServer : True
TreatAsAuthenticated : True
OutboundOnly : False
RequiresReplication : True
AudioPortStart :
AudioPortCount : 0
AppSharingPortStart :
AppSharingPortCount : 0
VideoPortStart :
VideoPortCount : 0
Applications : {urn:application:competellapresence, urn:application:agentservice}
DependentServiceList : {}
ServiceId : 1-ExternalServer-1
SiteId : Site:Contoso
PoolFqdn : CompetellaPool.contoso.net
Version : 5
Role : TrustedApplicationPoolPS C:\> Get-CsTrustedApplicationPool -Identity CompetellaPool.contoso.net | Select-Object -ExpandProperty Applications
urn:application:competellapresence
urn:application:agentservice
PS C:\> Get-CsApplicationEndpoint -Filter {OwnerUrn -eq "urn:application:competellapresence"}
Identity : CN={2c914298-c1c3-440d-ac2c-6942b5681a37},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:competellapresence
SipAddress : sip:CompetellaPresence@contoso.com
DisplayName : Competella Presence Collector
DisplayNumber :
LineURI :
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TruePS C:\> Get-CsApplicationEndpoint -Filter {OwnerUrn -eq "urn:application:agentservice"}
Identity : CN={6a730461-271a-4244-8273-df872715f782},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:agentservice
SipAddress : sip:reception@contoso.com
DisplayName : Reception (Contoso - DK)
DisplayNumber :
LineURI : tel:+4586921500
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TrueIdentity : CN={1c5f62c5-ecd0-4b5a-9235-cc26b5a2d05b},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:agentservice
SipAddress : sip:recallQ1@contoso.com
DisplayName : Recall
DisplayNumber :
LineURI :
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TrueIdentity : CN={c90b4200-863e-4b46-b64f-25de8ba037c1},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:agentservice
SipAddress : sip:outQ1@contoso.com
DisplayName : Out
DisplayNumber :
LineURI :
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TrueIdentity : CN={4402bf25-af46-4ef2-bfe1-3a874067678d},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:agentservice
SipAddress : sip:parkQ1@contoso.com
DisplayName : Park
DisplayNumber :
LineURI :
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TrueIdentity : CN={6517dc0f-2089-45ef-9478-38a2adf2d742},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:agentservice
SipAddress : sip:dialout01@contoso.com
DisplayName : Dialout01
DisplayNumber :
LineURI :
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TrueIdentity : CN={fb3f19fe-21e6-40d5-a6c1-1d3ac43b7663},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:agentservice
SipAddress : sip:dialout02@contoso.com
DisplayName : Dialout02
DisplayNumber :
LineURI :
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TruePS C:\> New-CsTrustedApplicationPool -Identity TmpAppPool.contoso.net -Registrar Registrar:pool01.contoso.net -Site 1 -ComputerFqdn TmpSrv01.contoso.net
WARNING: The following changes must be made in order for the operation to be complete.
Enable-CsTopology must still be run for all changes to take effect.
Identity : 1-ExternalServer-2
Registrar : Registrar:pool01.contoso.net
FileStore :
ThrottleAsServer : True
TreatAsAuthenticated : True
OutboundOnly : False
RequiresReplication : True
AudioPortStart :
AudioPortCount : 0
AppSharingPortStart :
AppSharingPortCount : 0
VideoPortStart :
VideoPortCount : 0
Applications : {}
DependentServiceList : {}
ServiceId : 1-ExternalServer-2
SiteId : Site:Contoso
PoolFqdn : TmpAppPool.contoso.net
Version : 5
Role : TrustedApplicationPoolPS C:\> Enable-CsTopology
PS C:\> Get-CsTrustedApplicationPool
Identity : TrustedApplicationPool:CompetellaPool.contoso.net
Registrar : Registrar:std01.contoso.net
FileStore :
ThrottleAsServer : True
TreatAsAuthenticated : True
OutboundOnly : False
RequiresReplication : True
AudioPortStart :
AudioPortCount : 0
AppSharingPortStart :
AppSharingPortCount : 0
VideoPortStart :
VideoPortCount : 0
Applications : {urn:application:competellapresence, urn:application:agentservice}
DependentServiceList : {}
ServiceId : 1-ExternalServer-1
SiteId : Site:Contoso
PoolFqdn : CompetellaPool.contoso.net
Version : 5
Role : TrustedApplicationPoolIdentity : TrustedApplicationPool:TmpAppPool.contoso.net
Registrar : Registrar:pool01.contoso.net
FileStore :
ThrottleAsServer : True
TreatAsAuthenticated : True
OutboundOnly : False
RequiresReplication : True
AudioPortStart :
AudioPortCount : 0
AppSharingPortStart :
AppSharingPortCount : 0
VideoPortStart :
VideoPortCount : 0
Applications : {}
DependentServiceList : {}
ServiceId : 1-ExternalServer-2
SiteId : Site:Contoso
PoolFqdn : TmpAppPool.contoso.net
Version : 5
Role : TrustedApplicationPoolPS C:\> Move-CsApplicationEndpoint -Id sip:CompetellaPresence@contoso.com -TargetApplicationPool TmpAppPool.contoso.net
Move-CsApplicationEndpoint : The application "urn:application:competellapresence" does not exist on the pool "TmpAppPool.contoso.net". Use Get-CsTrustedApplication to see the available applications or New-CsTrustedApplication to add a new
one.
At line:1 char:27
+ Move-CsApplicationEndpoint <<<< -Id sip:CompetellaPresence@contoso.com -TargetApplicationPool TmpAppPool.contoso.net
+ CategoryInfo : InvalidOperation: (CN={2c914298-c1...=contoso,DC=net:OCSADApplicationContact) [Move-CsApplicationEndpoint], ManagementException
+ FullyQualifiedErrorId : MoveError,Microsoft.Rtc.Management.AD.Cmdlets.MoveOcsApplicationContactCmdlet
PS C:\> Get-CsApplicationEndpoint -id sip:CompetellaPresence@contoso.com
Identity : CN={2c914298-c1c3-440d-ac2c-6942b5681a37},CN=Application Contacts,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
RegistrarPool : std01.contoso.net
HomeServer : CN=Lc Services,CN=Microsoft,CN=1:5,CN=Pools,CN=RTC Service,CN=Services,CN=Configuration,DC=contoso,DC=net
OwnerUrn : urn:application:competellapresence
SipAddress : sip:CompetellaPresence@contoso.com
DisplayName : Competella Presence Collector
DisplayNumber :
LineURI :
PrimaryLanguage : 0
SecondaryLanguages : {}
EnterpriseVoiceEnabled : True
Enabled : TruePS C:\> Get-CsTrustedApplicationPool -id TmpAppPool.contoso.net
Identity : TrustedApplicationPool:TmpAppPool.contoso.net
Registrar : Registrar:pool01.contoso.net
FileStore :
ThrottleAsServer : True
TreatAsAuthenticated : True
OutboundOnly : False
RequiresReplication : True
AudioPortStart :
AudioPortCount : 0
AppSharingPortStart :
AppSharingPortCount : 0
VideoPortStart :
VideoPortCount : 0
Applications : {}
DependentServiceList : {}
ServiceId : 1-ExternalServer-2
SiteId : Site:Contoso
PoolFqdn : TmpAppPool.contoso.net
Version : 5
Role : TrustedApplicationPoolPS C:\> Stop-Transcript
**********************
Windows PowerShell Transcript End
End time: 20120604154824
********************** -
Thursday, June 28, 2012 7:55 PM
Did you find the solution? I have exactly the same problem.
Thank you.
-
Thursday, June 28, 2012 8:53 PMNo, I hoping on an answer from the developer
-
Thursday, June 28, 2012 8:55 PM
Actually, I was able to do what I needed.
I deleted the pool and created the new one. Worked without any issues.
Thank you.
-
Friday, June 29, 2012 4:59 PMWhat about the Trusted Applications and Trusted Application Endpoints, they just use the new pool, if the name is the same?
-
Friday, June 29, 2012 5:27 PM
I did not touch anything else. Just deleted the pool and created another one with the same name.
Thank you.
-
Saturday, June 30, 2012 8:28 PM
Here is what i get
PS C:\> Get-CsTrustedApplicationPool
Identity : TrustedApplicationPool:CompetellaPool.contoso.net
Registrar : Registrar:std01.contoso.net
FileStore :
ThrottleAsServer : True
TreatAsAuthenticated : True
OutboundOnly : False
RequiresReplication : True
AudioPortStart :
AudioPortCount : 0
AppSharingPortStart :
AppSharingPortCount : 0
VideoPortStart :
VideoPortCount : 0
Applications : {urn:application:competellapresence, urn:application:age
ntservice}
DependentServiceList : {}
ServiceId : 1-ExternalServer-1
SiteId : Site:Contoso
PoolFqdn : CompetellaPool.contoso.net
Version : 5
Role : TrustedApplicationPoolPS C:\> Get-CsTrustedApplicationPool | Remove-CsTrustedApplicationPool
The trusted application pool "CompetellaPool.contoso.net" currently has one or
more contacts assigned to it that will be deleted.
Contacts exist for the trusted application pool.
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): yOne or more application or external servers have been deleted.
When you delete an application or external server, you delete all configuration
state for the hosted applications. Do you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help
(default is "Y"):yDid you have any Application in the Pool you deleted?
-
Sunday, July 01, 2012 2:23 PM
This was the pool for our Lync OWA Access, so yes, there was an Application in the back.
Thank you.
-
Thursday, August 09, 2012 2:42 AM
I also am having the same issue. When you delete the application pool, publish topology, then recreate an application pool with the same name, add the application servers, publish topology...
That is all you had to do?
Changing the registrar for AppPool.contoso.net will orphan the application endpoints associated with it. The application will no longer be
usable until the application endpoints are moved to the new registrar using Move-CsApplicationEndpoint with -Force specified.
This operation will orphan application endpoints.Thats a pretty scary statement right there.
-
Thursday, August 09, 2012 6:52 AMIf you use any PS command in Lync with -force you will lost data!
regards Holger Technical Specialist UC
- Edited by Holger BunkradtMicrosoft Community Contributor Thursday, August 09, 2012 6:52 AM

