{"id":54,"date":"2024-03-02T18:30:00","date_gmt":"2024-03-02T18:30:00","guid":{"rendered":"https:\/\/imcodinggenius.com\/?p=54"},"modified":"2024-03-02T18:30:00","modified_gmt":"2024-03-02T18:30:00","slug":"mssql-an-error-occurred-while-creating-a-new-firewall-rule-value-cannot-be-null-parameter-servername","status":"publish","type":"post","link":"https:\/\/imcodinggenius.com\/?p=54","title":{"rendered":"mssql An error occurred while creating a new firewall rule Value cannot be null. (Parameter serverName)"},"content":{"rendered":"<p>You are receiving the following error message because your IP address (client or local) has not been added to the Azure firewall on the Azure SQL Server.<br \/>\n<br \/>\n<strong><em>Error: mssql An error occurred while creating a new firewall rule Value cannot be null. (Parameter serverName)<\/em><\/strong><\/p>\n<p>If you want to grant access to your local or client IP, then follow the below steps:<\/p>\n<p>  Go to <a href=\"https:\/\/portal.azure.com\/\">Azure portal<\/a><br \/>\n  Select \u201cSQL Servers\u201d from Azure Services.<\/p>\n<p> \u00a0<br \/>\n Fig 1. Azure Services &#8212; SQL servers<\/p>\n<p>  Select your SQL Server from the list to which you want to add the network firewall settings.<\/p>\n<p> \u00a0<br \/>\n Fig 2. Azure SQL servers<\/p>\n<p>  Select \u201cNetworking\u201d from the left-side menu.<br \/>\n  Under the firewall rules, enter the rule name and the start and end IP addresses of your client or local machine.<\/p>\n<p> \u00a0<br \/>\n Fig 3. Azure SQL server &#8212; Networking<\/p>\n<p>  Save the changes.<\/p>\n<p>Note:<br \/>\nYour client IP address will change frequently unless you\u2019re using a static IP address.<\/p>\n<p>Try to connect the SQL server from your client, and it should be able to successfully connect the SQL server and access the database.<\/p>","protected":false},"excerpt":{"rendered":"<p>You are receiving the following error message because your IP address (client or local) has not been added to the Azure firewall on the Azure SQL Server. Error: mssql An error occurred while creating a new firewall rule Value cannot be null. (Parameter serverName) If you want to grant access &#8230; <\/p>\n<div><a class=\"more-link bs-book_btn\" href=\"https:\/\/imcodinggenius.com\/?p=54\">Read More<\/a><\/div>\n","protected":false},"author":1,"featured_media":55,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-54","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=54"}],"version-history":[{"count":0,"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=\/wp\/v2\/posts\/54\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=\/wp\/v2\/media\/55"}],"wp:attachment":[{"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imcodinggenius.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}