About Me

My photo
I am an MCSE in Data Management and Analytics, specializing in MS SQL Server, and an MCP in Azure. With over 19+ years of experience in the IT industry, I bring expertise in data management, Azure Cloud, Data Center Migration, Infrastructure Architecture planning, as well as Virtualization and automation. I have a deep passion for driving innovation through infrastructure automation, particularly using Terraform for efficient provisioning. If you're looking for guidance on automating your infrastructure or have questions about Azure, SQL Server, or cloud migration, feel free to reach out. I often write to capture my own experiences and insights for future reference, but I hope that sharing these experiences through my blog will help others on their journey as well. Thank you for reading!

Cannot connect to XXXXXlistener.database.windows.net

Issue:-

While connecting with Azure Failover groups listeners, I get following error in SQL Server 2014 SSMS.

Cannot connect to XXXXXlistener.database.windows.net.

------------------------------
ADDITIONAL INFORMATION:

Cannot open server 'sqlsouthasia' requested by the login. Client with IP address '61.62.123.64' is not allowed to access the server.  To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range.  It may take up to five minutes for this change to take effect. (Microsoft SQL Server, Error: 40615)


Resolution:-

As per suggestion, we have to execute sp_set_firewall_rule sp from master databases of the server or from Azure portal will have to add 61.62.123.64  IP address.

The query is 


exec sp_set_firewall_rule N'office', '61.62.123.64', '61.62.123.64';  

 or using Azure portal 




The issue will resolve

Thanks for reading..