Hello @AB123
Thank you for reaching out to the Microsoft Q&A platform.
Yes, that can be done using Azure Automation. You can use the Azure Automation Start/Stop VMs during off-hours feature to stop a VM during non-working hours.
This feature allows you to schedule the start and stop times for your VMs, so you can configure it to stop your VMs in the evenings and on weekends. You can find more information on how to configure this feature in the following document: ttps://docs.microsoft.com/en-us/azure/automation/automation-solution-vm-management-config
If you are satisfied with the answer, please "Accept as Answer" and give a thumbs up, so that you can help others in the community looking for remediation for similar issues.