Hi FunMum,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here
We understand you concern that you experience issue when you configured the auto shutdown when it's powered on getting a virtual machine agent status is not ready
Could please let me know have you tried below troubleshooting steps if not please try it once to resolve your issue
- Once try to restart your VM from portal
- try to check connect to the VM using the Azure Serial Console
- Please make sure that Network Security Group rules allow inbound connections on the appropriate ports, such as SSH for Linux.
- You can also use Boot Diagnostics to view the VM console output for any errors during boot and logs
Please let me know if you still face any issue tag me in comment, I will help you as you needed.!