Modification calls with Azure AI Agent Function is causing Security Alerts

Trying this below POC with a function which can extract temperature data and print in Console: https://learn.microsoft.com/en-us/azure/ai-services/agents/how-to/tools/function-calling?tabs=csharp&pivots=code-example
This is very strange. I created multiple AI agent functions to retrieve data, and my code was working smoothly. However, when I created a function to submit data, I started receiving security alerts and malware protection warnings indicating that it was trying to access my project DLL. Can someone check and confirm the issue? I understand that running Visual Studio in admin mode might resolve this, but it shouldn't be necessary. Since I can run the function in normal mode, the function related to modification (which isn't actually modifying anything, as I've hardcoded all the values) should also be able to run.
Below is the screenshot regarding which no security alert occurred.
Below is the code which is throwing security alert. And yes if I keep the property Location, the alert is not coming. Apart from Location, it is throwing Malware alert.
Below is the security threat error message and build error.