azure-webjobs-sdk | Azure WebJobs SDK is a framework that simplifies the task | Azure library

 by   Azure C# Version: appinsights-v3.0.36 License: MIT

kandi X-RAY | azure-webjobs-sdk Summary

kandi X-RAY | azure-webjobs-sdk Summary

azure-webjobs-sdk is a C# library typically used in Cloud, Azure applications. azure-webjobs-sdk has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

azure webjobs sdk ===. |branch|status| |---|:---:| |master|[build status] |dev|[build status] |v2.x|[build status] the azure webjobs sdk is a framework that simplifies the task of writing background processing code that runs in azure. the azure webjobs sdk includes a declarative binding and trigger system that works with azure storage blobs, queues and tables as well as service bus. the binding system makes it incredibly easy to write code that reads or writes azure storage objects. the trigger system automatically invokes a function in your code whenever any new data is received in a queue or blob. in addition to the built in triggers/bindings, the webjobs sdk is fully extensible, allowing new types of triggers/bindings to be created and plugged into the framework in a first class way. see [azure webjobs sdk extensions] for details. many useful
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              azure-webjobs-sdk has a medium active ecosystem.
              It has 707 star(s) with 357 fork(s). There are 92 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 615 open issues and 1095 have been closed. On average issues are closed in 353 days. There are 16 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of azure-webjobs-sdk is appinsights-v3.0.36

            kandi-Quality Quality

              azure-webjobs-sdk has 0 bugs and 0 code smells.

            kandi-Security Security

              azure-webjobs-sdk has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              azure-webjobs-sdk code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              azure-webjobs-sdk is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              azure-webjobs-sdk releases are available to install and integrate.
              azure-webjobs-sdk saves you 39 person hours of effort in developing the same functionality from scratch.
              It has 105 lines of code, 0 functions and 1125 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-webjobs-sdk
            Get all kandi verified functions for this library.

            azure-webjobs-sdk Key Features

            No Key Features are available at this moment for azure-webjobs-sdk.

            azure-webjobs-sdk Examples and Code Snippets

            No Code Snippets are available at this moment for azure-webjobs-sdk.

            Community Discussions

            QUESTION

            "Method overloads are not supported. There are multiple methods with the name." when running Azure Functions in Docker
            Asked 2022-Mar-21 at 14:18

            I execute a very simple Function App to Docker with this Dockerfile

            ...

            ANSWER

            Answered 2022-Mar-21 at 14:18

            I found your question as I had the same issue. It may have something to do with this:

            https://github.com/Azure/azure-functions-host/issues/8244

            Based on the info within the link I changed my dockerfile to use this image for azure functions:

            Source https://stackoverflow.com/questions/71537800

            QUESTION

            Azure function: AttributeError: 'SubscriptionClient' object has no attribute 'subscriptions'
            Asked 2021-Dec-02 at 19:59

            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:59

            I 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.

            Source https://stackoverflow.com/questions/70197401

            QUESTION

            Azure WebJobs SDK TimerTrigger Functions not running
            Asked 2021-Oct-24 at 09:34

            I am trying to Create an Azure WebJob that runs a function every x seconds. I am following the tutorials on the Microsoft website and this example of how to use TimerTrigger with WebJobs on Github. However when I run locally my methods in Functions.cs do not seem to be running(no logging and break points aren't hit).

            Program.cs:

            ...

            ANSWER

            Answered 2021-Oct-24 at 09:34

            Finally, I figured out why our timed trigger wasn't firing in our webjob. After installing the following nuget packages, I was able to get it to work using your function.cs code in my .net framework 4.7.1 .

            So To make our webjob with timer trigger work, we'll need to use 2.X or 3.X versions with the following packages:

            Microsoft.Azure.WebJobs.Extensions -version 3.0.6

            Microsoft.Azure.WebJobs.Extensions.Storage -version 3.0.1

            Microsoft.Extensions.Logging -version 2.1.0

            Microsoft.Extensions.Logging.Console -version 2.1.0

            For reference check all the packages which i used in my environment :

            Source https://stackoverflow.com/questions/69624239

            QUESTION

            Deployed Azure Function is missing Entity Framework .edmx file - FileNotFoundException
            Asked 2021-Oct-21 at 00:47

            I have a v3 Azure Function that runs fine locally, but after it's deployed I see the following exception related to a missing Entity Framework file:

            2021-10-18T23:37:07.588 [Error] Executed 'MyFunction' (Failed, Duration=1807ms)
            Autofac.Core.DependencyResolutionException : An exception was thrown while activating
            Autofac.Core.DependencyResolutionException : An exception was thrown while invoking the constructor 'Void .ctor()' on type 'Repository'.
            System.IO.FileNotFoundException : Could not find file 'D:\home\site\wwwroot\bin\DAOEntities.edmx'.

            at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
            at System.IO.FileStream.CreateFileOpenHandle(FileMode mode,FileShare share,FileOptions options)
            at System.IO.FileStream..ctor(String path,FileMode mode,FileAccess access,FileShare share,Int32 bufferSize,FileOptions options)
            at System.IO.FileStream..ctor(String path,FileMode mode,FileAccess access,FileShare share,Int32 bufferSize,Boolean useAsync)
            at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
            at System.Xml.XmlWriter.Create(String outputFileName,XmlWriterSettings settings)
            at System.Data.Entity.Infrastructure.DefaultDbModelStore.Save(Type contextType,DbModel model)
            at System.Data.Entity.Internal.LazyInternalContext.CreateModel(LazyInternalContext internalContext)
            at System.Data.Entity.Internal.RetryLazy2.GetValue(TInput input) at System.Data.Entity.Internal.LazyInternalContext.InitializeContext() at System.Data.Entity.Internal.InternalContext.Initialize() at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType) at System.Data.Entity.Internal.Linq.InternalSet1.Initialize()
            at System.Data.Entity.Internal.Linq.InternalSet1.AsNoTracking() at System.Data.Entity.Infrastructure.DbQuery1.AsNoTracking()
            at lambda_method(Closure ,Object[] )
            at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
            End of inner exception
            at Autofac.Core.Activators.Reflection.ConstructorParameterBinding.Instantiate()
            at Autofac.Core.Activators.Reflection.ReflectionActivator.ActivateInstance(IComponentContext context,IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.CreateInstance(IEnumerable1 parameters)
            End of inner exception
            at Autofac.Core.Resolving.InstanceLookup.CreateInstance(IEnumerable1 parameters) at Autofac.Core.Resolving.InstanceLookup.Execute() at Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope,ResolveRequest request) at Autofac.Core.Resolving.ResolveOperation.Execute(ResolveRequest request) at Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(ResolveRequest request) at Autofac.ResolutionExtensions.TryResolveService(IComponentContext context,Service service,IEnumerable1 parameters,Object& instance)
            at Autofac.ResolutionExtensions.ResolveService(IComponentContext context,Service service,IEnumerable1 parameters) at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context,IEnumerable1 parameters)
            at Autofac.ResolutionExtensions.Resolve[TService](IComponentContext context)
            at Autofac.Extensions.DependencyInjection.AzureFunctions.ScopedJobActivator.CreateInstance[T](ILifetimeScope scope)
            at Autofac.Extensions.DependencyInjection.AzureFunctions.ScopedJobActivator.CreateInstance[T](IFunctionInstanceEx functionInstance)
            at Microsoft.Azure.WebJobs.Host.Executors.ActivatorInstanceFactory1.<>c__DisplayClass1_1.<.ctor>b__0(IFunctionInstanceEx i) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\ActivatorInstanceFactory.cs : 20 at Microsoft.Azure.WebJobs.Host.Executors.ActivatorInstanceFactory1.Create(IFunctionInstanceEx functionInstance) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\ActivatorInstanceFactory.cs : 26
            at Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`2.CreateInstance(IFunctionInstanceEx functionInstance) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionInvoker.cs : 44
            at Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.ParameterHelper.Initialize() at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 776
            at async Microsoft.Azure.WebJobs.Host.Executors.FunctionExecutor.TryExecuteAsync(IFunctionInstance functionInstance,CancellationToken cancellationToken) at C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Executors\FunctionExecutor.cs : 101

            I've noticed locally that the .edmx file isn't generated when the project is built -- instead it's created when I start running the project using func start.

            Could this be a permissions issue (e.g. with the function not having write access to the storage blob)?

            ...

            ANSWER

            Answered 2021-Oct-21 at 00:46

            I've found that the root issue is related to the Run From Package setting. This prevents the function app from generating the .edmx file, so the solution is to either disable Run From Package or to deploy the function with the .edmx file pre-included.

            From MSDN: Run From Package makes wwwroot read-only, so you will receive an error when writing files to this directory. (https://docs.microsoft.com/en-us/azure/azure-functions/run-functions-from-deployment-package)

            Source https://stackoverflow.com/questions/69638954

            QUESTION

            Azure Function with Eventhub Trigger fails with "Encountered error while fetching the list of EventHub PartitionIds -> Unauthorized"
            Asked 2021-Aug-24 at 08:24

            There are a couple of stackoverflow posts which have similar issues but none of them have an authorization error problem.

            I'm having problems running a Azure function with C# code with an eventhub trigger on Azure China. The same code runs fine on Azure global.

            The connection string for the trigger is correct and I tried it with Listen and Manage rights, same problem.

            Any help is appreciated.

            Here the full error message:

            ...

            ANSWER

            Answered 2021-Aug-24 at 08:24

            The problem was a missing subnet in a VNet.

            Source https://stackoverflow.com/questions/68893101

            QUESTION

            Timer trigger Azure Function stopped working without any changes
            Asked 2021-May-27 at 22:49

            I have an Azure Function that has both Timer Trigger and Service Bus Trigger functions. In Portal Azure configuration of that AF, I have the correct storage account connection string AzureWebJobsStorage. There were no changes in ARM of both resources, everything was working properly until few days ago. Now only Service Bus Trigger functions are working, but not Timer Trigger ones.

            Connecting string to storage is 100% correct, I've even regenerated the access key.

            I've found logs for starting Host:

            ...

            ANSWER

            Answered 2021-May-27 at 22:49

            There is a possible regression in the latest function host release(3.0.15733.0). Please set the app setting FUNCTION_EXTENSION_VERSION=3.0.15584.0 (previous function runtime version).

            The regression will be fixed in the next function host release: https://github.com/Azure/azure-functions-host/releases

            Source https://stackoverflow.com/questions/67721234

            QUESTION

            Deploying continuous Azure WebJob and WebApp blocks App
            Asked 2021-Apr-24 at 10:46

            I'm currently deploying one Azure WebJob with a corresponding Web App to Azure via Azure DevOps. My Web Job startup is mostly taken from various examples like https://github.com/Azure/azure-webjobs-sdk/tree/dev/sample/SampleHost

            ...

            ANSWER

            Answered 2021-Apr-22 at 09:44

            Is it possible, this combination doesn't work and I would need to deploy web app and web job seperately, or is there another problem around?

            AFAIK, you do not need to deploy web app and web job separately.

            If we deploy one Azure WebJob with a corresponding Web App, we need to create the WebJob project by right clicking on your Web App and choosing:

            Source https://stackoverflow.com/questions/67202230

            QUESTION

            Facing issue with Azure Function App after publish CompilationErrorException
            Asked 2021-Apr-14 at 14:45

            We are using Azure blob trigger where we can able to process the files locally.

            But after we publish the code in the Azure Portal, it started throwing the below error.

            ...

            ANSWER

            Answered 2021-Apr-14 at 14:45

            Please check if you set the correct Runtime version when deploying azure blob trigger function to azure portal:

            If the Runtime version of your local azure function is inconsistent with the Runtime version of the azure portal, it may cause the problem you mentioned.

            Solution:

            You can delete the deployed function, then set the correct Runtime version and re-deploy the local function to azure portal.

            The problem mentioned in this article is similar to the error message you gave, you can refer to it.

            Source https://stackoverflow.com/questions/67091724

            QUESTION

            Azure Webjob Unable Start Due to Binding Error
            Asked 2021-Feb-18 at 12:31

            I have a webjob that is supposed to read from an Azure queue and do something with the payload found. The issue I'm having is the webjob won't start and here is the error

            [02/17/2021 15:40:11 > e80592: INFO] [15:40:10 ERR] Error indexing method 'Functions.ProcessStudentPerfQueueMessages' [02/17/2021 15:40:11 > e80592: INFO] Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexingException: Error indexing method 'Functions.ProcessStudentPerfQueueMessages' [02/17/2021 15:40:11 > e80592: INFO] ---> System.InvalidOperationException: Can't bind parameter 'message' to type 'StudentMessage'. [02/17/2021 15:40:11 > e80592: INFO] at Microsoft.Azure.WebJobs.Host.Bindings.Data.ClassDataBindingProvider`1.TryCreateAsync(BindingProviderContext context) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Bindings\Data\ClassDataBindingProvider.cs:line 35 [02/17/2021 15:40:11 > e80592: INFO] at Microsoft.Azure.WebJobs.Host.Bindings.Data.DataBindingProvider.TryCreateAsync(BindingProviderContext context) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Bindings\Data\DataBindingProvider.cs:line 41 [02/17/2021 15:40:11 > e80592: INFO] at Microsoft.Azure.WebJobs.Host.Bindings.CompositeBindingProvider.TryCreateAsync(BindingProviderContext context) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Bindings\BindingProviders\CompositeBindingProvider.cs:line 23 [02/17/2021 15:40:11 > e80592: INFO] at Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexer.IndexMethodAsyncCore(MethodInfo method, IFunctionIndexCollector index, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Indexers\FunctionIndexer.cs:line 196 [02/17/2021 15:40:11 > e80592: INFO] at Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexer.IndexMethodAsync(MethodInfo method, IFunctionIndexCollector index, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Indexers\FunctionIndexer.cs:line 149 [02/17/2021 15:40:11 > e80592: INFO] --- End of inner exception stack trace --- [02/17/2021 15:40:11 > e80592: INFO] at Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexer.IndexMethodAsync(MethodInfo method, IFunctionIndexCollector index, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Indexers\FunctionIndexer.cs:line 157 [02/17/2021 15:40:11 > e80592: INFO] at Microsoft.Azure.WebJobs.Host.Indexers.FunctionIndexer.IndexTypeAsync(Type type, IFunctionIndexCollector index, CancellationToken cancellationToken) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Host\Indexers\FunctionIndexer.cs:line 85 [02/17/2021 15:40:13 > e80592: INFO] [15:40:13 FTL] Web Job start-up failed

            Here is the code

            ...

            ANSWER

            Answered 2021-Feb-18 at 07:08

            As the Azure Function's document described:

            Access the message data by using a method parameter such as string paramName. You can bind to any of the following types:

            • Object - The Functions runtime deserializes a JSON payload into an instance of an arbitrary class defined in your code.

            • string

            • byte[]

            • CloudQueueMessage

            Not sure how you define the StudentMessage class, but if you could meet your need by using string type, you could consider use it.

            Source https://stackoverflow.com/questions/66245552

            QUESTION

            Azure function suddenly stopped working on Azure
            Asked 2021-Feb-11 at 14:56

            I have an azure function with a ServiceBus Trigger running locally and on azure just fine. Suddenly, the Azure deployment started failing with the following stack trace:

            ...

            ANSWER

            Answered 2021-Feb-11 at 14:56

            When I see goofy stuff like this, I like to verify what runtimes and SDKs I am running locally and what is running remotely. To do this, we need to log in to our service's Kudu portal:

            If your service domain is hello.azurewebsites.net, then go to hello.scm.azurewebsites.net.

            At the top of the site there is a "Debug Console" option. Click that and go to CMD and type in dotnet --list-sdks and also dotnet --list-runtimes

            If you are using nuget packages in the version 5 range, make sure your server has the v5 SDK/framework.

            Also, stay consistent in your nuget packages. If you are using asp.net core 3.1, do not use v5 nuget packages. Make sure your packages are all v3.

            I am going to link the information from your comment about not mixing .NET Core 3.1 and .NET5 packages when working specifically with Azure Functions. Apparently Azure Functions haven't been fully vetted with .NET5 which is why your server is only showing .NET Core 3.1.

            Source https://stackoverflow.com/questions/66146472

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install azure-webjobs-sdk

            You can download it from GitHub.

            Support

            Check out the [getting started guide](https://docs.microsoft.com/en-us/azure/app-service/webjobs-sdk-get-started), the [how-to guide](https://docs.microsoft.com/en-us/azure/app-service/webjobs-sdk-how-to) and the [wiki](https://github.com/Azure/azure-webjobs-sdk/wiki). For more information on Azure and .NET see [here](https://docs.microsoft.com/en-us/dotnet/azure/?view=azure-dotnet).
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link