Connection Test Failed when trying to add an Azure function as an output sink to Stream Analytics Job - azure

I always get a Connection Test Failed when trying to add an Azure function as an output sink to Stream Analytics Job. The Azure function works fine by itself and I can also call it using Postman. As soon as I add the Azure function, I get the Connection Test failed error message.
Azure function returned an HTTP error. An error occurred while sending the request.

I got the same issue.
The solution that works for me was to set up:
Minimum TLS version: 1.0 (by default it was 1.2)
for my function app.

Related

Invoking Web Activity failed with HttpStatusCode - '404 : NotFound' + Azure Synapse Analytics

I am trying to get the current pipeline runs using the web activity. I followed the below article, however, after having all the permissions required, it give the below error.
Invoking Web Activity failed with HttpStatusCode - '404 : NotFound',
message - 'The requested resource does not exist on the server. Please
verify the request server and retry
link followed
https://www.moderndata.ai/2021/12/how-to-prevent-concurrent-pipeline-execution-in-azure-data-factory-or-azure-synapse-analytics-design-1/
Any idea why I am facing the above error.
enter image description here
The issue occurs when you run the pipeline using Debug option from the top tool bar. It would work fine if you will run it using Trigger Now option.
When you try to query using the Web API, it only query the non-debug pipeline runs, means only triggered runs. Therefore, run it using trigger.

Azure Data Factory throwing "Invoking Azure function failed with HttpStatusCode - InternalServerError."

I am getting this error while trying to invoke azure function through the data factory. Snap of the error is attached.
I then again tried with the same parameters, and the next instance of execution just worked fine.
I just wanted to know if this problem is from azure server side or due to from my code.
Any help would be appreciated.
Call to provided Azure function 'OnCopySuccess' failed with
status-'InternalServerError' and message - 'Invoking Azure function
failed with HttpStatusCode - InternalServerError.
Has nothing to do with Azure DataFactory, it fails because of the Azure Functions, HAs from the error you will not be able to detect any issues so, you may examine the output of your azure function app using logs in kudu, in addition to the monitor of the azure function.
In addition, kudu log files are more timely than the Azure function's monitor.
Simply navigate to this website's address.
Click on the URL https://yourfunctionappname.scm.azurewebsites.net/DebugConsole
Go To: LogFiles\Application\Functions\Function\yourtriggername
The log files can then be found. The log file in Kudu is real-time, whereas the monitor takes a while to show (typically 5 minutes).
HTTP Function is supposed to actually return an HTTP result, See the Original Post - So you might check your Azure Function Code.

Azure function activity in adf v2 not connecting to function

I am using an azure function activity in adf v2 .But whever I am tryin to connect it always giving me error.
Error details
Error code3608
Troubleshooting guide
Failure typeUser configuration issue
DetailsCall to provided Azure function 'ReadMsgQueue' failed with status-'NotFound' and message - 'Invoking Azure function failed with HttpStatusCode - NotFound.'.
Source
Pipeline
PL_CUSTOM_COMP
As per the ADF troubleshooting guide, you may receive the error message when you passed incorrect Azure function details in the activity definition:
To fix this issue, make sure you had provided correct Azure function details in the activity.

azure function activity in pipeline

Call to provided Azure function 'HttpTrigger1' failed with status-'InternalServerError' and message - 'Invoking Azure function failed with HttpStatusCode - InternalServerError.'.
Call to provided Azure function 'HttpTrigger1' failed with
status-'InternalServerError' and message - 'Invoking Azure function
failed with HttpStatusCode - InternalServerError.'.
You can get nothing from the server error.
The right way is to go to check the log files of azure function.
1, go to the kudu:
https://yourfunctionappname.scm.azurewebsites.net/DebugConsole
Click to folder\home\LogFiles\Application\Functions\function\yourtriggername
Then you will find the log files:
You can find the details of the error in it.
In short, the internal problems of the function app cause server problems. If you want to know exactly where the problem occurred, you need to check the function log.

Azure Blob Source Error: The remote server returned an error: (400) Bad Request

I have created Data Flow Task in SSIS and configured Blob storage container.My request to process from Azure Blob to SQL server.I am getting "The remote server returned an error: (400) Bad Request" exception while executing SSIS.
I have verified the connectivity and access in Azure.
execution error
No debug error
#Meena
You need to add two Key to windows registry
To use TLS 1.2, add a REG_DWORD value named SchUseStrongCrypto with data 1 under the following two registry keys.
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft.NETFramework\v4.0.30319
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework\v4.0.30319
This works.
Just from your second screenshot, you get the error in progress but the data flow works well and the data have been load to SQL Server successfully, am I right?
I tried the same SSIS package(Load data from Blob to SQL Server) but has no error. Please try delete and reset the Azure Blob Source.
Test the connection when we create the source:
Azure Blob Source editor:
Progress:
Just from your progress error, we can not find which cause the 400 bed request error. But We can try re-create the source again to check if it will happen again. And most of all, the data flow task works well and all the data loaded to SQL Server correctly.

Resources