It can be applied using the runbook and automation account. You can verify this by checking my article below, which has been tested and is functioning perfectly.
https://www.linkedin.com/pulse/scheduling-reboot-azure-virtual-machines-using-automation-rabea/