The main goal of this approach is to register on the Microsoft Azure website and configure our app to run on remote server. With our guide below it is much more easier that may sound 🙂
Open the following link: https://azure.microsoft.com/
Click Free account
Then Start free
Then Create one
Create an account
Check your mail, you should get an email with verification code.
Paste the code in the field below and click Next
Now you should solve a simple puzzle so the website will know you’re a real person and not a robot.
Here’s an example of such puzzle.
Fill in all required fields
The last step is credit card validation. You’re going to be charged $1 with instant refund. Don’t worry, we will show you how to cancel the subscription.
<aside> 💡 We recommend creating a virtual card in your bank app. Throw 1$ on it and link the account to the card, so you do not need to worry about canceling the subscription – after 30 days of trial Azure simply will not be able to charge the card. If you have registered for the main card, no problem – read the instructions below.
</aside>
After registration is complete open control panel using the following link: https://portal.azure.com/#home and select Virtual machines
Click Create
and then select Virtual machine
Make sure to set/modify only the fields listed below:
Virtual machine name: vm1
or any other name for your machine
Region: (Asia Pacific) Japan East
Azure Spot instance: âś…Â put a checkmark
Eviction policy: Delete
Size: Standard_D2s_v3 - 2 vcpus, 8 GiB memory ($0.02986/hour)
<aside> 🙂 Don’t worry, we’ve got 200$ credit, so it’s going to be free
</aside>
All other fields should remain unchanged*
Now open Advanced
tab, copy source code from this page and paste it in Custom Data
field
Now click Review + create
Double-check that we’ll be charged from the given credits amount and not from our credit card, and then click Create
Click Download private key and create resource
Now wait for creation process will complete. Deployment is in progress
should change
to Your deplooyment is complete
To make sure everything is working fine, open control panel again https://portal.azure.com/#home and select created machine
Then click Overview
on the left and select Monitoring
tab to see system loading charts. They are refreshed once per 5-10 min, so you should wait a bit after creation.
Yay! You create virtual machine successfully. Feel free to repeat steps 12-19 several times to create even more machines 🚀
<aside>
💡 If you can’t create server the step 14, try selecting different region (Region
) — this might be related to the limit of the amount of machines in one region.
</aside>
Azure gives you 200$ of free credits but we need to cancel the subscription to avoid extra charges of your credit card when 200$ will be finished.
Open Billing dashboard
Choose Azure subscriptions
and then open your active subscription
<aside> ⚠️ Warning! Do this only on the last day of the subscription. Cancelation will delete all machines.
</aside>
Click Cancel subscription
Choose Ignore and cancel
(1) and insert into second field (2) the name of your subscription (selected in green), and select the first options for the third field (3). Then click Cancel subscription
(4).
That’s all. Cancelation process was started. You will receive an email with confirmation and the subscription will be canceled 💪