With our virtual machine now deployed it's now time for us to connect to the virtual machine itself.
And there are multiple ways that we can do that.
First of all let's go over to the Azure portal and create an IDP session to the virtual machine.
Here we are in the azure portal and the easiest way to find your VM is is either to click the virtual
machines tab on the left or go into your Resource Group.
But note that it will show the other associated features with the virtual machine as well.
Here we are in the virtual machines tab and you can see our virtual machine SL dash VM 0 1 which is
our windows virtual machine here.
Go ahead and click into that
on the right hand side.
Now you'll see an icon that says connect go ahead and click that one as you can see it will download
an audio file to your machine.
You open that up it'll look just like a normal ADP file that would use when you create an IDP connection
to any Windows machine traditionally on your on premises network.
You'll get us to pick that one and that's just because we haven't created a certificate for this machine.
But go ahead and click connect and you'll be prompted for your credentials.
Now just simply enter the user name and password that you used when you created the machine
click.
Yes if you're prompted for a certificate one and again and as you can see we're connected into the machine
and up comes our desktop.
So that's one way to connect into our virtual machine.
The next way is very similar but instead of us doing it through the portal itself let's go and do the
same thing using power show.
So first of all let's close out of the SDP session
and go over to our power show client.
And in this case we use the following power shall command get as you are and remote desktop file followed
by the resource group name.
Now case it's SL dash seventy five three three dash VMS followed by the name of the virtual machine
and then we can add an optional parameter either for launching it directly or saving it locally.
In this case we're going to launch it hit enter and you can see immediately we get the connection vox
pop up and we can go straight into our virtual machine.
All right.
So we've seen a couple of methods to connect to our virtual machine via RTP but it's also possible to
connect via when arm using power shell in order to do this we have two main methods when R.M. H TTP
s this is where we can connect over SSL using port fifty nine eighty six and this is the recommended
option if you're going to connect to the Internet as is much more secure.
In addition we have when our MH TTP no SSL is required this uses port fifty nine eighty five and this
is ideal for connections from the same private network which is already secure.
There are a number of steps involved in order to set up when I am.
First of all you have to create a key vault create a self signed certificate upload that certificate
to your key vault get the euro for a certificate from the key vault.
So at this point we've created the key vote.
The certificate certificates in the key vault.
Now we get the euro for the certificate directly from the key vault.
Finally we reference our self signed certificate when we create the virtual machine.
All of these procedures can be found at the following link.
You won't be expected to know the detailed commands for this but you should be familiar with the high
level procedures of what's required to create the self signed certificate.
And with that that concludes this demonstration.