UCMA 2.0 Core Application Coexistence, Migration, and Deployment
The following sections present the steps needed for Microsoft Unified Communications Managed API (UCMA) 2.0 application coexistence, migration, and upgrade scenarios. Because external trusted applications are represented as trusted service entries, there are no additional steps needed if an administrator has followed the steps for migrating trusted service entries as described in Migration from Communications Server 2007 R2 to Lync Server 2010.
If you have a UCMA 2.0 application deployed on multiple computers against a hardware load balancer, and you run the migration tools (ApplicationProvisioner.exe), the application is represented as a legacy external trusted application pool (UCMA 2.0 application pool) in the backward compatibility site section of the topology document. In the topology document, the Cluster FQDN is set to the FQDN of the hardware load balancer, and each Machine FQDN is set to the FQDN of one of the computers in the pool.
If you have a UCMA 2.0 application deployed on a single computer, and you run the migration tools, the application is represented as a legacy external trusted application pool (UCMA 2.0 application pool) in the backward compatibility site section of topology document. In the topology document, the Cluster FQDN is the same as the Machine FQDN.
It is possible that a UCMA 2.0 application is deployed against Microsoft Office Communications Server 2007 R2 in a mixed Office Communications Server 2007 R2-Microsoft Lync Server 2010 environment after the initial migration steps have been performed. In this case the migration coexistence steps to migrate trusted service entries must be redone to make the trusted service entries known to Lync Server 2010. Note that this operation migrates only the trusted service entries and route-related settings. There might be application-specific settings for which you must consult the ISV who provided the application.
Scenario 1—Coexistence of a UCMA 2.0 Application with Multiple Communications Server Versions
A UCMA 2.0 application is targeted at an Office Communications Server 2007 R2 pool in a mixed Office Communications Server 2007 R2–Lync Server 2010 topology. The following steps make it possible for users homed on a Lync Server 2010 pool to call into this application.
The following illustration shows this topology.
UCMA 2.0 application in mixed topology
Ensure that the account used for performing the steps is a member of the RTCUniversalServerAdmins group.
Ensure that Lync Server 2010 is deployed and working.
Verify that the UCMA 2.0 application is running and is configured correctly.
Migrate trusted service entries using Microsoft Lync Server 2010 Topology Builder or PowerShell cmdlets. This is the key step of this scenario. For more information, see the relevant section in Migration and Coexistence Details.
Verify that the trusted service entries in the previous step were successfully migrated. See the relevant section in Migration and Coexistence Details.
Verify that the UCMA 2.0 application works as expected and that Lync Server 2010 users are able to communicate with the application.
Continue to use WMI-based management tools (such as ApplicationProvisioner.exe) to manage the application contact objects. For more information, see Modifying ApplicationProvisioner.exe Sample Code.
Note
If a second UCMA 2.0 application is deployed in a mixed Office Communications Server 2007 R2-Lync Server 2010 environment in which the trusted service entries for an existing UCMA 2.0 application have been migrated, you will need to redo steps 3 through 7 in the preceding procedure for the new application.
Scenario 2—Upgrading a UCMA 2.0 Application to UCMA 3.0 after Coexistence
To upgrade a UCMA 2.0 application to one that is written with Microsoft Unified Communications Managed API (UCMA) 3.0, the customer must create a new UCMA 3.0 trusted application pool. After the application bits are deployed, the administrator can use PowerShell cmdlets to move contact objects tied to the existing UCMA 2.0 application pool and Office Communications Server 2007 R2 so that they now refer to the new application pool and Lync Server 2010 Registrar.
The following illustration shows the topology during the upgrade.
Before upgrade
The following steps are the recommended upgrade approach.
Verify that all of the steps in scenario 1 completed successfully.
Stop the UCMA 2.0 application so that configuration changes can be made.
Create a new pool, either by using Microsoft Lync Server 2010 Topology Builder, or by running the New-CsTrustedApplicationPool cmdlet followed by the New-CsTrustedApplicationComputer cmdlet. For more information, see Activating a UCMA 3.0 Core Trusted Application.
Create a new application by using the New-CsTrustedApplication cmdlet. The ApplicationId should be the same as the UCMA 2.0 application’s ApplicationName.
Run the Enable-CsTopology cmdlet to create the appropriate trusted service entries in Active Directory for interoperability with Office Communications Server 2007 R2.
Enable-CsTopology
Stop Lync Server 2010 Front End service and then restart it.
Install the application software in the trusted application pool created in step 3. Stop at the point you are asked to create a contact object for the application. For more information, see Activating a UCMA 3.0 Core Trusted Application.
Run the Move-CsApplicationEndpoint cmdlet to move the contact object from the UCMA 2.0 application pool to the UCMA 3.0 application pool. Use the –Force parameter. Run this cmdlet with the needed values for each contact object that your application uses.
Run Move-CsApplicationEndpoint -Identity sip:endpoint1@contoso.com -TargetApplicationPool UCMA3.0ApplicationPool.contoso.com -Force
The Move-CsApplicationEndpoint cmdlet moves an existing endpoint contact object in Active Directory from an Office Communications Server 2007 registrar pool to a Lync Server 2010 registrar pool, or from one Lync Server 2010 registrar pool to another. The target pool must be a trusted application pool, and the application associated with the given endpoint must exist in the target pool.
Stop and then restart the Lync Server 2010 Front End service before launching the UCMA 3.0 application.
Use the WMI-based management tools (ApplicationProvisioner.exe) to remove the UCMA 2.0 application servers. For more information, see Modifying ApplicationProvisioner.exe Sample Code.
Migrate the trusted service entries using Microsoft Lync Server 2010 Topology Builder or the PowerShell cmdlets. For more information, see the relevant section in Migration and Coexistence Details.
Verify the following.
Users are able to communicate with the new version of your application.
You are now able to use Lync Server 2010 trusted application cmdlets to manage the existing contact objects and the new contact objects.
The following illustration shows the topology after the upgrade has taken place. The computers used in the UCMA 2.0 trusted application pool can be reused for other purposes, if desired.
After upgrade
Scenario 3—In-Place Migration of a UCMA 2.0 Application
After all users have been migrated from an Office Communications Server 2007 R2 pool to a Lync Server 2010 pool, consider decommissioning the Office Communications Server 2007 R2 pool. Before you decommission Office Communications Server 2007 R2, consider routing to your applications through a Lync Server 2010 Registrar pool.
The Move-CsApplicationEndpoint cmdlet can be used to populate the necessary attributes of an existing application endpoint contact object in Active Directory so that routing occurs through the Lync Server 2010 Registrar.
The following illustration shows this topology after the UCMA 2.0 application has been migrated to run against Lync Server 2010.
Migrating a UCMA 2.0 application to Lync Server 2010
Verify that the steps in scenario 1 have completed successfully.
Associate the existing backward-compatible UCMA 2.0 application pool with the Lync Server 2010 Registrar. See the relevant section in Migration and Coexistence Details.
Run the Move-CsApplicationEndpoint cmdlet to update the contact object so that routing occurs through the Lync Server 2010 Registrar. Use the –Force parameter.
You will need to run this cmdlet with the needed values for each contact object that your application uses.
Move-CsApplicationEndpoint -Identity sip:endpoint1@contoso.com -TargetApplicationPool ApplicationPool.contoso.com –Force
In the preceding example, no move is occurring, so the pool represented by the TargetApplicationPool parameter is also the source application pool.
Each time you create a new contact object using the WMI tools (ApplicationProvisioner.exe), you must perform this step. If it is omitted, the contact object properties required by the Lync Server 2010 Registrar for routing are not populated. You cannot use Lync Server 2010 cmdlets to create new contact objects for your application, because the application pool is still a legacy pool.
Verify that the Move-CsApplicationEndpoint cmdlet was successful by running the following cmdlet, and verifying that the output of the Registrar property points to the Lync Server 2010 Registrar.
Get-CsApplicationEndpoint sip:endpoint1@contoso.com | Select-Object *
Although the New-CsTrustedApplicationEndpoint, Set-CsTrustedApplicationEndpoint, and Remove-CsTrustedApplicationEndpoint cmdlets cannot be used to manage legacy application pools, the Get-CsTrustedApplicationEndpoint cmdlet can be used to verify that the contact object entries for the ApplicationEndpoint have been created correctly. For more information about any of these cmdlets, run get-help <cmdlet>.
Verify that the application still works on each Front End, even when the Office Communications Server 2007 R2 Front End service is stopped.
Continue to use WMI-based management tools (such as ApplicationProvisioner.exe) to add and manage the application contact objects. For more information, see Modifying ApplicationProvisioner.exe Sample Code.
Each time you add a new contact object, perform steps 3 and 4.
Note
This point is emphasized to remind you to perform the verifications in these steps when a new contact object is added using PowerShell. PowerShell might not be available locally on the computer from which you are running the WMI tool for activating new contact objects.
Scenario 4—Direct Deployment of UCMA 2.0 Application Against Pure CS 2010
This scenario is supported, but not recommended. A UCMA 2.0 application is connected directly to Lync Server 2010. Check with the application vendor to see whether such a deployment is certified.
The following illustration shows this topology.
Deploying a UCMA 2.0 application against Lync Server 2010
Get OCSCore.MSI from the Office Communications Server 2007 R2 installer. For more information, see the relevant section in Migration and Coexistence Details.
Install the UCMA 2.0 application. For more information, see the relevant section in Migration and Coexistence Details.
Add allowed domains using WBemTest. For more information, see the relevant section in Migration and Coexistence Details.
Migrate the trusted service entries using Microsoft Lync Server 2010 Topology Builder or PowerShell cmdlets. For more information, see the relevant section in Migration and Coexistence Details.
Run the Move-CsApplicationEndpoint cmdlet to update the contact object so that routing occurs through the Lync Server 2010 Registrar. Use the –Force parameter. You will need to the following step with the needed values for each contact object that your application uses.
Move-CsApplicationEndpoint -Identity sip:endpoint1@contoso.com -TargetApplicationPool ApplicationPool.contoso.com –Force
In the preceding example, no move is occurring, so the pool represented by the TargetApplicationPool parameter is also the source application pool.
Each time you create a new contact object using the WMI tools (ApplicationProvisioner.exe), you must perform this step. If it is omitted, the contact object properties required by the Lync Server 2010 Registrar for routing are not populated. You cannot use Lync Server 2010 cmdlets to create new contact objects for your application, because the application pool is still a legacy pool.
Verify that the Move-CsApplicationEndpoint cmdlet was successful by running the following cmdlet, and verifying that the output of the Registrar property points to the Lync Server 2010 Registrar.
Get-CsApplicationEndpoint sip:endpoint1@contoso.com | Select-Object *
Verify the following.
Users are able to communicate with the application.
You are still able to use the WMI tool (ApplicationProvisioner.exe) to create new additional contact objects.
Each time you add a new contact object, steps 4 and 5 must be performed.
Scenario 5—Upgrading a UCMA 2.0 Application to UCMA 3.0 after In-Place Migration or Direct Deployment of UCMA 2.0 Application
This scenario is similar to scenario 2 except that the UCMA 2.0 pool points to a Lync Server 2010 Registrar. This poses a challenge in creating a new swap pool, because two application pools cannot have the same application pointing to the Registrar.
The following illustration shows the topology during the upgrade.
Before upgrade
Verify that the steps in scenario 3 or scenario 4 have completed successfully.
Stop the UCMA 2.0 application so that configuration changes can be made.
Disassociate the UCMA 2.0 application pool from the Lync Server 2010 Registrar, by running the Set-CsTrustedApplicationPool cmdlet, using the Identity of the UCMA 2.0 application pool and Registrar as $null.
Create a new pool, either by using Microsoft Lync Server 2010 Topology Builder, or by using the New-CsTrustedApplicationPool cmdlet, followed by the New-CsTrustedApplicationComputer cmdlet.
Create a new application by using the New-CsTrustedApplication cmdlet. For a UCMA 2.0 application, the ApplicationId should be the same as the ApplicationName.
Run the Enable-CsTopology cmdlet to create the appropriate trusted service entries in Active Directory for interoperability with Office Communications Server 2007 R2.
Enable-CsTopology
Run the Move-CsApplicationEndpoint cmdlet to move the contact object from the UCMA 2.0 application pool to the UCMA 3.0 application pool. Run this cmdlet with the appropriate values for each contact object that your application uses.
Move-CsApplicationEndpoint -Identity sip:endpoint1@contoso.com -TargetApplicationPool UCMA3.0ApplicationPool.contoso.com
Verify that the Move-CsApplicationEndpoint cmdlet was successful by running the following cmdlet, and verifying that the output of the Registrar property points to the Lync Server 2010 Registrar.
Get-CsApplicationEndpoint sip:endpoint1@contoso.com | Select-Object *
Stop and then restart the Lync Server 2010 Front End service before launching the UCMA 3.0 application.
Use the WMI-based management tools (ApplicationProvisioner.exe) to remove the UCMA 2.0 application servers. For more information, see Modifying ApplicationProvisioner.exe Sample Code.
Migrate the trusted service entries using Microsoft Lync Server 2010 Topology Builder or the PowerShell cmdlets. For more information, see the relevant section in Migration and Coexistence Details.
Verify the following.
Users are able to communicate with the new version of your application.
You are able to use Lync Server 2010 trusted application cmdlets to manage the existing contact objects and the new contact objects.
The following illustration shows the topology after the upgrade has taken place. The computers used in the UCMA 2.0 trusted application pool can be reused for other purposes, if desired.
After upgrade