Time
7 hours 46 minutes
Difficulty
Intermediate
CEU/CPE
8

Video Transcription

00:00
Hello And thanks for joining me again for Cyber Aires. Microsoft Azure Administrator A Z 103 course I'm Will Carlson. And this is Episode 36 public and private I p addresses.
00:11
In today's episode, we're gonna talk about some of the differences between public and private I p addresses and what assets they're associated with. Here in Azure,
00:20
we're gonna talk about which resource is in azure support, which types of addresses, and that's gonna very based on the asset type. And then we're gonna go in and configure a public and a private I p address on a virtual machine as well.
00:34
Ticket started private I p addresses are going to be those that are not row doble to the public Internet. These air gonna be addresses that are only useful within the azure environment.
00:45
And we have a couple of resource is here that private I P addresses apply to virtual machines, internal load balancers and application gateways or a Z 103 The 1st 2 of these are gonna be particularly useful and meaningful likely to be testable material. And you can see the association column here is going to be
01:04
what on that device is the private I P address actually associated with.
01:10
So when I go to change the private I P address on a virtual machine, I'm gonna do that by making changes to the network interface card of that virtual machine.
01:19
And you can see that all of these private, all of these resource is support both dynamic and static. Private I p addresses
01:27
Now the association point for an internal load Balancer doesn't make sense yet. Don't worry. We're gonna have episode dedicated to discussion about internal and external public load balancers.
01:40
The other type of I p address we're gonna run into here in Azure is a public i p address. And these clearly are going to be those that are addressable over the Internet over the public Internet. We have four. Resource is here that public I p addresses can be associated with.
01:55
And the same information here is faras What actually do these public I p addresses associate with on the resource
02:02
and whether or not they could be dynamic or static Notice VP and gateways and application gateways do not support static public I p addresses
02:13
to dive into portal and make this all make a little more sense. We're going to start by going in here to our virtual machines blade and clicking on one of the virtual machines that we currently have set up.
02:23
The first I p address that we're gonna work on changing is going to be the private I. P. Address. Every resource here in Azure is going to have a private i p address so we can communicate with it within the azure environment
02:36
and to change the private i p address on a virtual machine. We're gonna come in here to networking
02:42
in the networking blade of a virtual machine. We can see quite a lot of information all the way from information about the network interface card itself and also some of the port rules that are associated with our network security group. But for this episode, in order to change that, in order to change that private I p address,
02:59
we're gonna go ahead and click on the name of the network interface card,
03:02
and that brings us into the network interface card blade. Now, to make the change, I can come down here to I p configuration.
03:09
I can click here on the I p that's already assigned to this network interface card.
03:15
And I can go ahead and set the private eye p from dynamic to static.
03:20
Simply change it to static. Set the address to be whatever it is that I want. Keep in mind, this has to be an I. P. Address that has not already been assigned by Azure.
03:28
And I can see here a warning that changing this is going to cause the virtual machine to need to be rebooted. So keep that in mind when you're making this initial configuration change that it really is wise to do this on the initial set up before this machine is varying production workloads.
03:45
Now, that would seem pretty apparent to those of us that have managed infrastructure ourselves. Internally, it's pretty standard practice to make everything have a static I p address.
03:54
That's not gonna be on by default. Here in Azure Azure is going to assume that you're going to use the baked Indian s server that gets deployed as a virtual as part of your virtual network here in the azure environment.
04:06
I can also see here interestingly, that this machine also has a public I p address already enabled, or we could go ahead and said and change that here as well.
04:17
I can't save changes,
04:19
and that's all there is to changing the private eye p from dynamic to static.
04:25
Another way to get in here and to see the same thing in a little bit different way would be to come in through the resource group
04:30
and go into the IittIe resource group, where my virtual machine is. That
04:34
and I can see the files in Virtual Machine is right here
04:39
and then looking through this list I can see right here files ing 8 43 is actually the network interface that's associated with this virtual machine. So I could click on this,
04:48
and that gets me back to the same page that I got to buy navigating through the virtual machine networking blade.
04:55
If we go back here to the I T. Resource Group,
04:58
I can also see the public I p address resource that's associated with the file sink virtual machine.
05:05
In order to change the public I p from dynamic to static, I can simply click on that resource, come over here to configuration,
05:15
and then I can change the assignment of this I p from dynamic to static so changing dynamic to static on both a private and the public I p addresses largely similar. We simply have to find the resource that is that I p address and then make the change at that point in time
05:32
Now for public I p addresses. There are a few other interesting configuration items here, and we could go ahead and set an idle time out.
05:40
An adult time out is going to make sure that TCP and http connections are kept open regardless of whether or not they're receiving to keep alive from the client. We can also go in and set a D. N s label that creates an A record in azure D. N s so that we can access this particular resource using de en ESAs well.
05:59
And we can also go in and set some alias records for this particular resource if we wanted to track it differently. Even still,
06:06
we're not gonna make any changes to the public i p address today. But I hope you can see that by navigating to the resource of the network interface card or the public i p address itself That's how we're going to make changes to whether or not those addresses are static or dynamic.
06:23
So what if we need to add a public i p address to a resource that doesn't already have one? So for this example, we're gonna go ahead and click back into the I T. Resource Group.
06:32
We're gonna click on our service desk Of'em.
06:35
Now we could go back into the networking blade of this particular VM. We could click on our network interface card,
06:43
go back to I p configurations and click on this I p address here
06:47
and we can see that the public I p addresses disabled so we could go ahead and enable the public i p address from this blade and that would deploy a public i p address to this virtual machine.
06:59
Another way of getting this done would be by going up here to create a resource and searching for public I p address.
07:06
And then we can create one from here.
07:10
Once we've created a public I p address through the re create a resource blade
07:15
that doesn't associate that public I p address with anything. All I did was create a public I p address, and it's just simply sitting in this resource group as an un deployed resource. Essentially,
07:25
I can see it here as the service desk B m. I t
07:29
go ahead and click on that and get down into that public I p address resource. And the trick here is to associate this public I p with a resource. We don't associate this of the load balancer will associate with a network interface of our service desk of'em
07:44
and I can select. Okay,
07:46
that's the longer way of doing what we could have done simply through the VM blade. But it is another way to get that done. Get this a couple of more options on how we set up the I P. And it also allows us to configure public I p addresses with other resource is load balancers in this example.
08:03
So in today's discussion, we went through how we can assign a public i p address to a resource in azure two ways. In fact,
08:11
we talked about making public and private I p addresses static and remember that doing so will oftentimes result in a reboot. Azure is kind enough to warn us when that is necessary.
08:22
And we also configured I p addresses on a virtual machine here in the portal as well. Coming up next, we're going to talk again from the networking perspective about service in points, what they do for us and why they really are a great solution for a number of use cases.
08:39
Thanks for joining me today. I'm looking forward to the service in point episode coming up very soon.

Up Next

AZ-103 Microsoft Azure Administrator

This is a training course for the Microsoft Azure AZ-103 Certification. The Microsoft Azure Administrator training course teaches students to perform tasks like managing Azure subscriptions and resources, implementing and managing storage, deploying and managing virtual machines (VM) and networks, and managing identities!

Instructed By

Instructor Profile Image
Will Carlson
Director of IT and Cybersecurity
Senior Instructor