Relative Content

Tag Archive for azure-functions

Cannot Parse JSON in Azure Function

I work for a MSP and am currently working on creating an automation process for offboarding employees for all of our clients. Currently, I am using Pipedream to receive HTTP requests and then execute code on what is received before sending it to Azure Functions. I have to use PowerShell to convert mailboxes to shared mailboxes as this is not supported by the Graph API and my reason for needing Azure Functions. The issue I am running into is that the Azure Function cannot parse the JSON that I am sending it from Pipedream. Therefore, no mailbox is ever converted to shared. I have created multiple different Python scripts and verified that it is sending what I want. The function key is included in the URL so that should not be causing any issues. I have also tested the mailbox conversion portion of the Azure Function and know that it works. I just need it to be able to actually use the JSON I am sending it. Any advice on what I may need to add to the Azure Function in dependencies or in the function itself would be greatly appreciated. I have pasted the code snippets below. The Azure Function URL and the other things have been replaced by *** for obvious security reasons. The JSON body being sent is:

Azure Function Project Template Issue

When creating an Azure Function App in .Net 8 Isolated in VS2022 why does the project template always create a Function with IActionResult instead of HttpResponseData?