Jump to content
Sign in to follow this  
  • entries
    141
  • comments
    0
  • views
    78764

Microsoft Azure Nested Virtualization | Web Server

Sign in to follow this  
proximagr

372 views

Microsoft Azure Nested Virtualization | Web Server
At my previous post, Microsoft Azure Nested Virtualization | Hyper-V VM inside Azure VM, I described how to create a Hyper-V VM inside an Azure VM with the new Dv3 and Ev3 VM sizes. Now we will see how to use a Hyper-V Nested VM as a Web Server that is hidden behind the Azure VM to secure access to your web application.
Starting we will add the IIS Role at the Nested VM. Go to the Server Manager, add Roles and Features and select the Web Server (IIS) Role.
img_5996d73d577ae.png
Select the Features that your application requires and Install.
After that we will need to Forward the required ports to the Nested VMs. To accomplish this we will need to use PowerShell.
At my previews post I created a NAT in order to have network communication between the Host and the Nested VM. We will use that NAT to forward the port 80 and 443 to the Nested VM.
At the Host Azure VM open the PowerShell and rum:

 



1



Get-NetNat
From the results we can see the NAT Name.
img_5996dd8a03454.png
Now we can create the Rules:

 



1


2



Add-NetNatStaticMapping -NatName "NVMNat" -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 192.168.168.10 -InternalPort 80 -ExternalPort 80
Add-NetNatStaticMapping -NatName "NVMNat" -Protocol TCP -ExternalIPAddress 0.0.0.0 -InternalIPAddress 192.168.168.10 -InternalPort 443 -ExternalPort 443

img_5996ddebb5d06.png
A final step is to create a rule at the Azure VM’s NSG to allow port 80 & 443 and also open the ports at the Windows Firewall on both the Host and the Nested VMs.
img_5996deeb09602.png
Finally we can browse to the Public IP of the Azure VM and see the IIS Welcome Page of the Nested VM.
img_5996df46136d3.png
Just add an https binding to the IIS default website and also browse at the https page.
img_5996e0d15aa4f.png
Stay tuned for more usage scenarios for the Microsoft Azure Nested Virtualization!

Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...