Azure SQL Bindings for Functions - Python - ConnectionString Property

Krishna Prasanth 1 Reputation point
2022-12-10T07:50:02.13+00:00

I am try to set up an HTTP trigger based Azure Function with SQL input binding and HTTP output binding.

I am getting the following error : Executed 'Functions.HttpTrigger1' (Failed, Id=8698d277-ec47-40c8-b6ec-162077f58d41, Duration=6ms)
[2022-12-10T07:33:35.786Z] System.Private.CoreLib: Exception while executing function: Functions.HttpTrigger1. Microsoft.Data.SqlClient: The ConnectionString property has not been initialized.

Here is my script file :
269222-capture-1.png

Here is my local.settings.json
269241-capture2.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-12-14T05:42:06.87+00:00

    @Krishna Prasanth Thanks for reaching out. Can you please initialize the connectionStringSetting parameter as documented here rather than ConnectionStringSetting. Please also verify that you are passing the right connection string to your app settings variable akrispstring.

    0 comments No comments

Your answer

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