About Me

My photo
I am MCSE in Data Management and Analytics with specialization in MS SQL Server and MCP in Azure. I have over 13+ years of experience in IT industry with expertise in data management, Azure Cloud, Data-Canter Migration, Infrastructure Architecture planning and Virtualization and automation. Contact me if you are looking for any sort of guidance in getting your Infrastructure provisioning automated through Terraform. I sometime write for a place to store my own experiences for future search and read by own blog but can hopefully help others along the way. Thanks.

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..