Azure Stream Analytics with Reference Input from SQL Database is giving error

Prashanta Shrestha 71 Reputation points
2022-03-24T22:47:06.627+00:00

I am trying to use Azure SQL Database as Reference Input for an Azure Streaming Analytics job.
Reference Input was added like so,

186722-screen-shot-2022-03-24-at-63722-pm.png

Connection to Db was tested successfully; sample input from database was also received successfully; and the test run of analytics query also completed successfully.

186751-screen-shot-2022-03-24-at-63301-pm.png

But when the Analytics Job is started, I get this error:
"Encountered error trying to discover new reference data snapshot. Error: Sql Error occurred while trying to take Sql full snapshot"

186673-screen-shot-2022-03-24-at-64254-pm.png

I am using 3 SUs for this job.

Azure SQL Database
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
{count} votes

Answer accepted by question author
  1. PRADEEPCHEEKATLA 91,496 Reputation points Moderator
    2022-04-04T05:09:08.607+00:00

    Hello @Prashanta Shrestha ,

    Thanks for the question and using MS Q&A platform.

    For Microsoft's Azure Active Directory to verify if the Stream Analytics job has access to the SQL Database, we need to give Azure Active Directory permission to communicate with the database. To do this, go to the "Firewalls and virtual network"/”Firewalls” page in Azure portal again, and enable "Allow Azure services and resources to access this server/workspace."

    189611-image.png

    For more details, refer to Use managed identities to access Azure SQL Database or Azure Synapse Analytics from an Azure Stream Analytics job (Preview).

    One more question - Is the IP used by ASA static?

    Currently there are no public IP addresses for Stream Analytics.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.