Cannot run Azure Function today - was fine yesterday

ChrisU 231 Reputation points
2022-10-21T10:41:04.81+00:00

Hi all!

I have an Azure Function that I am current developing to read data from an IoT hub and save to an Azure SQL DB. I have been working on this pretty much all week and it has been going fine; coding and testing and seeing the data from my sensors populate the database.

However I started it this morning, hit F5 to run the code and see an error in the terminal that I have not seen before:
252961-terminal-screenshot.png

launch.json file (I have never touched this):
252971-launch-json-screenshot.png

For completeness, the below is the host. Json file:
253005-host-json-screenshot.png

So, this was working as of 17:00 last night. I fire it up this morning and the get issue described. Nothing, to my knowledge changed in the dev env between that time and the code did not change. I am using VSC.

I also pinged 172.0.0.1:
252956-ping.png

Any help would be appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,977 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,189 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChrisU 231 Reputation points
    2022-10-21T12:42:22.21+00:00

    Have just come back to this post to update it! Thanks for answering, however the problem was not with my code or environment. I think the problem was with Azure as many other people had the same issue (see here: issues). however, all sorted now and running as expected!


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.