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

Unable to authenticate to Azure SQL Server via service principal #78

Closed
ssulei7 opened this issue Feb 16, 2022 · 4 comments · Fixed by #100
Closed

Unable to authenticate to Azure SQL Server via service principal #78

ssulei7 opened this issue Feb 16, 2022 · 4 comments · Fixed by #100
Labels
enhancement New feature or request idle Inactive for 14 days v2-candidate
Milestone

Comments

@ssulei7
Copy link

ssulei7 commented Feb 16, 2022

Hi,

Not sure if this is the correct issue template to use, but I am currently working with a customer to build out workflows to deploy DACPACs into their Azure SQL instance. We have created a service principal, but we keep bumping into the following error:

Failed to add firewall rule. Unable to detect client IP address.

Currently, our action is configured as follows:

      - name: Azure SQL Deploy
        uses: Azure/[email protected]
        with:
          connection-string: 'Server=${{ env.serverName}};User ID=***;Password=***;Initial Catalog=${{ env.catalog_name }} ;Authentication=ActiveDirectoryServicePrincipal;'
          dacpac-package: MyDacpac.dacpac
          arguments: '/p:IncludeCompositeObjects=true' 

Are service principals currently not supported by this task?

@ssulei7 ssulei7 added the need-to-triage Requires investigation label Feb 16, 2022
@huffmajd-LN
Copy link

huffmajd-LN commented Feb 24, 2022

I'm having this issue as well trying to run sql scripts:
"Error: Failed to add firewall rule. Unable to detect client IP Address. Error: There was an error when attempting to execute the process 'sqlcmd'. This may indicate the process failed to start. Error: spawn sqlcmd ENOENT"
I am using SQL authentication.

image

@dzsquared dzsquared added enhancement New feature or request and removed need-to-triage Requires investigation labels Mar 9, 2022
@dzsquared
Copy link
Collaborator

@huffmajd-LN, this issue is describing an enhancement using service principals. if you're running into an error we'd like to help you out - can you open another item with your info?

@github-actions
Copy link

This issue is idle because it has been open for 14 days with no activity.

@zijchen
Copy link
Contributor

zijchen commented Jun 27, 2022

Support for this is added in v2

@zijchen zijchen closed this as completed Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idle Inactive for 14 days v2-candidate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants