Welcome to Microsoft Q&A! Thanks for posting the question.
You can either use azure function timer trigger or logic app schedule trigger that will trigger your code/workflow on the specific time.
If you want to use azure function then you can either call the REST API to enable and disable the workflow or powershell command/script in powershell based functions.
If you want to leverage azure logic app then you can refer to this article which have the detailed steps on how to achieve this. In the article it talks about HTTP trigger but you can use logic app schedule trigger.
Feel free to get back to me if you have any queries or concerns.
Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.