Hello Angel Garcia,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you need to allow a single IP address from the internet to connect to a SQL Server instance running on a Windows virtual machine (VM) in an Azure subscription. Despite enabling TCP/IP and shared memory, configuring the Network Security Group (NSG) to allow traffic to the SQL Server port, and creating a SQL login, the connection is still not working.
@Adithya Prasad K have solved the problem except unexplained issues however, this is an additional to the solution provided.
- Check SQL Server error logs for any connection error messages - https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-a-server-to-listen-on-a-specific-tcp-port?view=sql-server-ver16
- Consider applying logging on the firewall or NSG to monitor connection requests - https://learn.microsoft.com/en-us/sql/sql-server/install/configure-the-windows-firewall-to-allow-sql-server-access?view=sql-server-ver16
Also, check the link below for more detail steps to follow:
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.