azure-functions

How can I call an Azure function from the client application and add one or more function parameters?

為{幸葍}努か 提交于 2020-12-15 06:26:03
问题 I want to call this Azure function from the client application but I don't know how to do the http request. Azure function: [FunctionName("ChangeDisplayname")] public static async Task<dynamic> MakeApiCall( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequestMessage req, ILogger log) { var context = await FunctionContext<dynamic>.Create(req); var args = context.FunctionArgument; var desireddisplayname = args["NewDisplayname"]; var request = new

How can I call an Azure function from the client application and add one or more function parameters?

こ雲淡風輕ζ 提交于 2020-12-15 06:25:06
问题 I want to call this Azure function from the client application but I don't know how to do the http request. Azure function: [FunctionName("ChangeDisplayname")] public static async Task<dynamic> MakeApiCall( [HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequestMessage req, ILogger log) { var context = await FunctionContext<dynamic>.Create(req); var args = context.FunctionArgument; var desireddisplayname = args["NewDisplayname"]; var request = new

Azure Function successfully published but missing from Azure Portal

ⅰ亾dé卋堺 提交于 2020-12-15 06:10:55
问题 My Function app is not showing up in the Portal though it publishes successfully from local machine. Example: Success!: Failure: Tried: Visiting https:myapp.azurewebsites.net Visiting https://myapp.scm.azurewebsites.net/api/deployments Last deployment looks good: { "id": "<redacted>", "status": 4, "status_text": "", "author_email": "N/A", "author": "<redacted>", "deployer": "Push-Deployer", "message": "Created via a push deployment", "progress": "", "received_time": "2020-10-23T20:38:47

Azure Function successfully published but missing from Azure Portal

断了今生、忘了曾经 提交于 2020-12-15 06:09:25
问题 My Function app is not showing up in the Portal though it publishes successfully from local machine. Example: Success!: Failure: Tried: Visiting https:myapp.azurewebsites.net Visiting https://myapp.scm.azurewebsites.net/api/deployments Last deployment looks good: { "id": "<redacted>", "status": 4, "status_text": "", "author_email": "N/A", "author": "<redacted>", "deployer": "Push-Deployer", "message": "Created via a push deployment", "progress": "", "received_time": "2020-10-23T20:38:47

Publish Azure Function as NuGet package (or load function from external assembly)

老子叫甜甜 提交于 2020-12-15 05:44:05
问题 I'm looking into publishing a reusable Azure Function as a NuGet package, in order to easily consume it in other projects. This way I can reference the NuGet package in other projects. This way I could dynamically compose a set of Azure Functions to be deployed to an Azure Function service. Is this currently possible? Or, can functions e.g. be defined in an external assembly, and be "picked up" by the Azure Function host? I know this is possible with Azure WebJobs, but I haven't found a way

How to run Timer-triggered Azure Functions locally on Mac?

夙愿已清 提交于 2020-12-15 04:30:17
问题 I want to execute a timer-triggered function in my local development environment (Node, OS X) but it seems to require some changes to the HTTP-triggered functions setup I have. Here's the code related to the timer function so far: /cron-job/function.json defines a timer input binding scheduled to run every minute. It also has a reference to the code entry point (compiled from Typescript): { "bindings": [ { "type": "timerTrigger", "direction": "in", "name": "timer", "schedule": "0 */1 * * * *"

Does Azure Functions throw 503 errors while app settings are being updated?

梦想与她 提交于 2020-12-13 11:30:22
问题 Whenever I update my application settings for a Function app and hit the Save button on Azure Portal, I observe that this action temporarily stops my function app while the changes are being persisted to the active worker(s). I need to understand if this is indeed the case or if I'm making a false assumption. What happens exactly when app settings are updated in the portal? 503 is thrown while active worker(s) are being updated OR Another worker is specialized with the new host file. The old

Not able to publish azure python function app with external dependencies (not in index)

隐身守侯 提交于 2020-12-13 04:31:53
问题 I have an simple python module AdditionalLibrary, I do not want to publish it nowhere public. I have also an azure python serverless function app ExamplePythonServerlessFunction I want to publish on azure. I followed official documentation: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-python https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python and an out-dated page https://prmadi.com/install-python-modules-on-azure-app

Not able to publish azure python function app with external dependencies (not in index)

主宰稳场 提交于 2020-12-13 04:31:29
问题 I have an simple python module AdditionalLibrary, I do not want to publish it nowhere public. I have also an azure python serverless function app ExamplePythonServerlessFunction I want to publish on azure. I followed official documentation: https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-first-function-python https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python and an out-dated page https://prmadi.com/install-python-modules-on-azure-app

Retrieving Keyvault Secret Integrated in a httptrigger/queuetrigger -Python

强颜欢笑 提交于 2020-12-13 03:45:13
问题 I have successfully integrated a secret in a httptrigger. I need to retrieve and parse the secret in a python code. The following piece of code returns the vault id and not the secret. How do I get it to output a secret values? Can the same be done for a queuetrigger? Httptrigger import logging import os import azure.functions as func def main(req: func.HttpRequest) -> func.HttpResponse: logging.info('Python HTTP trigger function processed a request.') test = os.environ["testkeyvault"] return