Hi Naveen Kumar Kakarla (Quadrant Resource),
Welcome to Micrsoft Q&A forum.
As I understand, you want to schedule auto vacuum between specific times, such as 10 PM and 6 AM.
As mentioned in the above answer by Dillon, make use of pg_cron extension to achieve the same.
The commands would look like below:
SELECT cron.schedule('0 10 * * *', 'VACUUM');
SELECT cron.schedule('0 18 * * *', 'VACUUM');
Reference: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-extensions#pg_cron
Let us know for further queries.
Thanks