Dynamics CRM 2011 Provision rollups per Organization

Dynamics CRM 2011 Provision rollups per Organization

With Dynamics CRM 2011 we can now deploy update rollups without updating the Organization databases, 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.

Leave a Comment
  • Please add 7 and 7 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Comments
Page 1 of 1 (1 items)
Wikis - Comment List
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • yottun8 edited Revision 1. Comment: Added "en-US" tag.

  • Hi, Can you explain a bit more on the second point, test binaries before update the database? What's the difference between update rollup only and update rollup+database?

  • Hi, rollups are designed to update the database structure and file system libraries (dll's) or any other file that needs to be updated. Binaries could be your own assemblies in the GAC or any custom solutions you may have that don't rely so much on the database. Hope this helps

  • Hi, rollups are designed to update the database structure and file system libraries (dll's) or any other file that needs to be updated. Binaries could also be your own assemblies in the GAC or any custom solutions you may have that don't rely so much on the database. Hope this helps

Page 1 of 1 (4 items)