web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

Steps to change the AOS service account in Microsoft Dynamics AX 2012

Becky Newell Profile Picture Becky Newell

In order to change the service account for an AOS, the service account must be updated in the Microsoft Dynamics AX 2012 database, tempdb, and baseline database (if it exists).  To perform this, the script Grant-DBPermissionsToAosAccount is provided.
 
Usage
 
The script contains four parameters located near the top of the file.  Edit these parameters for each database.
 
1. Stop the AOS service, and any other AOS's in your environment.  Drain users, if necessary.

2. Update the service account in the Database.
a. Open the script Grant-AosDatabasePermissions.sql in an editor.
b. Set @createStoredProcedures to 1.
c. Set @loginName to the new service account using the format domain\username.
d. Set @aosServerName to the name of the server the AOS is running on.
e. Set @aosInstance to the instance number of the AOS.
i. To determine an AOS's instance number, open the Services control manager on the AOS server.
ii. Find the service corresponding to the AOS.
iii. Note the service name.  It will be of the form "Microsoft Dynamics AX Object Server 6.0$<XX>-<Name>".  The instance number is the XX.
f. Set @tempDBName to the name of the tempdb on the database instance.
g. Run the script in the context of the Dynamics AX database.

3. Update the service account in the tempdb.
a. Set @createStoredProcedures to 0.
b. All other parameters should remain the same as in Step 2.
c. Run the script in the context of the tempdb database.

4. (Optional) Update the service account in the baseline database.
a. Set @createStoredProcedures to 0.
b. All other parameters should remain the same as in Step 2.
c. Run the script in the context of the baseline database.

5. Grant folder permissions.  Starting in the install location of the AOS, which should look something like %PROGRAMFILES%\Microsoft Dynamics AX\60\Server\%INSTANCENAME%, grant the following permissions
a. \Log - Read and Write
b. \bin\Application - Read and Write to this folder and all subfolders and files.
c. \bin\XppIL - Read and Write.  Then, add special permissions to "Delete" and "Delete subfolders and files."  This applies to all subfolders and files.

6. Set URL ACLs.
a. Open an elevated command window.
b. Execute the following commands to remove the old urlacl and grant it to the new account:
i. Netsh http delete urlacl url=http://+:<WSDLPORT>/DynamicsAx/Services
ii. Netsh http add urlacl url=http://+:<WSDLPORT>/DynamicsAx/Services user=<DOMAIN\USER>

7. Change the AOS service account using the Services control manager.
8. Start your AOS, and any other AOS's that were shut down earlier.

Comments

*This post is locked for comments