Admin provisioning tools in Dynamics 365 Finance Operations
After restoring database backup, you want to be able to login to Dynamics 365 Finance Operations with different ternant, you need to use the admin provisioning tool to assign a new tenant.
Before 10.0.23 verison
The admin provisioning tool can be found at
VHD: C:\AOSService\PackagesLocalDirectory\bin\AdminUserProvisioning.exe
Cloud- hosted: K:\AOSService\PackagesLocalDirectory\bin\AdminUserProvisioning.exe
After running Provisioning.exe
wtih admin right, you will see the update for the admin user in SQL.
Some errors you might face:
Resolution, you can simply stop and start the services manually:
- World Wide Web Publishing Service
- Microsoft Dynamics 365 Unified Operations: Batch Management Service
Or you can restart VM using LCS or Azure portal.
If the issue Can not stop the DynamicsAXBatch service on computer still persist
You can kill the batch service using cmd:
- Open CMD
sc queryex DynamicsAxBatch
taskkill /f /pid 8064
There is another error about Database
Please this post for getting VHD Database password.
From 10.0.23
From 10.0.23, the Admin user provisioning tool is removed due to security reasons, the reply URL setup for AAD was changed.
It is typically used to change the tenant of the environment. You can update the sign in information in the database for the Admin user or any other user. You only need the SID
and network alias
(email address) from a user that can access the environment or another environment on the same tenant.
To get the SID:
|
|
Once you have admin SID, you can update the tenant in SQL by using.
|
|
You might also got error
Go to C:\AOSService\webroot\web.config
, get Aad.Realm
, Aad.TenantDomainGUID
, Infrastructure.HostUrl
Run below script to add Dynamics 365 URL to ERP service principle application
|
|
If you are running VHD for the first time, please do this task