Please see the thread below and let me know if the troubleshooting steps help you:
https://learn.microsoft.com/en-us/answers/questions/412843/cannot-deploy-my-app-services-http-error-503-the-s
If this answers your question, please click Accept Answer and Yes if this answer was helpful. Doing so would help other community members with similar issues identify the solution. I highly appreciate your contribution to the community.