How do you ensure that your Azure SQL Server only accepts connections from a specific Subnet of some VNET?

Experience Level: Junior
Tags: Azure Active DirectoryAzure CloudAzure SQL DatabaseAzure Virtual Networks

Answer

You need to allow access to Azure services and configure a virtual network rule for the SQL Server.

  • Sign in to Azure Portal
  • Select your SQL Server
  • Click Firewalls and virtual networks
  • in the Virtual networks section, click on Add existing virtual network (this will open the rule editor)
  • Fill in the rule name, select Virtual network, select Subnet name/address prefix
  • Click Save

Note that the Service Endpoint needs to be created. If it doesn't exist, Azure will create one for you automatically on the VNET so that the VNET can communicate with the SQL Server.

Related Azure Cloud job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
Azure Active Directory
Azure Active Directory

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
Azure SQL Database
Azure SQL Database

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
Azure Virtual Networks
Azure Virtual Networks

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
AZ-500 Microsoft Azure Security Technologies Preparation
AZ-500 Microsoft Azure Security Technologies Preparation

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself