How to Turn Your Azure Free Credits into NIMIQ (NIM)
The rate can fluctuate between 1:1 and 1:4, i.e. in the best case
you'll get almost 1$ worth of cryptocurrency for every 1$ spent on
azure (depending on the current exchange-rates). With an MSDN
Enterprise subscription you can mine cryptocurrency worth up to 147$
every month! This is possible because the newly introduced
Azure-batch-service is dirt cheap!
Short summary:
You'll need a azure-account with free-credit, e.g. from a
MSDN-subscription
Get a NIMIQ-wallet
Start mining with the Azure-Batch-Service using the
scripts provided here
With the instructions provided here you will be mining NIMIQ (NIM). NIMIQ is the hot new browser-based
cryptocurrency. If you are interested in Monero (XMR) or a different
Cryptonight-based cryptocurrency, check out my other guide.
Even if you are interested only in NIMIQ you could still have a look at
the guide because there's a video of the setup-procedure available
there.
Setup Azure with Free Credit
Do you have a MSDN-subscription from your 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. Note that by default you don't even have to enter
your credit-card-number, so you can be sure that your mining is
running purely on your monthly free credit.
Even if your company pays for the MSDN-subscription, the
associated azure-account is your personal account and completely
separated from the company. Your boss has no way of
accessing it. Microsoft encourages people to use the free credits for
testing and learning, and this is what you'll do: learning about using
the azure-cloud and the blockchain-technology in a very practical way
:-)
Get a NIM-Wallet
Create your NIM-wallet at the official NIMIQ-site: safe.nimiq.com.
Do it the right way and store your secret words in a password-safe
like keepass. Trust me,
you'll regret it otherwise.
Cryptocurrencies are notorious for being targets of spectacular hacks
and scams. Don't enter your login-details on a phishing site (check
your browser's address bar to make sure that you are really on
safe.nimiq.com before entering your password!). Stay vigilant
and educate yourself about proper computer-security.
Setup the Azure Batch-Service
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
I recommend using Chrome to access the azure-portal. Fill
the form with the following information:
Account name: Just a name for your batch-account
Resource Group: Click 'Create New' and give it a name,
e.g. 'myRecGroup'
Location: Choose 'South Central US'
Leave the other options at the default-settings.
Click on 'Create' at the bottom to create the
batch-account
Node pricing tier: 'Standard F4s_v2 (4 Cores,
8GB)' (Choose the exact type! Otherwise you will not get the
optimal hashrate!)
Leave the other options at the
default-settings.
Click on 'OK' at the bottom to create
the azure-pool.
Whenever the computers in your azure-pool get started up, they will
execute a custom script which will download the mining-executable and
start mining. To generate your personal startup-script you
have to enter your NIM-wallet in the field below (it
should look similar to NQ61 KHGQ A4N6 NTAA 192U SBRR PNX5
L1S1 E8FQ):
In the next field you have to enter the Address of the pool to use,
it should look similar to eu.sushipool.com:443. If
you don't know which pool to use, just leave the field blank: the
script will then mine at sushipool.
Press the button above to generate your personalized script in the
field below:
Notes:
Generation of the script doesn't work? Try opening this website in
Chrome.
Once the azure-pool is created, go to 'Start task'.
Fill the form with the following information:
Command line: here you have to enter your personalized
script from the textfield above
User identity: 'Task Autouser, Admin'
Leave the other options at the default.
Click on 'Save'
The last step is to tell Azure how many mining-nodes it should start
for you. This depends on the amount of free credits available in your
azure-account. Basically you want to use up as much of your
monthly credit as possible without actually consuming all of your
credit (otherwise you'll have to repeat the setup again in
the next month because azure will delete your pools if your free
credits are exhausted).
Professional
Platform
Enterprise
Number of low priority nodes (F4s_v2, 4 Cores, 8GB)
1
3
5
Cost of nodes for 31 days
~30$
~88$
~147$
Monthly free credit
50$
100$
150$
If azure is using your local currency instead of USD the numbers
might look slightly different. If you run out of free credit before
the end of the month, just reduce the number of nodes by one and try
again.
With MSDN Professional you can actually afford another 2 cores.
Just create another pool with a single F2s_V2-instance to get a
total of 6 cores from both pools (creating a single pool with
3 instances won't work: this costs more than 50$ due to the way the
storage is billed by azure)
Now go back to 'Overview' and click on 'Scale'. Enter the
number from the table above in the field 'Low priority nodes' (e.g.
1 if you have MSDN Professional), and click on 'Save'.
Congratulations! The azure cloud is now mining NIMIQ for you!
Watching your Mining-Progress
Unless you have entered a different address in the field the script
will use sushipool as a
mining-pool (don't mix up the terms 'mining-pool' and 'azure-pool' -
they describe two totally different concepts). To see your
mining-status, go to sushipool.com
and enter your wallet in the field at the top of the site.
The VM takes around 5 minutes to startup and setup the
mining-software. After that you will see your hashrate at the pool
slowly increasing. The displayed hashrate will vary
wildly - this is normal.
Your pending balance will increase once the mining-pool
finds a new block and it reaches the maturity depth. For
a big pool like sushipool this will take an hour or so. However, if
the pool is unlucky, it can also take longer.
Each pool has different rules regarding payout. Sushipool
will transfer your earnings every three hours with a minimum
amount of 1 NIM.
Important Notes:
Some reasons why the hashrate displayed by the pool will
vary a lot:
In exchange for the low price azure does not guarantee 100%
availability for the low-priority-VMs (in my experience the VMs
are in fact available most of the time, though).
The hashrate displayed by the pool is calculated from the number
of submitted shares (i.e. shares which exceed the custom
difficulty of the pool), not from the number of hashes your miner
has actually calculated.
All in all you can expect around 6kH/s per used core, i.e.
120kH/s for 20 cores if you have MSDN Enterprise.
Azure has a standard-limit of 20 low-priority-cores per
region. If the quota in your azure-account is less than
that, you can request an increase of this quota through the azure
support. I recommend not asking for more than 20 cores. We are
operating in some kind of gray area here, you don't want to cause a
big stir... If you want to mine with more than 20 cores i
recommend setting up more azure-pools in other regions
(the quota limits only the number of cores per region, nothings
stops you from setting up more azure-pools in other regions). Note
that the the pricing for each region is different - for optimum
profitability you need to choose a region with a low price for
low-priority-batch-processing with F4s_v2-nodes and P4-type storage.
The script will restart itself every few days and download the
the latest version of the miner-executable. This way you will
automatically get updates for the miner as soon as they become
available. It's not possible to keep the batch-script static anyway:
Azure might restart your nodes at any time and then the script has
to download and setup everything again.
Nothing in life is free. If you are mining with
the script from this site the miner-executable will mine 1% of the
time to my donation wallet. From the cryptocurrency generated this
way i pledge to donate half (0.5%) to the authors of the
mining-software. You can disable the donation by changing the phrase
'donation=1' to 'donation=0' in the startup-script.
Do you need help following the instructions? You can contact me at