First, a very important point is that you need to verify your SQL Server version compatibility with the version of SharePoint you will be deploying.
Second, Some SharePoint Server databases do not support SQL Server Always On Availability Groups.
Third, after you finish all your SQL server configuration, you need to go to the "Specify Configuration Database Settings page", in the Database server box, type AGListener as the name of the computer that is running SQL Server with the required port, etc.
Finally, To finalize setup of Always On for a SharePoint Server farm, add the SharePoint databases to the availability group and synchronize secondary replicas to the primary replica.
You can check for more details in Step 8 in this Tutorial.
Further details you might find it Here
I hope this would help.