You are reading the detailed instructions. Click here to go to the quickstart-instructions.

How to Turn Your Azure Free Credits into Cryptocurrency: Detailed Instructions

The rate can be as high as 1:1, i.e. for every 1$ spent on azure you will get almost 1$ worth of cryptocurrency (depending on the current exchange-rates). This is possible because the newly introduced Azure-batch-service has a low-priority-option, which is dirt cheap!

Short summary:

Setup Azure with Free Credit

Do you have a MSDN-subscription from you day job? Great! You must have already noticed that Microsoft keeps sending you emails asking you to open an azure-account with up to 150$ monthly credit. Follow the instructions in the mail to claim your free credits.

If you don't have a MSDN-subscription, you can at least use the one-time credit of 200$ you get just for opening the Azure-account. Depending on the current exchange-rate and whether azure adds tax to you bill or not it might even be profitable to keep running your azure-account on your credit-card - but note that you'll be operating on a razor-thin margin!

Setup Nicehash.com account (or choose other cryptonight-pool)

With the scripts provided on this site you can setup your azure-servers to mine with the cryptonight-algorithm. The cryptonight-algorithm can be efficiently run on standard server hardware, special ASICs or GPUs are not required (the algorithm was intentionally designed that way). The cryptocurrency Monero is based on this algorithm, and it is better than bitcoin in virtually every aspect (i guess bitcoin beats Monero only in popularity...). You could mine directly to a Monero-pool, but there are several other cryptocurrencies based on cryptonight available as well. When choosing a pool, pay attention to the pool's rules:

The alternative is to mine to a pool run by Nicehash.com. With Nicehash.com you are basically always mining the most profitable altcoin and you get paid in bitcoin (read their documentation to learn how it works internally). If you are using Nicehash.com you'll get a special internal wallet, which you can only use with Nicehash.com pools. You can sign up for a free account at Nicehash.com/register.

It's good practice to setup a secondary pool, in case the primary pool is offline. Personally i use Nicehash as a primary mining-pool and the Monero mining-pool xmrpool.eu as a secondary mining-pool.

On whattomine.com you can see the estimated daily income when mining with 16 cores (app. yield: 960H/s) in the azure cloud. In my experience Nicehash always had the best or second-best profitability  → look at the "Nicehash-CryptoNight"-entry. It might not sound like much at first, but once you set it up it's free money :-)

Note: Cryptocurrencies are notorious for being targets of spectacular hacks - even Nicehash.com was hacked once. The more cryptocurrency you accumulate, the more important it is to educate yourself about the possible security threats!

Setup the Azure Batch-Service

Note: Azure calls a group of virtual machines within the batch-service a 'Pool'. This has nothing to do with the term 'mining-pool' (operated by e.g. xmrpool.eu). Don't confuse the two terms.

After signing up for your azure-account you can click on the following link to create a new batch-account: https://portal.azure.com/#create/Microsoft.BatchAccount Fill the form with following information:

Once you get the notification that your batch-account has been created (it will take a few seconds), go to your batch-account and create a new pool: select 'Pools' and then click 'Add'. Fill the form with the following information:

For mining you generally want to use the 'F'-Type of virtual machines because they are optimized for computing and most profitable for mining. If you are mining to a Nicehash-pool i recommend leaving the node-size at 16 cores (see my notes on the Nicehash-difficulty at the end of this page). If you are mining to a different mining-pool you can also choose e.g. F4 and set the number of nodes to 5 to get a total of 20 cores (the default maximum quota for the number of low-priority cores). Note that by default azure will disable your account for the rest of the month once you have consumed your free credits. So you could also use the F1-node-size and adjust the number of nodes so that the monthly cost stays just under your monthly free credits. This way the cryptocurrency will just keep flowing indefinitely without you needing to log into your azure account ever again!

In order to make the nodes actually do something, you'll need a startup script which downloads the mining-executable and starts mining. You can create your personalized script here by filling out the fields:


This is your personalized script:

(Note that the scripts and the miner-executable are hosted on github.com  - you can check out the code yourself if you have any doubts about the function of the script)

Once the azure-pool is created, go to 'Start task'. Fill the form with the following information:

Now go back to 'Overview' and click on 'Scale'. Enter '1' in the field 'Low priority nodes', and click on 'Save'. This will start one node in your azure-pool. You can also start a higher number of nodes, just note that by default you have a limit of 20 low-priority-cores per region.

To stop your azure-pool, go to the overview-page of the azure-pool, select 'Scale' and enter '0' as the number of 'Low priority nodes'. Then click 'Save'. Note that by default your azure-pool will automatically stop when your free credits are exhausted. You can simply restart your azure-pool in the next month once your free credits have been refilled.

Some Notes on Handling Your Azure-Pool:


Do you need help following the instructions? You can contact me at