Post-migration: Database creation with GO.bat script
- Last UpdatedSep 09, 2025
- 1 minute read
- PI System
- PI Server 2024 R2
- PI Server
Important: To prevent issues with database check-in's, perform this post-migration task after a successful PI AF database migration to Azure SQL Database.
As a final step after migration, you must complete the following steps if you created the PI AF database in Azure SQL Database using the GO.bat script method.
-
Update the AFService.exe.config file to direct the PI AF Application Service to the new Azure SQL database and authentication mode. For instructions see Modify the AFService.exe.config file.
-
Restart any PI client applications that point to the AF server after modifying the connect string to reference the cloud-based Azure SQL database.
-
Enter afdiag /resetidentitycolumnseeds, then press Enter.
The Identity column seeds are updated in the PI AF SQL Server tables.