azure-functions-host | The host/runtime that powers Azure Functions | Azure library
kandi X-RAY | azure-functions-host Summary
kandi X-RAY | azure-functions-host Summary
|Branch|Status| |---|---| |dev|[Build Status] |release/4.x|[Build Status] |v3.x|[Build Status] |release/3.0|[Build Status] |v2.x|[Build Status] |release/2.0|[Build Status] |v1.x|[Build status] This repo contains libraries that enable a light-weight scripting model for the [Azure WebJobs SDK] You simply provide job function scripts written in various languages (e.g. Javascript/[Node.js] C#, Python, F#, PowerShell, PHP, CMD, BAT, BASH scripts, etc.) along with a simple function.json metadata file that indicates how those functions should be invoked, and the scripting library does the work necessary to plug those scripts into the [Azure WebJobs SDK] runtime. These libraries are the runtime used by [Azure Functions] The runtime builds upon the tried and true [Azure WebJobs SDK] - this library just layers on top to allow you to "script the WebJobs SDK".
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-functions-host
azure-functions-host Key Features
azure-functions-host Examples and Code Snippets
Community Discussions
Trending Discussions on azure-functions-host
QUESTION
I am deploying an Azure Function called "Bridge" to Azure, targeting .NET 6. The project is referencing a class library called "DBLibrary" that I wrote, and that library is targeting .NET Standard 2.1. The Azure Function can be run locally on my PC without runtime errors.
When I publish the Azure Function to Azure, I see in Azure Portal a "Functions runtime error" which says:
Could not load file or assembly 'System.ComponentModel, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
I do not target System.ComponentModel directly, and I don't see a nuget package version 6.0.0 for "System.ComponentModel" available from any nuget feed. Why is the Azure function looking for this version 6.0.0 of System.ComponentModel? If that version does exist, why can't the Azure Function find it?
Here are the relevant parts of the csproj for the "Bridge" Azure Function:
...ANSWER
Answered 2022-Feb-25 at 10:33The .net standard you are using 2.1
but ,Microsoft.Azure.Functions.Extensions
can be support upto .NET Standard 2.0
You should add the below package to your function app and deploy to Azure again.
QUESTION
Using the Azure Devops task with current setup :
...ANSWER
Answered 2022-Mar-21 at 16:40Maybe you will have to use python 3.9 and the latest ubuntu agent in the pipeline
https://github.com/Azure/azure-functions-python-worker/issues/904
QUESTION
I'm new here, sorry if the post is incomplete.
I'm trying to deploy a python script on azure that interacts with blobs. The script works fine in local : i can interact with my storage account, upload & download blobs... But when I deploy my function on azure, it won't run. The logs says no module named azure.storage exists.
Thing is, on my computer i had to pip install this module.
Should i add this module on azure web ? How am I supposed to do such a thing ?
I'm developping on Visual Studio Code using python 3.6.5.
Error listed in the invocations Details :
...ANSWER
Answered 2022-Feb-23 at 12:01Sol 1 : try setting environment variable FUNCTIONS_WORKER_RUNTIME to python
Sol 2: try adding azure.storage to your requirements.txt file
QUESTION
After 2 successfull local upgrades of azure function apps to dotnet 6, both fail with the same error when upgrade PR deployed in Azure.
...ANSWER
Answered 2021-Dec-30 at 09:54Simply going through microsoft source code of Microsoft.Azure.WebJobs.Script.WebHost.DefaultSecretManagerProvider
we can find it's creating a new instance of KeyVaultSecretsRepository
and pass to it the valtUri under the environment name public const string AzureWebJobsSecretStorageKeyVaultUri = "AzureWebJobsSecretStorageKeyVaultUri";
you can add the 'AzureWebJobsSecretStorageKeyVaultUri' configuration key with your Vault URI to your app configuration and that will make it work.
QUESTION
I have a python Azure function that has been running for months. On 7/23 it started failing with the error There is no current event loop in thread.
I'll post the relevant bits of code:
In the init.py I create a JSON event and then have the call: '''
...ANSWER
Answered 2021-Jul-30 at 09:37This a a known bug in version 2.3.0
2.3.1 will be released soon with a fix, meanwhile as a workaround you can use 2.2.1
QUESTION
I upload librosa and audioread library python function to event trigger Azure Function. Once I upload a m4a or ogg file to blob, the event trigger will evoke the Azure function to read the audio file. However, it sometimes work sometimes cannot. Anyone knows why? Please help!
my code is:
...ANSWER
Answered 2021-Dec-03 at 08:44As said by @bmcfee here :
This is not a librosa problem -- if the file won't load, it's because audioread is unable to decode it. It appears to be using the ffmpeg backend, which means (probably) that ffmpeg can't decode it either. That the file itself is corrupt. I suggest putting some debug prints in to track down exactly which file is causing problems.
So, this is an dependency bug.
QUESTION
I'm using Azure function app, durable function for listing the subscriptions and go through each sub to do some process. My code was working fine until a few days ago that it stopped to work by giving this error:
...ANSWER
Answered 2021-Dec-02 at 19:59I was just trying to use SubscriptionClient for the first time and was running into this same issue, so I'm glad it wasn't just me.
I did find that they release a new version of the module on 2021-11-25, (see the release notes here: https://github.com/Azure/azure-sdk-for-python/releases/tag/azure-mgmt-subscription_2.0.0) and it lists a breaking change of "Removed operation group SubscriptionsOperations". The documentation doesn't seem to reflect this, and it's not clear what you're supposed to do instead to list all subscriptions.
I got it working by pinning azure-mgmt-subscription to 1.0.0.
QUESTION
I have developed Azure Function which uses log4net for logging and it is configured via file. Locally it works okay, but when I deploy it on Azure I receive error: System.Private.CoreLib: Could not find file '/azure-functions-host/log4net.config'
I am using Linux App Service and I'm unable to find folder 'azure-functions-host' on the file system.
...ANSWER
Answered 2021-Dec-02 at 14:02From the function app, the log4net is to be initialized using the repository
object as shown in this example. And also, if linux
is used for hosting the App Service, then the path for the log file to be set as "/home/site/wwwroot/Log4Net/function.log"
QUESTION
I have an azure function ServiceBus on which I would like to customise its properties.
I have 2 topics, I send a message on topic 1(on which I do some processing) and send its output to the second topic. Due to the fact that this messages comes from different resources, I would like to have application properties that makes clear from where this message is coming.
so I have my code as follow:
...ANSWER
Answered 2021-Oct-25 at 09:49I have to agree that the documentation is contradictory.
So, let's ignore the docs 😅 and go straight to the source: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/servicebus/azure-servicebus/azure/servicebus/_common/message.py#L63
This tells us that the correct keyword argument is application_properties
.
Reminder: this answer is pointing out the current (at the time of writing) code in the main
branch. This appears to be for version 7+ of the azure-servicebus
package.
QUESTION
I want to overwrite a blob myfile.txt
on Azure Blob Storage. I use this code, where blob_url
contains the SAS token. The blob has access level "private".
However, I always get this error:
...ANSWER
Answered 2021-Oct-05 at 15:30This is because you only have read
permission in your SAS token (sp=r
). In order to update the blob, you will also need write
permission in your token.
Please create a SAS token with both read
and write
permission and you should be able to update the blob. Your SAS URL should look something like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-functions-host
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page