Azure Hands-On series 3: Spend it money on the edge

Source: Internet
Author: User

The understanding of Azure and the public cloud is endless, in a customer's words is that Azure is the sea, as long as you sail forward, you will be able to find the treasure occasionally; Azure is like an iceberg, and when you think you're familiar with Azure, it's just the tip of the iceberg. Azure is different from other public cloud services, is for the enterprise, is really completely for the enterprise, so simply go to the official website price multiplied by 744 hours to calculate the monthly service price, and then multiplied by 12来 to calculate the annual service price, this mode is not very suitable for azure.


The so-called public cloud, which needs to be used on demand, is billed for use, not a one-off calculation, just like our home tap water, electricity and gas. No one says how much per hour, multiplied by 744 hours to calculate one months to pay how much water and electricity, and all on-demand, according to the use of billing, this is the real public cloud.


In China Azure's official website, we can see very clear service quotation, this price is also open and transparent, for users, can choose standard protocol and advanced Protocol. Take the Windows virtual machine service to see, all the specifications of the virtual machine are marked, the price per hour how much money, how much money per month (unit price multiplied by 744 hours).

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/21/wKiom1dMGfvy3-qsAADksmS9sG0578.png "/>


Although in terms of price, China Azure is a lot more expensive than the friend, but in fact, this is the real public cloud, real on-demand usage, billed by usage. Let's take a good look at what is used on demand, billed as usage. For Azure, this is the undisputed advantage of azure, we take a virtual machine for example, when we create a virtual machine in the Azure Management portal, and then we start it up.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/20/wKioL1dMGvfQ3NWbAAC9JF07v0I714.png "/>

At this point, Azure will be billed for this virtual machine by the minute, which I believe you already know, if we select the virtual machine and click the Close button under the Admin console to perform the close operation.


After a while, we look at the status of the virtual machine, which has become "stopped (unassigned)". So congratulations, your virtual machine will no longer incur any costs. You might ask, what's the use of this? Specifically create a virtual machine so that it does not start running, although there is no cost, then what is the meaning of the creation to do?

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/21/wKiom1dMGfyC47QYAAC7_XYuxEY691.png "/>


Maybe some friends have thought of, this is the same as our usual work, every morning 9 to the company, 5:30 Night, then the company's computer is generally our work of the nine-to-five middle 8 hours need to boot, and in other times do not need to use, unless overtime. In fact, the server is the same, not all servers need 7x24x365 hours to run, but also in accordance with certain rules and routines.


If according to this algorithm (a virtual machine runs only 8 hours a day to work), 8 hours a day means that one months only one-third of the time is running, so the actual price of one year should be: the virtual machine per hour X31X12/3, that is, the virtual machine hourly price x31x4. Let's take a look at a medium-performance Windows virtual machine (A3 level, Quad core, 7G memory, 285G disk), so how much money is needed for a year:


Since the China Azure official website does not support the annual price, we can only select 4 virtual machines of this size to calculate the price for 4 months:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/20/wKioL1dMGvjiKHPdAAHSA0CgYKA370.png "/>



Note that this 4 months is still inclusive of holidays, some servers, the system can be closed on holidays, then one months just to three-fourths of the time to run, then 4 months of time in fact only 3 months of time the server is running, So one year the price of this configured virtual machine can be further reduced to:


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/21/wKiom1dMGf3hKtijAAHOoMIVpsc272.png "/>


Looking at so much, is not the idea that azure billing is very meaningful? Here's a question: If you shut down the virtual machine's operating system in a virtual machine, such as connecting to a Windows virtual machine through Remote Desktop, and then performing a shutdown operation in the virtual machine.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/82/20/wKioL1dMGvnhPnDrAADEr4oDbU8236.png "/>


After a while, we can see in the admin console that this virtual machine is already in the shutdown state, do you guess this time the virtual machine will also be billed?


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/21/wKiom1dMGf7C3JtYAAC3juVM9gQ255.png "/>


The answer is that it will still be billed normally. Why is it? Because Azure's virtual machines are divided into multiple states and the corresponding billing is as follows:


If the virtual machine is in the stopped unassigned state, it will not be billed. If you are in the stopped assignment state because it still occupies the compute resources, the allocated virtual cores are billed, but the software license itself is not billed (such as the software cost of the SQL database).


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/82/20/wKioL1dMGvrgCo84AAAe1sLgkb0256.png "/>



See the table above, believe that all friends can very clearly know, when the virtual machine will be billed, when not billed. So the question is, how can you make sure that the virtual machine shuts down completely without billing?


To ensure that you are not billed, stop the VM from the management portal. In the management portal for Azure, select the virtual machine and perform the close operation below.


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/21/wKiom1dMGf-Tqm1ZAAD9-j7qi-4147.png "/>


You can also stop the VM by calling "Postshutdownaction" in Powershell, which is equal to "stoppeddeallocated" shutdownroleoperation. However, if you shut down the VM from within (for example, by using Power options in Windows) or by calling "Postshutdownaction" to "Stopped" in PowerShell, you will continue to be billed.


In this way, patiently waits for the virtual machine to be "running" to "stopping" to "Stopped (unassigned)" and this virtual machine will completely stop billing (including software and virtual machine resource billing).

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/82/20/wKioL1dMGvvQtaaUAAC7_XYuxEY316.png "/>


about Today Azure Billing is just an example of a server that can be shut down according to a certain schedule. Of course, many of the servers in real-life businesses cannot be shut down, such as messaging systems, conferencing systems, and systems that require an hourly standby response. So this way of saving it in accordance with the rest of the schedule is not appropriate for any scenario or server system type,andAzure does not have the ability to save it in this way . inputs.

But there are more ways to make Azure Help Businesses Save IT put, here we come step-by -step, Azure is an iceberg, and what we see, familiar, maybe just Azure tip of the iceberg. OK, today's content is here, welcome all friends to exchange together, study:)

This article is from the "Reinember" blog, make sure to keep this source http://reinember.blog.51cto.com/2919431/1784569

Azure Hands-On series 3: Spend it money on the edge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.