Skip to content

Issue with Creation of SSAS Proxy

0

Experts,

Have followed the below link for 'Creating the SSAS Proxy' to utilize it while creating a SQL job to trigger the Tabular model processing. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.Options.SSAS.html

Setup a Domain User in IAM : <domain>\ssas_agent_job

Created Server level domain user login : CREATE LOGIN [<domain>\ssas_agent_job] FROM WINDOWS

Granted necessary privileges to the domain user [<domain>\ssas_agent_job]

Created the credential for the proxy: CREATE CREDENTIAL [SSAS_Credential] WITH IDENTITY = N'<domain>\ssas_agent_job', SECRET = ‘*********'

Created the proxy : EXEC msdb.dbo.sp_add_proxy @proxy_name=N'SSAS_Proxy',@credential_name=N'SSAS_Credential',@description=N'deployment'

The Credential Name has been setup in SQL Server under Security -> Credentials

Granted access to the proxy to other users: EXEC msdb.dbo.sp_grant_login_to_proxy @proxy_name=N'SSAS_Proxy',@login_name=N'<domain>\ssas_agent_job'

Gave the SSAS subsystem access to the proxy: EXEC msdb.dbo.rds_sqlagent_proxy @task_type='GRANT_SUBSYSTEM_ACCESS',@proxy_name='SSAS_Proxy',@proxy_subsystem='SSAS'

Can see the access to SubSystem has been granted through the SP : EXEC msdb.dbo.sp_enum_proxy_for_subsystem

After all this when trying to create a SQL Job through Admin, cant see the above Proxy account in 'Run As' dialog box for 'SQL Server Analysis Service Command'.

Alternatively using the script shared in above AWS page, its creating a new job by the give name 'Process Tabular Model'

USE [msdb] GO DECLARE @jobId BINARY(16) EXEC msdb.dbo.sp_add_job @job_name=N'Process Tabular Model', @enabled=1, @notify_level_eventlog=0, @notify_level_email=0, @notify_level_netsend=0, @notify_level_page=0, @delete_level=0, @category_name=N'[Uncategorized (Local)]', @job_id = @jobId OUTPUT GO

Adding the job to the Job server EXEC msdb.dbo.sp_add_jobserver @job_name=N'Process Tabular Model', @server_name = N'(local)' GO BUT HERE IS THE PROBLEM The third script to add Job step using @subsystem=N'ANALYSISCOMMAND' and @proxy_name='SSAS_Proxy' giving error

EXEC msdb.dbo.sp_add_jobstep @job_name=N'Process Tabular Model', @step_name=N'Process_SSAS_Object', @step_id=1, @cmdexec_success_code=0, @on_success_action=1, @on_success_step_id=0, @on_fail_action=2, @on_fail_step_id=0, @retry_attempts=0, @retry_interval=0, @os_run_priority=0, @subsystem=N'ANALYSISCOMMAND', @command=N'<Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Object>
<DatabaseID><database name></DatabaseID>
</Object>
<Type>ProcessFull</Type>
<WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>
</Parallel>
</Batch>', @server=N'localhost:2383', @database_name=N'master', @flags=0, @proxy_name='SSAS_Proxy' GO

ERROR:

Proxy(1) is not allowed for subsystem 'ANALYSISCOMMAND' and user 'admin'. Grant permission by calling sp_agent_proxy_to_subsystem or sp_grant_login_to_proxy.

Seeing the error, connected to SQL Database engine through the domain user 'ssas_agent_job' and repeated the above steps(first deleted the above created job by calling SP sp_delete_job), the error changed.

Proxy(1) is not allowed for subsystem 'ANALYSISCOMMAND' and user 'ssas_agent_job'. Grant permission by calling sp_agent_proxy_to_subsystem or sp_grant_login_to_proxy. and when calling the either of above two SP's getting error that SysAdmin cant be assigned to Admin/ssas_agent_job.

Could you please look and help me to identify the problem and what/where mistake I am doing.

Thanks Prashant Pandey

2 Answers
4

It looks like permission-related, please ensure that the proxy account (SSAS_Proxy) has been explicitly granted access to the ANALYSISCOMMAND subsystem using the correct stored procedure:

EXEC msdb.dbo.sp_agent_proxy_to_subsystem @proxy_name='SSAS_Proxy', @proxy_subsystem='ANALYSISCOMMAND'
EXPERT

answered a year ago

0

I had this the documentation is not clear that you need to use a different AD user e.g. the one you're running SSMS as not the one created for the proxy

Use the following SQL statement to grant access to the proxy to other users.
USE [msdb]
GO
EXEC msdb.dbo.sp_grant_login_to_proxy @proxy_name=N'SSAS_Proxy',@login_name=N'mydomain\user_name'
GO

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.