azure-functions

Azure function didn't realize the trigger on deployment but that work in local

Azure function didn't realize the trigger on deployment but that work in local Question: My azure function works correctly locally but when I deploy it on azure. It will return this message: Deployment successful. deployer = ms-azuretools-vscode deploymentPath = Functions App ZipDeploy. Extract zip. Remote build. Syncing triggers… Querying triggers… No HTTP triggers found. Uploading …

Total answers: 1

Azure Function App HTTP Trigger Functions don't show when deployed

Azure Function App HTTP Trigger Functions don't show when deployed Question: I am using Python 3.9 (Python programming model v2) and I created an HTTP Function based on the official example. When I deploy using visual studio code, I get this output message and I can’t figure out how to call the function. Everything works …

Total answers: 2

Azure Functions Python App – enable IdentityModelEventSource.ShowPII Property

Azure Functions Python App – enable IdentityModelEventSource.ShowPII Property Question: I’m having some issues with the AAD authentication of my Python API which is hosted in Azure Functions. The official documentation suggests to "enable PII to see the values removed from the message" in order to be able to check the Issuer & ValidIssuer. The documentation …

Total answers: 1

EasyAuth on Azure Function App errors out custom oidc provider

EasyAuth on Azure Function App errors out custom oidc provider Question: We have a Python Linux azure function that is connected to a custom oidc provider and azure ad to provide authentication to the HTTP triggered functions using Microsofts easyauth. After the initial setup, the azure function was working and has been working for the …

Total answers: 5

Azure function not running on M1

Azure function not running on M1 Question: Running import logging import azure.functions as func def main(req: func.HttpRequest) -> func.HttpResponse: logging.info(‘Python HTTP trigger function processed a request.’) name = req.params.get(‘name’) if not name: try: req_body = req.get_json() except ValueError: pass else: name = req_body.get(‘name’) if name: return func.HttpResponse(f"Hello, {name}. This HTTP triggered function executed successfully.") else: …

Total answers: 2

Cannot (always) fetch an attribute in an object even though it exists

Cannot (always) fetch an attribute in an object even though it exists Question: I’m currently developing locally an Azure function that communicates with Microsoft Sentinel, in order to fetch the alert rules from it, and more specifically their respective querys : credentials = AzureCliCredential() alert_rules_operations = SecurityInsights(credentials, SUBSCRIPTION_ID).alert_rules list_alert_rules = alert_rules_operations.list(resource_group_name=os.getenv(‘RESOURCE_GROUP_NAME’), workspace_name=os.getenv(‘WORKSPACE_NAME’)) The issue is …

Total answers: 2

Sql bind in Azure Function

Sql bind in Azure Function Question: I’m trying to use Sql output binding functionalities for Azure function. Below is my current configuration. I’m using Visual Studio Code as IDE Found Python version 3.9.0 (py). Core Tools Version: 4.0.4736 Commit hash: N/A (64-bit) Function Runtime Version: 4.8.1.18957 Extension bundle version: "[4.*, 5.0.0)" functions.json : { "scriptFile": …

Total answers: 2

Azure Durable function : Runtime Exception with non-None return value

Azure Durable function : Runtime Exception with non-None return value Question: I have been facing an issue with Azure Durable functions, which when executed from my laptop machine runs fine. When i deploy the code , i am being popped up with an runtime exception . Here is the main orchestrator flow #ProcessBlob and generate …

Total answers: 2

How to Create CSV File download with Azure Function in Python

How to Create CSV File download with Azure Function in Python Question: I am trying to write an Azure Function that fetches data from a WebAPI, and returns a CSV file as a download to the user who enters the Function URL. The CSV file is already successfully created and downloaded. This is solved with …

Total answers: 1