MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

Synapse Integration Runtime Status Rest API not working! #119089

Open SyedUmairHasan opened 9 months ago

SyedUmairHasan commented 9 months ago

Hello, I'm working on setting up a notification system in Azure Synapse Analytics to alert me when my self-hosted Integration Runtime (IR) is not in a 'running' state. My plan is to create a pipeline that retrieves the IR status through a REST API and triggers an Azure Logic App to send an email if the IR is offline. I'm referring to the Microsoft documentation for the Integration Runtime Status - Get REST API, but I'm encountering issues. The documentation suggests a POST request, which seems incorrect as I believe it should be a GET request since we are retrieving information. Here is the documentation link I am following: Get Integration Runtime Status - REST API Documentation In my Synapse pipeline, I have set up a Web activity configured to use the system-assigned managed identity for authentication. I encounter an authorization error that suggests the client does not have the required permissions to perform the action or the scope is invalid. The error message indicates a failure in the 'getStatus/read' action on the Integration Runtime.

P.S: I have assigned Synapse Monitoring Operator role to System Assigned Managed Identity but still the API not working!

SyedUmairHasan commented 9 months ago

I have also reported this in QA forum: https://learn.microsoft.com/en-us/answers/questions/1498098/how-to-get-notified-when-synapse-integration-runti?page=1&orderby=helpful&comment=answer-1423275#newest-answer-comment

AjayBathini-MSFT commented 9 months ago

@SyedUmairHasan Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

SyedUmairHasan commented 8 months ago

@AjayBathini-MSFT @markjulmar following up on this issue, is it resolved? Thanks