Function app stopped working complaining of connection when nothing has changed

Philip Yoxall 0 Reputation points
2025-01-30T13:51:46.0966667+00:00

Function app that was working ok for many months has suddenly stopped working due to :

"format of the initialization string does not conform to specification starting at index 0." This function uses a shared SQL Azure db connection string which other functions use without issue. So this is just this function that has stopped working. Any help appreciated

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

1 answer

Sort by: Most helpful
  1. Khadeer Ali 4,235 Reputation points Microsoft External Staff
    2025-02-04T16:22:04.5966667+00:00

    @Philip Yoxall ,

    I’m glad to hear that you were able to resolve your issue, and thank you for sharing your solution! It’s great to see your contribution, as it helps others in the community who may face a similar issue.Since the Microsoft Q&A community policy states, "The question author cannot accept their own answer. They can only accept answers by others" I’m reposting your solution here so you can mark it as accepted if it resolves your query:

    Reposted Solution:

    The resolution was modifying TrustServerCertificate=True to the connection string. The function app was previously working without this, but something must have changed on the server or client side that now requires this explicit setting.

    If you have any further questions, feel free to reach out.

    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.