You are reading the detailed instructions (basic
mining-knowledge is assumed). Click here
to go to the simplified quickstart-instructions.
How to Turn Your Azure Free Credits into Cryptocurrency: Detailed
Instructions
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). This is possible
because the newly introduced Azure-batch-service has a
low-priority-option, which is dirt cheap!
Short summary:
You'll need a azure-account with free-credit, e.g. from a
MSDN-subscription
Chose a Monero-pool
Start mining with the Azure-Batch-Service using the
scripts provided here
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. 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.
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!
Chose CryptonightV7-Pool
With the scripts provided on this site you can mine with the cryptonightV7-algorithm.
The cryptocurrency Monero is
based on this algorithm, and it was forked beginning of 2018 from the
standard cryptonight-algorithm. This site focuses only on the
V7-variant of the algorithm because recently a ASIC for
standard-cryptonight was released which will soon push all CPU- and
GPU-miners out of this market (the purpose of the fork was to avoid
exactly this fate for Monero).
The anti-ASIC-stance means that Monero will stay decentralized, but
there are many more advantages to it. In fact, i think Monero is
better than bitcoin in virtually every aspect (i guess bitcoin beats
Monero only in popularity...).
To start mining you first have to choose a Monero-pool.
Pay attention to the pool's rules:
What are the pool's fees? This just means that your payout is
decreased by the given percentage.
What is the pool's minimum payout? Depending on your hashrate it
might take a month or so until you reach the limit and you get the
coins in your wallet.
Reward method PPS or PPLNS? With PPLNS the miners get their share
only once the pool finds a block, so for small pools it might take
several days until you can see a non-zero pending balance for your
wallet on the pool's website.
You'll need to setup a wallet first. For Monero probably the
easiest way to get started is mymonero.com
(take care that you don't fall victim to a phishing site: always
check your browser's address bar before entering your password!).
You have the option to setup a secondary pool, so that
your VM's can keep working even if your primary pool is offline.
Note: Cryptocurrencies are notorious for being targets of spectacular
hacks and scams. 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.
Resource Group: Click 'Create New' and give it a name,
e.g. 'myRecGroup'
Leave the other options at the default-settings.
Click on 'Create' at the bottom to create the
batch-account
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:
Section 'Pool Detail':
Pool ID: Just a name for your azure-pool
Section 'Operating System':
Publisher: Canonical
SKU: 16-04 LTS
Section 'Node Size':
Node pricing tier:
Select 'Standard F2 (2Cores, 4GB)'
Leave the other options at the
default-settings.
Click on 'OK' at the bottom to create
the azure-pool.
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:
Primary mining-pool.
Wallet for primary mining-pool:
Your personal Monero-wallet. A random string of characters
similar to: 4999aeniCU9Ug67vs7yvyJTSkxVUZRirUYUerT66fqzoYMhiShFLBqZHmFxmPD6oABafM5cVKc77yj3Fypvi9CDRTYEvDPL
Address of primary mining-pool:
e.g. a Monero mining-pool: xmrpool.eu:3333
Secondary mining-pool. This pool will only be used if the primary
mining-pool is offline. Leave the fields empty if you don't want to
use a secondary mining-pool.
Wallet for secondary mining-pool:
Address of secondary mining-pool:
This is your personalized script:
Note:
Generation of the script doesn't work? Try opening this website in
Chrome.
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:
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 (F2, 2 Cores, 4GB)
3
6
10
Total number of active cores
6
12
20
Cost of nodes for 31 days
~45$
~90$
~149$
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.
Now go back to 'Overview' and click on 'Scale'. Enter the
number from the table above in the field 'Low priority nodes' (e.g.
3 if you have MSDN Professional), and click on 'Save'.
Congratulations! The azure cloud is now mining cryptocurrency for
you!
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.
Watching your Mining-Progress
If you are using xmrpool.eu you can see your
mining-status if you go to the pool's homepage (e.g. xmrpool.eu),
scroll down to the bottom of the page and enter your wallet (other
mining-pools probably work similarly).
Approximately 5 minutes after starting your azure-pool you
should be able to see the number of submitted hashes slowly
increasing. The displayed hashrate will vary wildly -
this is normal.
Your pending balance will increase once the mining-pool
finds a new block. For a big pool like xmrpool.eu this
will happen a few times per day. However, if the pool is unlucky, it
can also take a day or two.
The pending balance will be paid out to your wallet once
it passes the minimum payout threshold (0.1 XMR for xmrpool.eu).
If you have MSDN Professional you'll have to mine a month or so
until you can see a incoming payment in your wallet. Obviously it'll
be faster if you have more azure-credits to spend.
Important Notes:
Some reasons why the hashrate displayed by the pool will
vary a lot:
Azure is running many virtual machines on a single physical
server. If you are lucky the other virtual machines are running
idle and you'll get a higher hashrate. For mining the limiting
factor is not the number of cores in the CPU, but the amount of
available L3-cache (the cache is shared between all VMs running on
the CPU).
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.
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).
The script will restart itself every 2 days, fetching the
latest version of the miner-executable from github. This is
required because the mining-algorithm is regularly modified in order
to prevent the development of ASIC-miners for Monero. If you don't
like this behaviour you can change the phrase './run_xmr_stak.pl
30;' to './run_xmr_stak.pl;' in the generated script (i.e. remove
the '30'). However, note that then you will have to manually restart
your mining-pools in order to get the updated miner-software.
Nothing in life is free. If you are mining with
the script from this site the miner-executable will mine 4% of the
time to my private wallet. From the cryptocurrency generated this
way i pledge to donate half (2%) to the authors of xmr-stak. You can
view this as a convenience-fee for getting a tested and streamlined
mining-script.
Do you need help following the instructions? You can contact me at