Saturday 15 September 2012

Dynamics CRM 2011 Provision Rollups per Organization

With Dynamics CRM 2011 we can now deploy update rollups without updating the Organization database, the advantages are:
  1. Deploy Update Rollups per Organization and not to the entire Environment.
  2. Test binaries before updating the database
By default it updates the database as you install an update rollup, to stop it from automatically update the databases, run the following powershell script:

Open PowerShell copy+paste the below commands; on the last line hit enter:

Add-PSSnapin Microsoft.Crm.PowerShell
$setting = New-Object "Microsoft.Xrm.Sdk.Deployment.ConfigurationEntity"
$setting.LogicalName = "Deployment"
$setting.Attributes = New-Object "Microsoft.Xrm.Sdk.Deployment.AttributeCollection"
$attribute = New-Object "System.Collections.Generic.KeyValuePair[String, Object]" ("AutomaticallyInstallDatabaseUpdates", 0)
$setting.Attributes.Add($attribute)
Set-CrmAdvancedSetting -Entity $setting

Note: what the powershell script does, sets to 0 the database field AutomaticallyInstallDatabaseUpdates on the DeploymentProperties table of the MSCRM_CONFIG database.

Now if you Install the latest rollup; when you open deployment manager the column 'version' should still show the previous RU version for all organizations; to update the database for a specific organization right click the organization you want to update and click Update:













 If you get the below error, stop the Asynchronous service and try again.



















 
 



















After you update the organization, you now have one organization with RU6 and other with RU10:







You ready for testing :)

Hope was helpful.

No comments:

Post a Comment