-
Notifications
You must be signed in to change notification settings - Fork 58
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
Deploy to Azure SQL database via private endpoint #189
Comments
This issue is idle because it has been open for 14 days with no activity. |
The firewall check is a check for connectivity to the server you provided - if the action tries the conection and succeeds, it doesn't attempt to add a firewall rule. For deeper info, enabling debug logging may help: https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging |
This issue is idle because it has been open for 14 days with no activity. |
Having the same issue here attempting to publish a dacpac package to SQL.
I've SSH 'ed to the VM and nslookup properly resolves SQL server name to its private IP address.
Here's the output of the failed deployment step:
If I change the connection string to use another method of authentication like SQL Server Admin username/password it runs well so it's not connectivity issue, but this defeats the purpose of using an MSI for authentication.
From my perspective, the firewall rule makes no sense to be created if server 's name resolves to a private IP address range. I would honesty believe the action to create the firewall rule should be a parameter and optional. |
Thanks for posting details @ruimatosVFX - looking into ways to reproduce this error. You would have a block like this at the top of your workflow: permissions:
id-token: write
contents: read |
@dzsquared , yes, I do have those settings defined on my YAML. |
@dzsquared, adding this so it can help others as well. So I have two Self-Hosted agents running in Azure and was getting random successes running my pipeline and saw failures were on the same VM. Checking differences between them, I realized the one VM where things were was working did not have an Identity assigned as opposed to the other, where it had both System and User Assigned identities. On my YAML, I was passing the Object ID of another Identity, the one with Federated credentials for my Github repo.
So the way I see it, these are my options to overcome this issue:
Hope this helps someone else with the same problem. Happy Holidays! |
This issue is idle because it has been open for 14 days with no activity. |
I had a similar setup. Removing the Identity solved the issue. Thank you! |
This issue is idle because it has been open for 14 days with no activity. |
We have an issue of deploying from a self-host-runner to a Azure SQL database through private endpoint. "public access" is disabled in database.
The action gives following error :
Error: Unable to create or modify firewall rules when public network interface for the server is disabled. To manage server or database level firewall rules, please enable the public network interface.
Error: {"statusCode":400,"message":"Unable to create or modify firewall rules when public network interface for the server is disabled. To manage server or database level firewall rules, please enable the public network interface.","code":"DenyPublicEndpointEnabled"}
code snip is:
is there a way to bypass firewall rule check when connection is through private endpoint?
The text was updated successfully, but these errors were encountered: