in this video I go over Azures new spot VM offering hello everyone I'm Travis
and this is Ciraltos in this video I go over the new spot VMs available in Azure
a VM offered at a deep discount for workloads that can be disrupted at times
of high Azure utilization before that please take a second to subscribe and
don't forget to click the thumbs up if you enjoy these videos let's kick this
off right away by adding a spot VM to the portal Here I am at the portal the
first thing I'm going to do is create a resource and I'll search for Linux and
I'll add a Ubuntu to server I'm gonna click crate I'm going to leave the subscription as
pay-as-you-go and I have a resource group set up already called spotrg
spottestrg I'll give it a name
just something simple for a demonstration change the region to
central US the rest of the settings can be left except for this one so spot
instance I'm going to select the option to use a spot instance so there are two
options first is capacity only with capacity only the virtual machine will
be evicted once the cost to run that equals the
cost of a normal pay as you go workload so with spot instances the price actually
varies there's a minimum price and then it can increase as a workload in that
Azure region increases so what this does is it says if that price equals that of
a regular pay-as-you-go it's going to evict that virtual machine which just
means it's going to stop and deallocate it the next option is price or capacity
here you can see you have an option to set the maximum amount you want to pay
for this virtual machine per hour and the minimum value must be point 0.022
cents so let's go over to virtual machine pricing I'm gonna change this to
hour I've got the OS the region and the currency to match I go down here I think
it was a d2sv3 here it is so you can see I've got
the virtual machine the pay as you go prices 11 cents per hour the one-year reserved
instance is point zero six nine five the three-year reserved instance is point
zero four five one so that's a fifty nine percent discount and then the spot
instance is point zero two two per hour so that's a minimum amount you'll pay
for running a spot instance so they go back to the portal I can put any amount
equal to the point zero two two so that's just above two cents an hour or
anything above that up to the price of the pay-as-you-go because you wouldn't
want to pay over that so I'm just gonna put in point zero eight so this means
that if I'm running the VM is gonna keep working until the price to run that VM
and azure goes above point zero eight cents per hour
why is Microsoft offering such a discount in order to understand spot
vm's it helps to understand the basic
economics of inventory inventory for just about any industry represents
capital invested in an asset that is not making money for example food in a
grocery store or parts and material for a manufacturing company both inventory
that represents money spent that's not earning money for example let's say an
auto manufacturer had millions of dollars in tires sitting in a warehouse
someplace with no cars to put them on that money is doing nothing for them
proper inventory management is a big part of just about any industry with the
goal of having just enough inventory to satisfy demand without paying for what
is not needed cloud providers have to manage inventory also they need to have
enough capacity or inventory to handle peak load but that peak may only happen
a couple times a month or a year the rest of the time that's spare compute
sits idle costing money and not earning revenue that's where spot VMs come in
spot vm's allow for spinning up a vm at a discount in unused capacity Microsoft
makes money it may not be as much as a premium products but it's better than
nothing as a trade-off azure can evict VMs if demand by the full price VM
increases in to the spare capacity let's finish deploying that VM okay so
now that I have that eight cents set I'm going to create a username and password
and I don't need any inbound port set up next I'm gonna select disks I'm gonna
change this to standard hard drive and because this is a demo virtual machine
I'm gonna go into advanced and I'm gonna turn off use managed disks it's gonna
give me some errors here basically I don't get the advantages of managed
disks but I also don't pay the managed disk premium you'll just create a VHD on
a storage account and I'll only pay for the data written to that storage account
next I'll go to networking and select an existing VNet all the rest of this
is the same as deploying any other virtual machine through the portal and I
don't need a public IP don't need any of that
I'll leave management as is we'll keep going that all looks good you can see it
indicates that .022 cents per hour and I'll click create and I'll just
give it a couple minutes to finish ok that's finished let's go to the resource
and from here it looks like any other virtual machine I'm going to stop it
I'll give it a second to deallocate now that it's the allocated and stopped I
can show you the next configuration setting under settings configuration
here I can change that max price so I said .08 cents when I set this up
let's say I wanted to go down to .05 I can do that right here the
virtual machine does have to be de-allocated in order to make that
change that's how you deploy a spot vm in the azure portal are spot vm is worth
it I've been an IT for over 20 years they may I can tell you with absolute
confidence that it depends it's worth it for workloads that are low priority such
as some cases of test and dev it's also worth it for batch jobs that can be
stopped and restarted or run for short periods of time I would not run
mission-critical services on a spot VM however no domain controllers on spot
VMs only services that can take unexpected outages here are some points
to consider with spot VMs spot VMs have replaced low-priority
VMS pricing varies depending on Azure usage and region you can set a value at
the maximum amount you want to spend though as I showed you in the
demonstration B Series and promotional versions of VM's are not supported all
regions are available except for some in China and DOD you can get a 30 second
notification of evictions through scheduled events evictions just means
that the virtual machine is de-allocated VM related charges will stop but not
disk and network charges VM scale sets can be configured to deallocate or
delete spot VMs have a separate quota pool so if you're managing your
subscription by quotas there is a different quota for spot VMs Azure
batch currently supports low priority VMs that will be updated so pools
configured with virtual machine configuration will support spot VMs
thanks for watching if you found this helpful please subscribe and click the
like button and if you're feeling crazy click the bell icon for notifications of
new content thanks for watching