sql server 2012 to sql server 2017 migration [closed]

How to migrate from sql server 2012 to sql server 2017 with all dependency, jobs, agents etc. together or any other best method to support it

I got some tool like data mirror migration but it has some limitation
https://docs.microsoft.com/en-us/sql/database-engine/availability-groups/windows/always-on-availability-groups-sql-server?view=sql-server-ver15
old os version windows server 2008 to new win server 2016

Any suggestion or best approach

Shree