►
From YouTube: PSS: How to Avoid Azure Surprises with Michael Teske
Description
PowerShell Saturday is a training event for all things PowerShell. The event was held in Raleigh, North Carolina and hosted by Research Triangle PowerShell User Group.
Michael Teske is an excellent speaker and pluralsight trainer. In his talk he will walk you through Azure and help you avoid surprises with regards to billing. Azure is a great resource for learning if you know how to use it.
The files for Michael's slides and code can be found on our github page:
https://github.com/rtpsug/PowerShell-Saturday/tree/master/2019-NC.State/
A
All
right,
so,
let's
get
started
nice
to
see
everyone
and
I
want
to
thank
the
RT
PS
user
group
for
having
me
here,
I
see
on
the
screen
title
this
session
is
don't
be
me
unless
you
really
wanted
what
I
mean
by
that
is:
don't
make
the
mistakes
that
I
did
mother
avoid
as
your
surprises.
Now,
if
you
notice
in
the
in
title
the
dollar
signs
I'm
talking
about
how,
as
you're
trying
to
learn
adjure,
how
can
we
avoid
those
big
hits
to
our
address
subscriptions
so
make
sense.
A
A
What
is
a
resource
group,
so
I
took
a
spin
on
that
and
said:
alright,
that's
still
on
YouTube,
so
you
guys
can
go
watch
that
on
YouTube,
but
I
still
think
it's
important
to
understand
what
we
have
access
to
some
of
those
tools
that
we
can
leverage
to
make
sure
that
our
as
your
monthly
bill
comes
in
right,
where
we
want
it
hopefully
next
to
nothing.
Does
that
make
sense
and
how
many
people
here
have
an
edger
account
almost
everyone,
it's
awesome
awesome.
So
when
did
you
get
your
accounts?
B
A
Years
ago,
okay,
so
I'm
gonna
talk
about
what
some
of
the
stuff
that
you
have
free
and
when
you
sign
up
how
long
that's
free
for
so
that's
kind
of
you
know,
that's
gonna,
hopefully
start
the
conversation.
Well,
what
can
we
do
beyond
our
free
stuff?
All
right
now,
myself,
as
I
said,
my
name
is
Michael
tusky
I'm,
an
author
evangelist
from
Pluralsight
and
I
specify
my
focus
is
an
azure.
A
That's
exclusively
what
I've
been
doing
now,
I'm
fortunate
enough
that
I
can
learn
a
sure,
alright
I'm,
learning
and
teaching
at
the
same
time
and
have
my
expenses
mostly
covered
by
Pluralsight.
So
if
I
run
up
an
ad,
your
spend
bail,
I'm,
not
terribly
concerned,
you
know:
I
try
to
keep
my
cost
down,
but
I
usually
have
that
covered
by
my
company
right,
because
we
need
to
make
the
courses
now
I've
been
in
instructor
for
17
years
in
a
two-year
Community
College,
pretty
much
focusing
on
IT
infrastructure,
specifically
in
the
Microsoft
space.
A
All
right
and
I
did
I
start
towards
the
end.
Dealing
a
lot
with
automation,
PowerShell
and
I
was
just
starting
up
a
cloud
program
at
the
college.
Then
I
got
plucked
by
Pluralsight,
okay,
so
that's
kind
of
my
background.
So
in
this
session
what
I
want
to
talk
about
is
we
have
to
actually
feel
the
pain
to
understand
what
we're,
what
we're
going
to
deal
with
here?
Alright.
So
when
you
get
that
monthly
email-
and
you
see
you
have
to
go
into
the
as
report
and
look
at
your
invoices,
it
can
get
kind
of
daunting.
A
Alright,
even
though
myself
it's
covered,
but
at
the
other
day
as
a
good
employee
I
want
to
keep
those
costs
as
down
as
much
as
possible.
Right
I
mean
I,
don't
want
to
be
running
a
badger
cost
just
because
I'm
not
paying
for
it.
That's
how
you
know
it's
not
a
really
good
employee
mentality.
Then
we're
going
to
talk
about
the
free
for
now
now
everyone's
got
an
azure
account.
We
were
having
conversations
last
night
about
well
what
happens
after
that.
Azure
account.
Free
stuff
expires.
A
Okay,
so
we'll
talk
a
little
bit
about
that
some
factoids
about
where
you'll
see
the
most
cost
come
into
play
and
then,
where
we
can
get
our
hands
on
this
is
the
tools
and
methods
to
apply
right
now.
There's
certain
practices
that
you
need
to
be
doing
right
now,
even
before
now,
all
right-
and
hopefully
some
of
you
already
know
some
of
this
stuff,
but
there's
a
couple
things
that
I'm
gonna
do
I'm,
not
gonna,
come
up
here
and
say:
I
just
rolled
us
elaborate
PowerShell
script.
A
That's
not
me
all
right,
Dave,
I
thought
I
heard
your
sessions
about
using
modules
right
that
was
last
night.
You
talked
about
that
I'm.
Using
tools
that
already
exist
in
the
wild.
All
right
tools
that
are
already
created,
I
have
a
PowerShell
workflow
from
Tim
Warner.
All
right
and
I'm
gonna
apply
that
in
this
session,
show
you
how
that
runs
and
what
what
the
purpose
of
that
is.
Alright,
the
other
tools
are
other
things
that
I
found
online
and
things
that
I
want
to
ultimately
get
to
at
the
end
of
the
day
right.
A
So
the
biggest
thing
that
we'll
talk
about
is
don't.
Do
default
or
doesn't
do
default
really
well,
as
your
likes
to
make
you
spend
money
by
doing
default,
all
right,
you'll
find
out
when
you
do
default,
it's
not
taking
the
free
tiers
really
pretty
much
ever
you
see
that
both
in
deploying
VMs
and
azure
in
the
UI,
as
well
as
PowerShell,
then
I'm
going
to
talk
about
Azure
policy
and
why
people
know
what,
as
your
policy
is,
okay,
good
good
unhappy,
it's
a
little
bit!
A
So
that's
a
nice
little
tool
that
I'll
show
you
how
to
leverage
I've
discover
this
tool
when
I
did
my
ashore
security
courses
right,
so
that's
something
that
we'll
get
into
very
simple
right:
nothing,
real
tool,
elaborate,
but
something
that
could
save
you.
You
know
a
significant
amount
of
as
you're
spent
and
then
circling
back
to
turning
things
off
the
right
way.
A
Okay,
there's
things
that
we
can
do
in
Azure
to
make
sure
that
when
we
turn
it
off,
it's
off
and
the
bills
still
not
running
all
right,
and
then
this
seems
kind
of
innocuous,
but
resource
groups.
We
can
leverage
resource
groups
to
make
sure
that
we
aren't
getting
charged
okay
in
a
couple
different
ways,
all
right,
all
right,
so
I'm,
a
kid
of
the
80s.
All
right,
I
grew
up
in
the
80s
rocky
was
my
bag
all
right-
and
this
was
always
one
of
my
favorite
things.
You
know.
A
What's
your
prediction
pain
right,
so
here's
my
pain,
this
that's
basically,
every
month,
I
get
this
and
like
I
said
I,
don't
know
if
it's
just
me,
but
I
get
really
anxious
when
it
comes
to
the
expenses
that
I
have
to
submit
either
to
my
wife
or
to
concur
right.
How
many
people
like
concur,
awesome?
Nobody
but
I
click
on
this,
and
this
is
what
I
feel
like
all
right:
I'm,
petrified
I,
don't
know
why
that.
B
A
A
A
B
A
What
I
do
is
I'm
in
the
Azure
partnership,
so
we're
partnered
with
Microsoft.
We
produce
courses
that
go
up
on
Microsoft
site
that
link
back
to
the
course
in
our
site:
they're
free
they're
in
front
of
the
paywall
right,
so
I
get
these
domain
objectives
from
Microsoft.
That
include
job
task
analysis
right
and
one
of
the
one
of
the
modules
in
this
course.
A
One
of
the
objectives
was
to
migrate,
a
sequel
that
you,
a
single
database
on
from
sequel
database
up
into
Azure
database,
all
right
how
many
people
have
dealt
with
sneeze
all
right
couple:
yeah
they're,
fun.
The
speech
said
no.
Let's
do
it
into
an
azure
managed
instance,
all
right
if
you've
ever
dealt
with
managed
instances
or
heard
of
managed
instances
they're
interesting,
all
right.
That's
a
whole
ball
of
wax
different
ball
of
wax
all
right.
A
So
this
is
at
the
Azure
calculator
site
and
if
we
see
down
here,
that's
the
base
entry
level
of
a
sequel,
managed
instance:
800
Sun
bucks
a
month.
Now,
that's
if
you
don't
have
a
sequel
license.
If
you
have
the
hybrid
benefit,
which
means
you
have
some
Software
Assurance
license
in
then
it
drops
down
to
a
reasonable
537
bucks
month.
A
All
right
so
I
had
to
run
this
instance
with
and
I
had
just
a
hello
world
databases
a
little
small
database
and
I
had
to
run
this
till
the
course
actually
published,
because
when
they
come
back
for
with
feedback-
and
you
have
to
make
changes,
I'm
not
going
to
rebuild
this
entire
environment,
all
right,
yes,
I
can
automate
that
stuff.
This
stuff
isn't
quite
I
would
I'm
not
at
the
skilo
to
do
that.
Yet
right!
So
yeah,
it's
it's
kind
of
a
bear.
A
You
have
questions,
just
stop
me
anytime,
all
right,
so
that
was
you
know
a
cost
I
expected
that
and
when
I
went
through
and
created
that
managed
in
since
I
looked
at
the
price
I'm
like
are
you
kidding
me?
This
is
what
it
costs
and
like,
oh
well,
all
right,
that's
what
they
want.
So
this
was
my
spend.
This
is
as
your
cost
analysis.
A
So
if
you
go
into
your
cost
settings
here,
your
subscription
settings,
you
can
pick
that
invoice
and
then
select
cost
analysis
and
you
get
pretty
colors
right,
but
this
is
a
really
nice
graphic
that
shows
us
where
we're
spending
our
money
and
if
you
see
my
service
name,
probably
three-quarters
of
it.
For
three-quarters
of
my
as
your
spend
is
managed
instances
its
sequel
databases.
All
right
can't
do
nothing
about
that.
A
Microsoft
wanted
that
in
their
course
I
can't
it
is
what
it
is
right,
but
what
happens
when
Mike
doesn't
know
what
he's
doing
in
Azure,
which,
as
most
every
day,
okay
edger
is
huge
by
the
way
there's
a
lot
of
stuff
in
Hatcher
right,
I
kind
of
sit
in
those
IT,
ops
and
security
side
of
azure.
Alright,
I'm
learning
all
this
stuff
because
it
changes
every
day.
Alright.
So
here.
A
Oh,
this
one
is
employment
circles.
Now
this
one
right
here,
this
service
name,
it
says:
VPN
gateway.
Alright,
128
bucks,
don't
do
default,
I
clicked!
You
know
the
click
Next
admin
yeah
right
here,
I
dig
default
I
did
not
realize
that
there
were
different
SKUs
or
tears
for
the
VPN
gateway,
something
what's
the
VPN
gateway
right
and
I
stuck
I
basically
sent
it
at
the
standard
VPN
setting
VPN
setting,
which
this
was
a
monthly
spent
for
me
and
I,
didn't
have
a
lot
of
traffic.
There
wasn't
a
lot
of
traffic
going
back
and
forth
right.
A
They
had
a
basic
tier
that
I
didn't
know
of
I
did
figure
it
out
right
after
the
second
time
Rome.
When
I
start
doing
my
security
courses
and
I
had
to
setup
us
a
VPN
gateway
between
I'm
Prem
and
up
in
Agilent.
It
cut
that
cost
in
half
alright.
So
that's
the
one
thing
I
want
you
to
take
away
when
you're
starting
to
play
around
in
Azure
is
don't
settle
for
the
defaults.
A
Look
into
the
stuff,
if
it
says
tier,
if
it
says
SKU
alright
dive
into
that
and
see
if
you
can
get
it
to
a
more
reasonable
cost.
Alright,
unfortunately,
if
you're
out
of
your
add
your
free
stuff-
and
you
don't
want
a
Greek
kick
you
know,
reboot
a
new
credit
card
and
a
new
Microsoft
account-
you
might
have
to
spend
some
of
this
stuff,
but
there's
other
alternatives.
Okay,
so
that
was
my
VPN
gateway.
A
Now
this
one
makes
me
sad
all
right
hundred
seventy-three
bucks.
Now
the
funny
part
about
this
is
this
was
based
off
of
well.
What
I
did
is
I
told
I.
Did
that
learn
as
your
101
without
breaking
the
bank
session
for
the
user
group
here
back
in
February
March
and
the
whole
premise
was:
don't
spend
money
all
right,
try
to
save
money?
Don't
you
know,
don't
leave
things
up
and
running
well.
I
went
through
that
and
I
went
through
some
of
the
basic
PowerShell
or
some
of
the
basic
to
Azure
things.
We
did
some.
A
You
know
stuff
live
demo
stuff
and
one
of
the
things
was
I
set
up
a
web
app
a
wordpress
web
app
with
a
my
sequel,
back-end.
Okay.
Now
how
many
people
here
spun
things
up
like
that
in
Azure,
and
it
happens
instantaneously
right,
not
so
much.
Some
of
those
deployments
can
take
up
to
20
minutes.
Okay,
how
fun
is
that
in
a
webinar
when
you're
watching
something
deploy
for
20
minutes?
Okay.
So
what
do
we
do
in
that?
In
that
scenario,
we
do
cooking
show
instruction
right.
A
You
were
who's
that
Martha,
Stewart,
I,
guess
I'll
call
her
she's
making
all
the
stuff.
Then
she
pulls
out
here's
the
already
made
stuff
and
that's
what
I
did.
It
was
more
so
that
as
well
as
a
backup
right,
because
everything
works
perfectly
when
you
do
a
demo
right,
yeah
I,
just
jinxed
myself,
so
the
doubt
the
live
demo
went
very
quick
and
it
came
up
and
boomed
everywhere
and
like
a
yeah
Rockstar,
and
so
then
what
we
did
is
I
showed.
Okay.
This
is
how
we
need
to
reduce
our
costs.
A
We
remove
this
I
had
a
completely
separate,
WordPress
site
running.
Guess
we
forgot
to
tear
down
the
backup
WordPress
site
for
a
month
boom,
173
guess
who
paid
for
that
that
plural
site,
my
wife
told
me
she's
like
well.
We
can
just
run
them
through
Pluralsight,
right
and
I'm.
Mister,
like
I,
said
I
hate
doing
expenses,
cuz
I
mean,
can
I
really
expense.
This
I
was
there
I
bought
it
right
and
I
said
no.
This
was
on
me.
This
was
my
stupidity.
A
I
was
doing
this
unit
for
my
own
professional
element
and
would
they
have
paid
for
it
absolutely
they're
an
awesome
company,
okay,
but
this
was
out
of
my
pocket
right
and
I'll
say
my
wife
was
not
terribly
happy
with
me
and
that's
what?
Basically
we
looked
at
now
we
were
broke,
but
that's
what
it
felt
like
right.
It's
basically
I
got
nothing
out
of
that,
but
I
did
have
a
great
experience
and
I've
learned
a
lot
about
it.
A
A
A
A
A
Yeah,
it's
their
service
that
basically
protects
you
from
a
distributed
denial
of
service,
and
it's
not
very
cheap
I
found
out.
Okay,
now
again,
if
I'm
an
enterprise
company.
This
is
part.
This
it's
gonna,
be
a
lot
bigger
than
this
right.
My
DDoS
is
protecting
a
small
environment
of
probably
eight
virtual
machines
in
the
cloud,
as
well
as
my
on
Prem
stuff,
okay,
but
still
one
month
of
that
small
environment,
and
if
they
don't
have
an
azure
DDoS,
they
do
have
a
free
and
then
it's
standard.
They
don't
have
a
premium
tier.
A
This
is
just
standard
tier.
It's
nice!
It's
a
great
service.
It
spins
up
as
your
login
Lennox.
It
does
a
lot
of
that
stuff
and
when
you
see
that
stuff
you're
gonna
get
charged
right
whenever
you
hear
login
and
it's
just
things
to
change.
Okay,
it's
always
gonna
hit
your
head.
You're
spend
anything
written
to
Azure
in
storage,
for
the
most
part,
is
gonna.
Do
a
little
chit,
Ching,
okay,
so
yeah!
This
DDoS
was
a
big
spend
for
me.
I
had
some
other
things
in
there.
Application
gateway
just
some
minor
stuff,
but
yeah.
A
B
A
Do
have
a
free
tier
yeah
they
have
like
they
have
aunt
Addie
douses.
If
you
have
an
account
it's
running
right
from
my
free
perspective.
I,
don't
know
the
elevation,
like
the
big
differences
between
the
free
I,
had
that
in
my
course,
but
I
have
a
very
bad
retention.
Okay,
but
yeah
there's
significant
differences
on
how
it
logs
everything
like
as
your
regular
D
dust,
doesn't
log
anything
all
right.
A
So
if
you
try
to
fail
and
succeed
which
have
you
done,
I
love,
George
Carlin
makes
you
think
so,
yes
did.
I
fail
was
a
cataclysmic
failure.
No
I've
heard
stories
all
right,
I'm
going
to
a
cloud
user
group
in
Northeast,
Wisconsin
I'm
from
Green
Bay
Wisconsin
by
the
way.
Just
to
give
you
a
little
context
of
what's
that.
Okay.
B
A
On
and
that's
why
I'm
leaving
early
tomorrow
come
on
and
watch
somebody
rain
up,
I
thought
it
was
a
15,000
or
a
50,000
as
you're
spend
not
personal
right.
It
was
at
a
company,
but
can
you
imagine
walking
into
your
boss's
office
with
that
yeah
I?
Don't
think
I,
don't
think
that
guy's
working
there
anymore,
but.
A
Nelson
who
works
for
rubric,
told
us
about
that
story
and
he's
you
know
he
does
the
circuit
with
VMware
and
whatnot.
He
was
talking
about
how
there,
as
you're
spent
somebody
made
a
whoopsie.
That's
a
pretty
expensive
whoopsie.
So,
yes,
I
made
some
failures.
They're
kind
of
small
failures,
I
learned.
So
in
my
eyes
your
security
courses,
I
brought
my
costs
down.
I
knew
that
a
VPN
gateway
has
a
basic
skew
right,
a
smaller
tier,
a
cheaper
tier
and
for
my
purposes,
I.
Don't
need
big
Bane
with
right.
A
I
have
small
environment
I'm,
setting
up
a
course.
Okay,
so
I
can
get
away
with
having
that
smaller
bandwidth.
So
what
do
we
have
free
so
free
for
now,
when
you
first
sign
up,
you
get
a
two
hundred
dollar
credit
towards
all
your,
as
your
credit,
serve
all
your
agile
services.
Now
that
may
seem.
Well,
maybe
it
doesn't
seem
like
they'll
hide
Hector,
my
last
couple
slides,
but
you
can
get
that
you
can
stretch
that
to
go
a
long
way.
A
Now
a
lot
of
us
said
we
already
have
an
ad
your
account
right
now,
I
think
Dave.
We
were
talking
about
that
with
the
credit
card.
If
you
change
your
credit
card,
do
you
get
that
new
like
if
I
did
a
new
Microsoft
account?
I
would
probably
have
to
use
a
different
credit
card.
Maybe
it
was
Osman
said
that
so
you
there
are
ways
to
buck
the
system.
Yeah
I
did
you
said
you
got
the
temporary
credit
card
like
the
burner
card.
B
A
So
there's
ways
you
can
buck
the
system.
Yes,
you're
gonna
lose
the
assets
that
you've
already
created,
but
who
cares
you're
learning
stuff
right,
so
you
can
go
through
and
get
you
know,
one
of
those
temporary
credit
cards
or
those
you
know,
limited
credit
cards
and
keep
on
creating
different
accounts.
All
right,
that's
one
way
to
learn
Azure,
and
that
gives
you
your
$200
credit
now
for
a
month
or
for
12
months.
You
get
a
bunch
of
other
stuff.
Okay.
A
Now,
if
you
go
into
a
jurors
website
and
go
to
the
portal
login
to
the
portal
and
just
search
for
free
services,
we'll
see
this
in
a
moment,
it'll
show
you
all
the
different
free
services
you
have
access
to
and
you
can
deploy
from
that
site
all
right
within
the
portal.
So
if
I
want
to
create
a
free,
VM
I
can
just
set
I
can
correct
click,
create
it'll.
Do
that
right
there!
A
So
now
you
know
you're
baked
into
the
free
process
versus
you
going
out
and
create
in
that
virtual
machine
and
not
knowing
exactly
what
was
that
SKU?
What
was
that
price
in
tier?
Alright?
So
there's
different
things
that
you
can
do
to
kind
of
prevent
yourself
from
actually
creating
those
things
are
gonna
cost
money,
then
there's
always
free,
so
you're
always
gonna
have
Active
Directory
for
free,
azure,
DevOps,
automation,
virtual
networks,
a
whole
bunch
of
stuff.
Now,
why
is
this
important?
If
you
can't
really
do
a
whole
lot
with
it?
A
Why
do
we
care
I
mean
if
it's
as
your
virtual
networks?
Does
that
something
you
might
need
a
leverage
at
some
point
time?
Yeah
you
can
go
there.
You
can
PowerShell
that
see
what
it
means
to
send
up
a
subnet.
Alright,
all
that
stuff
is
valuable
information
if
I
can
tap
into
that
great
as
your
functions.
Alright,
how
many
people
here
are
familiar
with
Azure
functions,
all
right,
I
know
it's
a
big
PowerShell
thing,
though
that's
another
thing
that
is
free
now.
Some
of
these
always
free
do
have
caps
on
it.
A
Right,
like
one
of
the
caps
was
10,000
transactions
or
something
to
that
effect,
10,000
functions
or
whatever
I,
don't
know,
I'm
doing
that
a
month.
I
have
other
issues.
Okay,
now
beyond
free
I,
get
to
know
your
space,
your
service
calculator
forget
what
that
thing's
gonna
cost
you
and,
as
I
said,
once
we
get
beyond,
are
free,
get
that
you
know
tapped
out
or
that
that
credit
card
you
know
that
hundred
dollar
credit
card
sign
up
with
that
create
a
new
account.
All
right,
you
can
keep
on.
A
You
can
keep
on
rolling
that
over
and
do
that
same
game
now.
I
believe
Amazon
and
Google
are
fairly
much
they're,
pretty
much
in
the
same
space
as
far
as
what
they
offer
for
free
as
well
and
for
the
duration.
Okay.
So
if
you're
an
Amazon
person,
GCP
person
any
more
work
with
people
in
here,
no
good,
we
can
talk
about
or
whatever
call
platform
they
do
have
similar
services
and
similar
offerings.
A
So
it's
good
to
kind
of
get
at
least
a
fundamental
understanding
of
those
other
services
as
well,
because
if
you're
looking
for
a
new
role-
and
you
can
talk-
the
talk-
I
mean
that's
gonna,
get
you
a
lot
further.
How
many
people
here
have
gone
into
Amazon
Web
Services,
it's
a
little
different.
Isn't
it
very
different?
All
right
vocabulary
they
use,
is
interesting,
to
say
the
least,
so
here
I'm
in
the
portal-
and
this
is
part
of
that
of
free
services.
A
So
if
you
look
for
free
services,
it'll
bring
you
all
the
different
things
that
are
free.
Okay.
Now
it
gives
you
the
SKU
as
well.
So
you're,
not
gonna,
make
a
mistake
there
again.
This
is,
if
we're
doing
this
in
the
plural.
Now,
if
you're
doing
this
via
power,
show
no
you
got
to
put
in
the
size
when
you're
doing
a
PowerShell
command
your
power.
So
you
know
new
AZ
VM.
You
have
to
make
sure
you
tell
it
it's
a
standard.
B-1S
I
think
the
default
is
a
standard.
A
A
What's
interesting
is
a
lot
of
things,
that's
just
cost
of
doing
business
in
that
region.
You
know
it's
that's
why
things
are
always
scaling
different
different
regions.
I
know
I
do
a
lot
in
central
us
because
that's
where
I
live
and
I
want
everything
as
close
to
me
as
possible
for
the
latency
purposes,
but
East
us
and
East
us
to
I,
don't
know
which
one
is
more
expensive.
I
can't
keep
forgetting
which
one
it
is,
but
it's
different.
It's
a
pretty
significant
difference.
A
So
when
you're
scaling
your
stuff
when
you're
creating
your
VMs
and
if
you're
gonna,
it's
gonna
cost
some
money
understand
the
location,
the
locations
are
going
to
impact.
What
you're
gonna
spend
all
right
you
have
price
to
do,
a
business
could
be
taxes
could
be
your
carbon
footprint,
there's
all
different
things
that
factored
into
that
price.
Difference
right.
They're
gonna
have
different
price
points,
whether
it's
here
in
the
US
or
even
globally.
So
that's
why
those
prices
change,
because
the
price
of
doing
business
in
those
regions
is
different.
A
All
right,
some
SKUs
may
not
be
available
in
the
region.
You
want
all
right.
Somebody
said:
availability
all
right,
I'm,
looking
at
scale
of
SKU
availability,
what
size
VMs,
alright,
the
smaller
bm's
I
think
scale
across
all
the
regions.
You're
gonna
see
those
pretty
much
everywhere
now
this
has
been
a
kind
of
a
big
hot
topic,
reserved
instances
how
many
people
have
heard
of
that.
Okay.
What's
the
reserved
instance.
B
A
They've
been
around
ever
since
I've
been
doing
address
stuff
because
I
know
when
I
do
my
as
your
migration
series,
we
do
assessments
and
you
can.
The
assessment
tells
you
what
your
projected
operational
expenditure
is
going
to
be
once
you're
in
the
cloud
after
migration
and
part
of
that.
The
the
properties
that
you
can
set
to
calculate
is
reserved
in
instances
and,
as
it
says
here,
seventy-two
percent.
Alright,
that's
off
the
bat
right.
A
Include
or
that
now
that
includes
Server
licensing
as
well.
Now,
if
you
do
a
hybrid
benefit,
it's
up
to
82
percent.
All
right
so
now
think
about
that
when
you're
doing
your
own
stuff,
when
you're
doing
this
for
yourself
learn,
if
you
think
you're
going
to
be
an
azure
for
three
years,
maybe
might
be
worth
looking
at
I'm
not
saying
go
ahead
and
do
it,
but
that's
something
to
consider,
because
now
they
have
monthly
payment
plans.
That's
what's
new
with
reserved
instances.
A
Oh
great
question,
hybrid
benefit,
so
hybrid
benefit
is
essentially,
if
you
have
a
Software
Assurance
license,
meaning
you
buy
your
license
in
your
server
license
in
through
a
vendor
that
our
vendor
partner,
with
Microsoft
and
just
like,
say,
for
instance,
I
have
server
whatever
version
right
now,
2019
I
have
to
pay
a
monthly
subscription
or
whatever
a
whole
year
and
I.
Keep
on
getting
those
software
licenses.
Is
that
that's
part
of
really
horrible
explanation
of
it.
One
of
the
places
that
I
worked
out.
We
have
three
Cal's
that
we
have
Software
Assurance.
A
Yeah,
that's
the
the
hybrid
means
you
can
run
an
on-prem
or
in
the
cloud.
So
I've
heard
a
boy
and
just
did
a
hyper-v
deployment.
I
didn't
do
migration
migration,
but
so
I
learned
I
used
up
all
my
excuse.
All
my
licenses
good
question,
though
other
cost
factoids
computers,
I,
was
going
to
be
the
most
expensive
part.
A
The
processing
power
I
think
they
called
the
DCU
I
think
it
is
just
no
DTU
digital
transaction
I
think
it
is
either
way
the
size
of
the
process
or
the
amount
of
processing
that
you
do
in
Azure
is
where
you're
going
to
find
the
most
hit
on
your
as
you're
spending
now
working
a
second
now
with
an
azure
and
I'm
going
to
make
an
assumption
with
some
of
the
other
cloud
providers.
Ingress
is
free,
we
need
inbound.
A
B
A
A
Yeah
all
right
in
my
security
course
I
could
have
done
things
differently
there
too,
because
I
did
have
managed
just
that
we'll
probably
scale
a
little
bit
more
than
they
needed
to
be.
If
I
were
doing
that
on
my
own,
it's
certainly
but
I
button
that
down
quite
a
bit.
Another
benefit
of
managed
disks
is
that
they're
scalable
they
can
scale
up
and
down
a
lot
more
easier.
You
can
do
that
with
non-main
is
just
from
what
I've
read,
but
it's
very
difficult
right,
yeah,
great
great
feedback.
A
A
Alright,
so
we
should
all
be
familiar
with
this
command.
This
is
some
of
the
methods
that
we
knew
need
to
apply.
So
when
we're
running
as
your
VMs
alright
and
we
want
to
shut
those
down,
this
is
what
we
need
to
use,
because,
if
I
use
shut
down,
I
do
at
select
a
JVM
I'm
grabbing
my
resource
group
name,
our
TPS,
you
Saturday
and
I
pipe
it
over
to
stop
p.m.
the
critical
thing
here
is
force
alright.
A
It
D
allocates
the
VM,
it
doesn't
delete
the
VM.
All
right,
that'd
be
useless.
You
can
do
that.
You
can
do
that
new
remove
VM,
but
it
puts
it
in
ad
allocated
state
which
releases
the
resources.
So
one
of
those
resources
is
the
public
IP
address.
So
if
you're,
spinning
up
virtual
machines-
and
you
add
a
public
IP
address-
that's
gonna
cost
a
little
bit
of
money
right.
You
can
do
that
without
a
public
IP,
but
when
you
deallocate
it
it
shuts
it
into
a
quiet
state
and
it
releases
those
resources.
A
If
you
have
data
on
disk,
for
that,
VM
you're
still
going
to
get
to
store,
they're
still
going
to
get
storage
cost
all
right,
but
the
deallocation
basically
says
all
right:
we're
not
charging
you
for
processing
power
on
this
system.
Okay,
now,
if
you
don't
use
the
force
it'll
show
up
in
your
VM
he'll
show
up
in
the
portal
is
just
stopped
all
right,
but
we
want
to
see.
Is
we
want
to
see
this
right
here?
A
Stop
with
D
allocated
okay
now
other
ways
that
you
can
D
a
legate
it
is,
you
can
simply
select
stop
in
the
plural.
So
up
here
we
have
stop.
So
you
can
select
that
on
the
portal.
Now,
if
you're
within
the
VM
say
you
remote
it
into
it
and
you
click
and
you
select
shut
down,
that's
not
going
to
deallocate
it
all
right,
so
those
things
are
going
to
be
those
things
add
up,
I
mean
if
you
have
that
VM
that's
sitting
there
and
it's
not
the
allocated.
It's
gonna
cost
more
all
right!
A
So
what?
If
you're
out
about
alright
I'm
here
in
lovely
North,
Carolina,
I
love
it
here
and
I'm
like
holy
crap
I
got
VMs
up
and
running
all
right.
This
is
gonna.
Cost
me
money
right.
Has
anyone?
Has
anyone
kicked
the
tires
on
the
azure
mobile
app
yeah?
It's
awesome,
I
always
play
with
this.
This
is
actually
at
dinner
with
my
wife
and
I'm,
paying
attention
obviously,
and
and
I
start
my
call
this
is
so
super
cool
and
she's.
A
Just
you
know
typical
how
many
people
get
you
know
their
spouses
roll
their
eyes
at
them.
When
you
talk
tack,
yeah,
that's
my
wife
too!
So,
if
I'm
not
about,
I
can
go
out
there
and
I
can
shut
those
things
down.
Okay,
now
again,
this
is
a
manual
process
right
and
we're
here
for
power.
Show
and
power
shows
all
about
what
automation
right
so
I
can
still
do.
This
I
could
set
something
up
in
my
Azure
storage
and
run
a
script
right
or
I
could
do
what
flush
it
out
with
a
run
book.
A
Possibly
if
I
could
do
that,
okay,
an
automation,
run
book
or
I
can
have
a
scheduled
task.
All
the
types
of
options
are
available
to
us
right.
Well,
actually,
I
want
to
show
you
something
check
out
my
battery
game,
I'm,
proud
of
that
one
percent.
Does
anybody
get
PTSD
when
they
see
her
get
stressed
out
when
they
see
people
that
are
in
red
line
batteries?
My
son
lives
there.
A
It
stresses
me
the
F
out:
okay,
now
I
had
a
fun
travel
day
yesterday,
so
I
thought
I'm
gonna
go
into
the
Azure
cloud,
I'm
sitting
in
Green
Bay
for
four
hours,
ten
miles
from
my
house
stuck
at
the
gate
because
of
fog,
so
I'm
like
well,
I'm,
gonna,
take
a
screenshot
and
so
I
went
out
and
I
did
get
a
JVM
and
just
the
same
yep.
There
are
my
VMs
all
my
VMs
are
alive
and
kicking
for
this
as
your
Saturday,
a
partial
Saturday,
so
either.
A
B
A
A
Right,
but
for
your
peace
of
mind,
you
can
actually
use
this.
It's
essentially
doing
an
automation
account
in
the
background
right
and
they're
charging
for
it,
but
you're
getting
login
analytics.
Okay,
so
that's
in
the
marketplace.
It
says
you
will
be
charged
based
on
the
pricing
of
the
services
above
right.
A
A
A
So
these
are
just
means:
I
put
together,
connect,
easy,
a
column.
That's
gonna
register
this
device
with
Azure,
okay
as
a
well
you've
done
that
with
the
easy
module
it's
pretty
fun
and
what
it's
a
lot
different
than
it
was
before
with
the
a
CRM.
This
actually
is
a
persistent
connection
to
Azure.
Now
how
many
people
are
security?
People
in
here?
That's
probably
not
a
good
thing.
Is
it,
but
if
your,
how
many
people
are
lazy
in
here,
I
am
right.
It's
a
good
thing.
I
don't
have
to
log
in
every
single
got
goldarn
times.
A
A
A
That
times
the
number
of
V
ends
you
have,
though,
okay,
if
you're
just
playing
around
this,
is
what
I
like
to
do
is
I
like
to
have
a
VM
up
and
running,
and
then
I
can
hit
it
with
my
with
my
PowerShell
just
to
play
around
and
get
my
PowerShell
AZ
module
chops
going.
Ok,
that's
how
we
learn
stuff
right
all
right,
so
we
got
that
going
for
us,
which
is
nice
now
down
here.
What
I'm
going
to
do?
Has
anyone
created
in
as
reveal
with
PowerShell?
Yes,
okay!
A
Anybody
know
what
this
technique
is
called:
splatting
good
cool,
so
all
this
is
doing
is
I'm,
just
I'm
sliding
I'm,
creating
an
array,
a
hash
table.
If
you
will
all
the
parameters
in
the
values,
alright,
so
I'm
doing
a
resource
group
name
so
I
have
a
demo.
Rg
I
have
two
different
resource
groups.
I'm
going
to
deal
with
you,
I
have
a
couple
different
things
intentionally,
so
I
can
show
you
the
day
end
of
the
day
of
what
we're
doing
here.
So
we
have
all.
The
information
here
should
be
pretty
much
self-explanatory.
A
A
A
A
A
A
So
through
Azure
policies,
what
I
can
do
is
I
can
say
you
know
what
don't
let
teske
create
a
virtual
machine
that
is
this
you
or
better,
yet
only
allow
these
versions.
Okay.
So
even
though
I
work
by
myself,
I'm
not
managed
by
anybody,
probably
not
a
bad
thing
for
me,
because
you
know
what
often
times
I'm
forgetful
or
I
want
to
get
done
really
fast.
Okay,
so
I'll
go
through
and
I'll
whip
through
something
I'll
forget
to
put
the
right,
skewing
or
I'll
just
be
that
click
Next
admin.
A
So
I
go
here.
Look
at
policy
grab
as
your
policy.
How
many
people
here
know
what
group
policies
are
yeah?
That's
what
I
thought
with
group
with
Azure
policy
I'm,
not
gonna,
say
that's
what
they
are,
but
what
it
does.
This
is
more
for
compliance
all
right
and
also
keeping
you
know
your
intern
from
spitting
up
a
minecraft
server.
You
know
one
of
the
big
large
hi
graph
CPU
and
GPU
VMs
that
cost
thousands
of
dollars
a
month.
So
what
this
does
is
they
basically
goes
in.
A
As
you
see
right
here,
I
this
one
called
allowed
VMs.
So
these
are
lists
of
VMs
that
I've
allowed
myself
to
create
for
a
particular
resource
group.
So
if
I
looked
at
this
I
mean
spin,
this
back
so
I
have
the
Research
Triangle
Power
Cell
user
group
I'm.
Restricting
that
group
from
only
creating
three
different
types
of
VMs
and
I
can
see
that.
A
By
going
to
that
thing
allowed,
as
your
VMs
I
have
one
non-compliant
right
now.
What
this
means
is
that
I
created
this
before
I
created
the
policy.
Now
the
policy
comes
in
and
says:
hey
Teske,
you
got
one,
that's
non-compliant
fix,
it
doesn't
delete
it
right,
that'd
be
bad,
but
at
least
alerts
me
of
things
that
are
not
compliant
in
my
organization.
I
can
do
this
at
this
subscription
level
management
group
level
and
at
ten
level,
all
right
and
there's
a
whole
lot
more
to
add
your
policies
than
just
restricting
skews
all
right.
A
A
Pasted
this
JSON
file
now
I
believe
it
was
Ian
folds
all
right,
like
I,
said
I'm
grabbing
tools
from
off
the
interweb
okay
Ian
fools,
who
wrote,
learn
adjourn
among
month
of
lunches,
I
think
he
lives
up,
Seattle
or
I
know
he's
in
the
northwest
cuz
he.
He
always
tweets
at
me
with
a
picture
of
his
grill
buried
in
snow,
this
I,
but
he
had
a
really
cool
article
about
how
to
do
this
in
PowerShell
and
that's
where
I
got
this
room
because
I
did
this.
A
For
my
street
courses,
all
right
I
went
through
the
portal
because
they
want
portal
stuff,
which
kind
of
bugs
me
a
little
bit,
but
I
always
throw
a
little
PowerShell
in
there
just
to
be
cool,
so
I
went
out
there
and
I
got
this
and
went
through
his
step-by-step
and
we're
great
right,
there's
a
lot
of
stuff
on
the
edge
or
Doc's
sites
too.
That
walks
you
through
some
of
the
stuff
and
they
give
you
the
portal
option,
the
PowerShell
option
and
the
azure
COI
ops,
all
right
we're
not
doing
good
on
time.
A
A
This
is
basically
walking
it
through
and
I'm
not
going
to
go
through
and
create
all
these
because
I've
already
created
it.
What
I'm
going
to
do
is
make
this
available
in
the
in
the
repo
rate,
you
guys
have
the
repo
setup
that
we're
gonna
put
the
stuff
yeah
yeah,
but
this
will
all
be
available
out
there,
so
it
just
walks
through
and
I
put
comments
in
there
and
I
can
do
it
at
the
right.
Here's
a
signed
custom
policy
at
the
resource
group
level
or
assigning
it
at
the
subscription
level.
A
B
A
A
It
takes
insurance
for
a
while
and
then
editor.
We
got
a
lot
manager
demo
for
was
disallowed
by
policy.
That's
pretty
much!
What
I
wanted
you
to
see
right?
The
first
one
should
have
run
because
it
was
in
a
different
resource
group.
I
did
not
apply
that
as
your
policy
to
that
resource
group,
so
we
can
create
whatever
it
wants,
but
I
can
drill
down
and
create
a
resource
group
and
basically
snipe
a
policy
at
that
single
resource
group
or
user.
All
right.
So
that's,
what's
really
cool
with
Azure
policy.
A
If
you
go
to
add
your
policy,
there's
a
ton
of
definitions
in
there
that
are
beyond
what
I
did
here:
I
created
a
custom,
research
or
custom
definition,
but
there's
tons
of
things
on
there.
There's
storage
account
sizes.
They
have
different
things
for
auditing
the
Microsoft
management
agent,
if
not
as
if
it's
not
they're,
present
on
your
virtual
machine
install
it
and
that
works
for
both
on
Prem,
as
well
as
as
your
resources.
All
right
cool
keeps
you
from
building
those
big
systems
all
right.
Finally,.
A
A
There
we
go
so
it
indicates
that
the
Commandant
gets
only
the
instance
of
view
of
the
virtual
machine.
So
this
is
going
to
tell
me
whether
or
not
my
VM
is
running
all
right.
When
you
do
a
get
VM
and
I
was
going
to
go
through
get
member
and
go
through
all
that
stuff
will
ruin.
It
short
on
time.
I
want
to
know
if
my
VM
is
running
and
if
it's
running
what
should
I
do
shutdown
right.
So
that's
my
end
game.
You
know,
hopefully
for
the
next
session,
for
the
next
discussion.
A
A
So
now
I
can
hit
display
status
up
there
and
it's
going
to
tell
me
what
it
is
now
I
can
take
that
information
that
thing's
running
now
I
can
do
some
logic
and
say
if
it's
running
shut
it
down
or
if
it's
this
time
of
days
shut
it
down.
Okay,
now
there
is
a
script
in
here
again
this
is
a
Tim
Warner,
Tim
Warner
come
collaborated
with
John
Savile,
but
here's
a
function
get
a
z/vm
status,
so
this
is
doing
a
lot
of
the
stuff
that
I
want
to
do
all
right
check
the
status.
A
A
A
B
A
So
that's
gonna
run.
So,
while
that's
thinking
about
what
it's
doing
there,
it's
coming
back
with
the
VMS
that
are
up
and
running
and
it
doesn't,
it
could
be
running
or
not
running
and
what
it'll
display
it
it'll
be
shutdown,
D
allocated
or
stop
the
allocated
or
just
stopped
as
well.
So
it's
gonna
show
us
the
true
status
or
state
of
that
system.
A
A
A
A
So
essentially,
this
has
a
bunch
of
VMs
in
it
or
a
bunch
of
code
and
in
its
PowerShell
workflow.
So
you
see
if
there
says,
workflows,
that's
a
little
different
animal.
It's
a
little
more
robust
than
Tim
described
it
in
Tim's
way
of
it's
more
elegant.
It's
code,
I,
don't
know,
I,
know
people
there's
the
different
factions
of
people
who
code
differently.
What
this
does
is
it's
going
through
its
connecting
to
my
as
your
automation
account.