It might make sense if you sometimes turn the server on and sometimes off on the cloud, it can give you an advantage in price. But there are also fixed costs(like storage, network, etc…) and unseen charges that I wanted to share my experience.
Normally loaded monthly credit was enough for my tests for one month, this time it was over in a short time. About 10 days ago I wanted to test Azure Bastion service for connection to a virtual server. I created the service, and these days I realize that this service has consumed all my credit. While creating the Bastion service, I did not realize that it has a cost, because it did not show the price as it was when creating a Virtual Server.
So it is useful to check the cost of each component created, be careful.