SSIS Proxy and Credential Manager

IE 11 Reputation points
2021-11-03T07:50:24.16+00:00

I’m using a Proxy for SSIS executions in SQL Server Agent with a stored credential (domain user, “Mydomain\SSISExecutor”). The proxy works fine in SQL Server Agent, when authenticating to SQL servers, fileshares etc.

I’ve added an Azure File Share credential to the “Mydomain\SSISExecutor”s credential manager using cmdkey, but jobsteps configured to use the SSIS Proxy running packages that tries to access the Azure File Share fails with “The username or password is incorrect”.

Adding the same credential, using cmdkey, to the domain user that is running the SQL Server Agent service, “Mydomain\SQLSrvAgentRunner” – and then executing the job step with SQL Server Agent – the package succeeds in accessing the Azure File Share.

It seems like the Proxy is not reading the credential manager when executing the job step, but the SQL Server Agent does.

How can we set this up so that the Proxy can use the stored credentials in the Credential Manager when executing SQL Agent Job.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,456 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 33,126 Reputation points
    2021-11-04T06:47:56.817+00:00

    Hi @IE ,

    SQL Server Agent uses Proxies to define the security context for job steps. Basically, a proxy is an object that provides SQL Server Agent access to stored credentials for a Windows user. When running a job step that is configured to use a proxy, SQL Server Agent impersonates the credentials defined in the proxy, and then runs the job step using that security context.

    Check create-a-sql-server-agent-proxy about creating SQL Server Agent Proxy with credential.

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.