-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Labels
enhancementNew feature or requestNew feature or requestidleInactive for 14 daysInactive for 14 daysv2-candidate
Milestone
Description
Hi gang,
I'm trying to use Azure/sql-action in the "deploy" phase of my workflow when deploying an ASP.NET Core app to Azure.
My Azure SQL server definitely has "Allow Azure services and resources to access this server" set to "Yes", but when my workflow runs I get the following error:
Error: Failed to add firewall rule. Unable to detect client IP Address. Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed for user '(redacted)'..
My code looks like this:
- name: Apply EF migration script
uses: Azure/sql-action@v1
with:
server-name: (my server name).database.windows.net
connection-string: ${{ secrets.CONNECTIONSTRING_PUCKA }}
sql-file: ./migrate.sql
In the server-name attribute I've tried it with and without the "tcp:" prefix (which is in the connection string) but I get the same error both ways.
Your README says if I have "allow azure services" set to "yes" then I should be fine. Am I doing something wrong?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestidleInactive for 14 daysInactive for 14 daysv2-candidate