Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure SQL Database Deployment task fails to Create Firewall Rule #3981

Closed
dawilliams opened this issue Apr 10, 2017 · 4 comments
Closed

Azure SQL Database Deployment task fails to Create Firewall Rule #3981

dawilliams opened this issue Apr 10, 2017 · 4 comments
Assignees

Comments

@dawilliams
Copy link

Task Version: 1.*
Specify Firewall Rules Using: AutoDetect
Delete Rule After Task Ends: Checked

##[error]System.Management.Automation.RemoteException
##[error]Unhandled Exception:
##[error]System.Data.SqlClient.SqlException: Cannot open server '' requested by the login. Client with IP address '104.210.149.xxx' 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.

@Ajay-MS
Copy link

Ajay-MS commented Apr 11, 2017

@dawilliams

Few questions to debug issue further.

  1. Are you using hosted agent ?
  2. Can you verify from azure console what IP Address is being to SQL server fall and is it different from what is being mentioned in logs.
  3. Can you share debug logs at [email protected] . Debug logs you can enable by adding a release variable System.Debug = true

@Ajay-MS Ajay-MS closed this as completed Apr 11, 2017
@Ajay-MS Ajay-MS reopened this Apr 11, 2017
@dawilliams
Copy link
Author

@Ajay-MS
Yes we are using the hosted agent and I've just sent the debug logs. I don't understand what you mean for number 2.

@Ajay-MS
Copy link

Ajay-MS commented Apr 11, 2017

@dawilliams

To explain step 2 in detail refer to image attached below
sqlserver

Above image shows firewall setting corresponding to your SQL server.
Number 1 in image refers to client IP from which you tried to deploy to server most recently.
Number 2 in image refers IP address being added to firewall.
Number 3 in image is firewall rule with from 0.0.0.0 to 255.255.255.255

In your case if client IP (Number 1 in image) or IP address that was being part of log is already being to firewall rules it your task should work fine. So verify it.

To unblock, you can add firewall rule with IP address range from 0.0.0.0 to 255.255.255.255

I will look into logs and will update you regarding issue.

@arjgupta
Copy link
Member

Hi @dawilliams , This issue has been fixed, and the updated task(1.1.15) will be available in the next couple of days. I am closing this issue, please reopen if you continue to face this issue even after using the updated task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants