Академический Документы
Профессиональный Документы
Культура Документы
Table of Contents
Introduction ...............................................................................................................................................................................................3
LCS: Develop Phase: Upgrade Analysis ..............................................................................................................................................3
Collect and upload files for analysis (full-version upgrade: Microsoft Dynamics AX 4.0 or AX 2009) ....................... 4
Install the Rapid Data Collector.................................................................................................................................................. 4
Upload and analyze files............................................................................................................................................................... 4
Collect and upload files for analysis (in-place upgrade: AX 2012) ....................................................................................... 5
Export and zip your model store................................................................................................................................................ 5
Upload and analyze files............................................................................................................................................................... 5
Download the report ......................................................................................................................................................................... 5
See also .................................................................................................................................................................................................. 6
How to: Export and Import a Model Store [AX 2012] ............................................................................................................ 12
Preparing the system ....................................................................................................................................................................... 12
Validate permissions.................................................................................................................................................................... 12
Exporting a model store ................................................................................................................................................................. 12
Export a model store (Windows PowerShell) ....................................................................................................................... 13
Export a model store (AXUtil) ................................................................................................................................................... 13
Importing a model store................................................................................................................................................................. 13
Import a model store to the dbo schema (Windows PowerShell) ................................................................................. 14
Install a model store to the dbo schema (AXUtil) ............................................................................................................... 14
Import a model store to a temporary schema, and then apply the model store (Windows PowerShell) .......... 15
Install a model store to a temporary schema, and then apply the model store (AXUtil) ........................................ 15
See also ................................................................................................................................................................................................ 16
Conclusion ............................................................................................................................................................................................... 20
Glossary and Additional Background Content ............................................................................................................................. 20
Disclaimer ................................................................................................................................................................................................ 21
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Version
1.0
2.0
2.1
Description
Initial version (Winston Hait)
Additional information and updated document with July update (Yuthana Arngmaneekul)
Additional information and updated document with August update (Yuthana)
Date
June 2014
July 2015
August 2015
[https://technet.microsoft.com/en-us/library/dn268616.aspx]
Introduction
LCS: Develop Phase: Upgrade Analysis
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Upgrade analysis uses a Rapid Data Collector (RDC) tool to analyze information about the existing
environment to help estimate the scale of the upgrade project.
For more information about full version upgrade, see Scenario: Upgrade AX 4.0 or AX 2009 to AX 2012 (all
versions).
Collect and upload files for analysis (full-version upgrade: Microsoft Dynamics AX 4.0 or AX 2009)
In order to use Upgrade analysis, you must install the Rapid Data Collector and then upload the Rapid Data
Collector files and AOD files.
The Rapid Data Collector collects metadata about the production environment, such as the number of records
in tables.
Important
Rapid Data Collector should be run in a copy of the production environment in which no
upgrade scripts have been loaded.
Install the Rapid Data Collector
1.
2.
3.
4.
5.
Go to Lifecycle Services.
Open a project, and then click the Upgrade analysis tile.
Click Add.
On the Upgrade analysis create job page, click Download in the source-to-target upgrade list).
Download the RapidDataCollector.msi file, save it, and then run it on a Microsoft Dynamics AX 4.0 or
Microsoft Dynamics AX 2009 client to install and run the Rapid Data Collector service.
The service will create a .zip file that contains Rapid Data Collector files.
6. Enter a name for the job, identify the version and build of Microsoft Dynamics AX that you are
upgrading from, and then click Create.
Upload and analyze files
You can upload the Rapid Data Collector files and AOD files in any order.
1.
2.
3.
4.
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
For in-place upgrades, you must upload a model store that you have exported zipped.
Before you begin, perform the Scenario: Perform in-place upgrade to AX 2012 R2 or AX 2012 R3 steps in the
topic Scenario: Perform in-place upgrade to AX 2012 R2 or AX 2012 R3.
Export and zip your model store
1. Use Windows PowerShell or the AxUtil command line utility to export the model store from the
system that you plan to upgrade. For details, see How to: Export and Import a Model Store.
2. Use Windows or another system to zip (compress) the file.
Upload and analyze files
1. Sign in to Lifecycle Services, open a project, and then click the Upgrade analysis tile.
2. Click Add.
3. On the Upgrade analysis create job page, enter a name for the job, identify the version and build of AX
2012 that you are upgrading from, and then click Create.
4. On the Upgrade analysis file upload page, click + (Add files).
5. Browse to the zipped model store, and then click Upload.
After the file is uploaded, the file name and size are listed on the site.
6. Click Analyze Code to start the analysis process.
If no virtual machine is available when you start the process, the job will be listed as Process pending.
Note
The process will take 2-5 hours to complete, depending on the size of the model store.
You can close the website and log in again later to check on the progress of the
analysisprogress updates every 15 minutes.
7. When the analysis process is complete, the status shows as Complete.
8. See the section Upgrade analysis (Lifecycle Services, LCS) for details about the available reports.
Download the report
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Upgrade analysis creates an overview report in HTML, and a detailed report as a Microsoft Excel file that you
can download and review.
Description
List of key reports, and the number of
objects impacted by upgrade in each
module.
Input for
Code upgrade
Modified Objects
Modified Object Details
Code upgrade
Code upgrade
Domain information
Security upgrade
Table statistics
Data upgrade,
Lists table size, properties, and counts of
Minimizing
rows and columns
downtime
Parameters
Data upgrade
SysUtilElementsLog (AX
Object Usage Summary)
Code upgrade
Customization View
Data upgrade
See also
Upgrading to a New Version of Microsoft Dynamics AX
Scenario: Perform in-place upgrade to AX 2012 R2 or AX 2012 R3
Upgrade analysis helps users plan a full-version upgrade to Microsoft Dynamics AX 2012 from Microsoft
Dynamics AX 4.0 or Microsoft Dynamics AX 2009 or a minor version or in-place upgrade from one version of
AX 2012 to another. The output reports can provide guidance on how much time and effort will be required
for the upgrade and can help in the decision process for upgrading from AX 4.0 and AX 2009
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
implementations.
Click Create.
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Click Remove.
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
The files will be processed and the progress will be shown by the chevrons at the top as they automatically
update. You do not have to stay on this page you can navigate away. You can come back anytime to Code
analyzer and click the file name from the main Project page to see how far along the progress is.
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Note: The colors of the symbols in the reports reflect different meanings: red = errors, yellow = warnings, and
blue = information.
10
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
11
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Validate that you have appropriate permissions to work with the model store:
o Administrative permissions on the local computer
o System Administrator rights in Microsoft Dynamics AX
o In Microsoft SQL Server:
Membership in the Securityadmin server role on the SQL Server instance
Membership in the db_owner role in the Microsoft Dynamics AX database
12
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
The model store that you export remains in the original environment. The model store is not deleted.
Export a model store (Windows PowerShell)
1. On the Start menu, point to All Programs, point to Administrative Tools, and then click Microsoft
Dynamics AX Management Shell.
2. At the Windows PowerShell command prompt, PS C:\>, type the following command, and then press
ENTER.
Windows PowerShell
Copy
Export-AXModelStore -File <Filename> -Details
When you import a model store, you can import the new model store directly to the default schema, dbo.
Alternatively, you can import the model store to a different schema, and then apply the model store to the
default schema.
13
If you import the new model store directly to the dbo schema, downtime is likely to be greater, because
you must stop all Application Object Server (AOS) instances while the model store is imported.
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
If you import the model store file to a non-default schema, downtime may be less, because AOS
instances can remain active throughout the import process.
AOS instances must be stopped when the new model store is applied to the default schema. However, less time
is required to stop an AOS instance than to import a model store.
When you import a model store, you can back up the existing model store to another schema. The schema that
you back up the model store to cannot exist before you import the model store.
By default, if a conflict of element IDs occurs while an .axmodelstore file is imported, the import is stopped.
By default, optimization steps are performed if the number of elements in a model increases by more than 50
percent when a model or model store is reimported. For more information, see How to: Optimize a Model
Store for Runtime.
Import a model store to the dbo schema (Windows PowerShell)
1. Drain all client connections from the AOS instance that you are working with. For more information,
see Drain users from an AOS.
2. At the Windows PowerShell command prompt, PS C:\>, type the following command, and then press
ENTER.
Copy
Import-AXModelStore -File <Filename>
This command imports a model store to the Microsoft Dynamics AX database and associates the model
store with the default schema, dbo. You can also use the -BackupSchema parameter to copy the model
store that is overwritten to a new schema. The schema that is specified by the -BackupSchema
parameter cannot exist at the time that you run the cmdlet.
For more information, see Import-AXModelStore.
Install a model store to the dbo schema (AXUtil)
1. Drain all client connections from the AOS instance that you are working with. For more information,
see Drain users from an AOS.
2. On the Start menu, click Command prompt.
3. Navigate to the directory for the management utilities. Typically, the location of this directory
is %ProgramFiles%\Microsoft Dynamics AX\60\ManagementUtilities.
4. At the command prompt, type the following command, and then press ENTER.
14
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Copy
axutil importstore /file:filename
This command imports a model store to the Microsoft Dynamics AX database and associates the model
store with the default schema, dbo. You can also use the /BackupSchema parameter to copy the model
store that is overwritten to a new schema. The schema that is specified by the /BackupSchema
parameter cannot exist at the time that you run AXUtil.
Import a model store to a temporary schema, and then apply the model store (Windows
PowerShell)
This command installs the model store file in the schema that you specify.
Note
The model store that you import to the non-default schema is not visible to Microsoft
Dynamics AX.
2. After the model store has been imported, drain all client connections from the AOS instance that you
are working with. For more information, see Drain users from an AOS.
3. After all AOS connections have been closed, type the following command, and then press ENTER.
Copy
Import-AXModelStore -Apply:TemporarySchema
This command applies a model store that was associated with the non-default schema,
TemporarySchema, to the dbo schema. The model store then becomes visible to Microsoft Dynamics
AX.
For more information, see Import-AXModelStore.
Install a model store to a temporary schema, and then apply the model store (AXUtil)
15
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
This command installs the model store file in the schema that you specify.
Note
The model store that you import to the non-default schema is not visible to Microsoft
Dynamics AX.
4. Drain the client connections that are connected to the AOS instance that you are working with. For
more information, see Drain users from an AOS.
5. At the command prompt, type the following command, and then press ENTER.
Copy
axutil importstore /apply /schemaname:TemporarySchema /verbose
This command applies a model store that was associated with the non-default schema,
TemporarySchema, to the dbo schema. The model store then becomes visible to Microsoft Dynamics
AX.
See also
Models, Layers, and the Model Store
AxUtil and Windows PowerShell Commands for Deploying Models
Administering Microsoft Dynamics AX by using Windows PowerShell
Windows PowerShell for Microsoft Dynamics AX
16
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Run as administrator
17
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
18
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Upgrade analysis helps you to estimate and understand the level of work necessary to upgrade to Dynamics
19
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
AX 2012 R3 from AX 4.0, AX 2009, AX 2012 RTM, Microsoft Dynamics AX 2012 Feature Pack, and AX 2012 R2
implementations. By analyzing the uploaded files, it identifies, both in HTML-based and Excel-based reports,
errors, warnings, and places for investigation. This can help identify and estimate the amount of work
necessary to do the upgrade prior to beginning work on the project and can help make educated decisions on
the correct ways to upgrade to Dynamics AX 2012 R3 from your current implementation.
Conclusion
The series of demo scripts in this collection walk you through the tools and services in the Develop phase of ALM
for LCS. These services help project managers and business analysts better analyze and plan usage, speed up and
increase user adoption, help meet regulatory requirements, maximize uptime, and help the organization realize
business value faster all while delivering amazing customer experiences.
20
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015
Disclaimer
2015 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista, Microsoft Dynamics
and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other
countries. Other names and brands may be claimed as the property of others.
The information herein is for informational purposes only and represents the current view of Microsoft
Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it
should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the
accuracy of any information provided after the date of this presentation.
Sample code included in this presentation is made available AS IS. THE ENTIRE RISK OF THE USE OR THE
RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE
INFORMATION IN THIS PRESENTATION. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR
OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS PRESENTATION.
Microsoft products are not intended for use in medical, life-saving, or life-sustaining applications.
Microsoft Dynamics is a line of integrated, adaptable business management solutions that enables you and your
people to make business decisions with greater confidence. Microsoft Dynamics works like and with familiar
Microsoft software, automating and streamlining financial, customer relationship and supply chain processes in a
way that helps you drive business success.
U.S. and Canada Toll Free 1-888-477-7989
Worldwide +1-701-281-6500 www.microsoft.com/dynamics
21
Microsoft Dynamics AX 2012 R3 | LCS: Develop Phase: Upgrade Analysis | Last Updated: August 2015