How to secure network traffic between an Azure website and Azure VM

0 votes
In Azure, you can add VMs to a VNet, but there is no option to add a website to a network. So, what is the recommended way of securing access to a VM (MongoDb) from an Azure website? I don't want my traffic to go through the public internet. I want a way i can direct the traffic to a private connection. Maybe, have the db behind some sort of firewall.

Since the VM will be hosting MongoDb, using SQL Azure or other MsSQL solutions is not an option.
Apr 5, 2019 in Azure by sabby
• 4,380 points
251 views

1 answer to this question.

0 votes

If you want to use networking and your own database in the VM, it is best to start with reserved websites since shared websites may not be good idea due to resource limitation and other restrictions.

If your DB is MongoDB, then you have two option:

  1. Have your ASP.NET MVC application running in a Virtual Machine (Windows Server + IIS + your app - IaaS) and have MongoDB is running on other Virtual Machine. If both machines are in same DC, you dont need to fiddle with networking.

  2. Have Azure ASP.NET MVC Web Role (PaaS) and a Virtual Machine have MongoDB is running (IaaS).

In both cases you just need to configure a connection string to connect MongoDB and there is no extra network modification needed to make it work as all machines are inside same DC.

answered Apr 5, 2019 by prerna
• 1,960 points

Related Questions In Azure

0 votes
1 answer

How to choose between Azure App Service and Azure Service Fabric?

Microsoft has created the document with a comparison for ...READ MORE

answered Jun 13, 2018 in Azure by null_void
• 3,220 points
1,591 views
0 votes
1 answer

How to choose between Azure Webjobs and Azure Functions?

There are a couple options here within ...READ MORE

answered Jul 9, 2018 in Azure by club_seesharp
• 3,450 points
5,793 views
+1 vote
4 answers

How do Connect to Azure website via FTP?

First set up your FTP credentials are ...READ MORE

answered Oct 23, 2018 in Azure by abc
2,466 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 7, 2019 in Azure by prerna
• 1,960 points
1,845 views
0 votes
1 answer

Azure Storage Emulator shows error.

This blog might help with your query: http://blog.smarx.com/posts/windows-azure-storage-emulator-the-process-cannot-access-the-file-because-it-is-being-used-by-another-process Also, ...READ MORE

answered Mar 16, 2019 in Azure by prerna
• 1,960 points
960 views
0 votes
1 answer

Friendly filename when downloading Azure blob.

Azure blobs can be downloaded in four ...READ MORE

answered Mar 16, 2019 in Azure by prerna
• 1,960 points
2,017 views
0 votes
1 answer

How to debug Azure 500 internal server error?

You can simply turn off custom error in ...READ MORE

answered Mar 29, 2019 in Azure by prerna
• 1,960 points
3,805 views
0 votes
1 answer

How do point my domain name to an Azure Website?

It is possible to have a CNAME directed ...READ MORE

answered Apr 12, 2019 in Azure by prerna
• 1,960 points
291 views
0 votes
1 answer

How to set default Web page for a website on Microsoft Windows Azure?

This blog post should resolve your issue: http://blogs.msdn.com/b/cesardelatorre/archive/2010/07/22/how-to-set-a-default-page-to-a-windows-azure-web-role-app-silverlight-asp-net-etc.aspx Look ...READ MORE

answered Mar 27, 2019 in Azure by prerna
• 1,960 points
1,637 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP