azure-functions-core-tools | Command line tools for Azure Functions | Cloud Functions library
kandi X-RAY | azure-functions-core-tools Summary
kandi X-RAY | azure-functions-core-tools Summary
The Azure Functions Core Tools provide a local development experience for creating, developing, testing, running, and debugging Azure Functions.
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-core-tools
azure-functions-core-tools Key Features
azure-functions-core-tools Examples and Code Snippets
npm i -g azure-functions-core-tools@3 --unsafe-perm true
choco install azure-functions-core-tools
ext install azuretoolsforvscode
azure:login
Azure:Create an azure function App(advanced)
npm i -g azure-functions-core-tools
func init yourfunctionname
Azure Functions Core Tools (2.6.1080 Commit hash: 509d59b7eb6fbfb89f70ce96ad22e00f8f7bafdd)
Function Runtime Version: 2.0.12427.0
Now listening on: http://0.0.0.0:7071
npm install azure-fun
brew tap azure/functions
brew install azure-functions-core-tools
/Users/dentonsavage/Projects/AzureFunctionTest/AzureFunctionTest/bin/Debug/netstandard2.0
/usr/lib
└── azure-functions-core-tools@2.0.1-beta.23-1
/usr/lib
└── azure-functions-core-tools@2.0.1-beta.23
brew tap azure/functions
brew install azure-functions-core-tools
Community Discussions
Trending Discussions on azure-functions-core-tools
QUESTION
I am working with Azure Functions and I am having a problem that involves the NuGet "Microsoft.Extensions.Logging.Abstractions". My solution has been running perfectly fine, but recently I added a dependency which depends on "Microsoft.Extensions.Logging.Abstractions 5.0.0". The project builds fine, but when I run it. the following error appears: "Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=5.0.0.0".
I found some information related to this on a Github issue. The suggestions that I found were:
- Downgrade "Microsoft.Extensions.Logging.Abstractions" to version 3.1.0. I can't do this, since I have a third-party dependency that references that same NuGet, but with version 5.0.0.
- Upgrade to .NET 5.0. I can't do this, since I need to use Durable Functions, and those are not yet supported in Azure Functions with .NET 5.0.
I also tried using multiple versions of that same NuGet, but I got the same error (I tried the approach that is mentioned in this link).
Is there any way of solving this problem?
UPDATE: I created a minimal example in which the issue can be reproduced. It is located here. The branch feature/WithLogging3 runs as expected, but the feature/WithLogging5 fails with the message "'The host has not yet started". If I enable the option to Break the Debugger with Common Language Runtime Exceptions, I get the error "Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=5.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified".
It seems that the project only fails when there is an ILogger being injected into a function. For instance, this one (taken directly from Visual Studio 2019 Template for Azure Functions with .NET Core 3.1):
...ANSWER
Answered 2021-Dec-31 at 02:01I tried to reproduce the issue as I got no errors for both .Net Core 3.1 and 6 Versioned Azure Durable Functions Project when installed the package Microsoft.Extensions.Logging.Abstractions
version 5.0.0
through following steps.
- Created two projects of Azure Durable Functions in .Net Core 3.1 and 6.
- Added the package
Microsoft.Extensions.Logging.Abstractions
version5.0.0
using dotnet core CLI command in the terminal of VS Code project.
dotnet add package Microsoft.Extensions.Logging.Abstractions --version 5.0.0
And Executed the functions one by one, as the following output shows it is running successfully:
Azure Durable Functions .Net Core 3.1
Azure Durable Functions .Net Core 6
Updated Answer:Microsoft.Extensions.Logging.Abstractions
version 5.0.0
is added to the minimal example provided to the Azure Function and it is running successfully.
QUESTION
I am trying to install the azure-cli
locally from a cloned repository. I successfully installed homebrew on my end. However, when I try to install the azure-cli
, the error occurs below at the very end:
From the repository, the instructions work on other devices, both on windows and linux. I don't know why it won't work on my end:
Step 1: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2: brew tap-new /azure-cli
Step 3: brew extract azure-cli /azure-cli --version 2.29.2
Step 4: brew install /azure-cli/azure-cli@2.29.2
(This is where error occurs)
*Note: the section is the name of the user of my laptop.
Other part of the installation process I've successfully installed:
Decorator setup:
sudo apt install python3-pip
sudo /usr/bin/pip3 install --system decorator
Azure Functions Core Tools:
npm i -g azure-functions-core-tools@3 --unsafe-perm true
ANSWER
Answered 2021-Dec-01 at 07:26We have ran the below cmdlets in our local environment to install Home brew & azure cli on azure Linux virtual machine which is running with Ubuntu 20.04 image.
Here are the list of Linux cmdlets used:
QUESTION
Previously, I have the azure functions core tools version 3.
For practice purpose, I have installed azure functions core tool version 2 using this command:
...ANSWER
Answered 2021-Nov-23 at 04:50This might be due to the node version. When I tried to use the latest node version to 16v and npm of 8v I could able to change my azure function tools version from 2v to 3v or 3v to 2v (i.e.. Interchangeable).
Here is the screenshot for your reference.
QUESTION
I've got one function app which throws following error when I run it with azure-functions-core-tools@4.0.3780
start
command.
ANSWER
Answered 2021-Oct-27 at 06:25The QueryableMethods
Class is Compatible with
Microsoft.EntityFrameworkCore v5.0.0
Try removing the reference to EntityFramework
by changing target framework to net5.0
.
QUESTION
I have a simple Azure function using BlobTrigger and want to use Application Insights SDK to work with custom telemetry.
...ANSWER
Answered 2021-Jun-21 at 07:02Per my searching, I found this document and it said
There is a Functions-specific version of the Application Insights SDK that you can use to send custom telemetry data from your functions to Application Insights: Microsoft.Azure.WebJobs.Logging.ApplicationInsights
So I followed the sample code and test, but the latest stable version(3.0.27) of this package will return the same error as yours, but when I changed to v3.0.25, the error disappeared.
QUESTION
I have a strange situation where when I use a local powershell script in my visual studio project that logs in using a service principal and then is able to associate a specific subscription.
...ANSWER
Answered 2021-Jun-07 at 08:27As far as I know, the output of the command az login --service-principal --username $AZ_APPLICATION_CLIENT_ID --password $AZ_SECRET --tenant $TENANT --allow-no-subscriptions
also includes the subscription ID like "id": ""
instead of "id": ""
in your output. You can show the default subscription with the command az account show
.
I found that there are two variables $APPLICATION_CLIENT_ID
and $APPLICATION_ID
in your questions. Not sure you have a typo or using the wrong variable there. Please make sure you input the correct subscription id value when you run az account set -s
and other parameters values via echo the environment variable value.
You can also get a list of subscriptions for the logged-in account with the command az account list
and check if the subscription Id does exist in the specific tenant.
At last, you may need to re-auth the CLI with az login
. Or, by comparing the Az CLI version with your local workstation, you may need to reinstall or upgrade it.
You can verify if the service principal indeed belongs to the subscription. Search the display name of App registration in the IAM of subscriptions.
QUESTION
I am currently trying to do the MS tutorial on Azure serverless webapps, but I am completely stuck. Whenever I try to start the sample, (be it by pressing F5 to debug or by entering func host start
directly in the terminal) I get the following error message:
Exceeded language worker restart retry count for runtime:node. Shutting down and proactively recycling the Functions Host to recover
I know there are several seemingly similar threads on that error message, however all of them contain some hidden error message, while for me it simply crashes. No additional error. Nothing. Just to make sure I tried all suggested fixes (except for downgrading Visual Studio Code all the way back to <= 1.39; seems a little radical)
Anyway, here is the --verbose
output from running func host start
on the official Microsoft tutorial for REST WebApps on Azure (https://docs.microsoft.com/en-us/learn/modules/automatic-update-of-a-webapp-using-azure-functions-and-signalr/3-exercise-analyze-limitations-of-polling-in-a-web-app)
ANSWER
Answered 2021-Mar-10 at 11:24If you just let the tutorial run, it will automatically install azure-functions-core-tools@3
, which is the current version.
However, the tutorial code only works with version 2.6.666 < v < 3.0
To fix the tutorial run:
npm i -g azure-functions-core-tools@2 --unsafe-perm true
This will install the newest version of version 2. Running the program afterwards will throw warnings because of Azure Functions being outdated. You can simply ignore it, the sample works now.
QUESTION
I'm trying to debug Azure Function scripts locally, in conjunction with Unity, but getting Timeout errors every time.
I have a few things here, and I'm not sure which one is actually causing the problem... It might be a settings on Windows, as oppose to one of the softwares.
I'm building in Unity 2019.4, and and using PlayFab and it's ability to use Azure Functions. When I try to execute scripts from the Azure servers, it functions correctly. But when I try to run it with Local Debugging, I get WebException: The request timed out System.Net.HttpWebRequest.GetRequestStream
(See full error below).
Here's what I'm doing to setup:
- Set PlayFab to Local Debugging (via VS Code Extension)(and confirming the json file is made in the temp folder)
- Install Azure Functions Core Tools from Here
- Start Azure Functions debugging from VS Code (terminal output shows that the the localhost is running it correctly)
Timeout error references the correct address http://localhost:7071/api/CloudScript/ExecuteFunction
as confirmed in the VS Code Terminal when the AzFunc debugging is started.
When I clone the project to my MacBook Pro, everything runs smoothly in local debugging.
So, because of this, I've tried checking to make sure ports aren't blocked via PowerShell: netsh firewall show state
,and told Windows Defender to not block anything from Unity or Code. When I run Netstat -ab
in PowerShell/CMD, I do get:
ANSWER
Answered 2020-Nov-23 at 20:30Okay, TLDR: The answer to the problem is that not everything was updated. So, update everything if you're experiencing the same problem.
More specifically in my case, the "Visual Studio Code Editor" asset in Unity's Package Manager.
I just wanted throw this out there in case anyone has a problem like this in the future. It may not be the same specific thing that needs upgrading, but search around for everything involved and make sure it's updated. Not just the big, obvious things (like Unity or your IDE). Thankfully for me in this case, the update was starting to cause other problems, and after much headbanging trying to solve those, I came across it.
Good luck, future fellow idiots!
QUESTION
I have the following folderstructure:
...ANSWER
Answered 2020-Nov-02 at 02:37Below is the code on my side, it works fine:
main.py
QUESTION
Developing locally a bunch of Azure functions using
- Windows 10 64-bit
- Visual Studio Code
- C#/.NET Core
Everything was working great. I was able to develop and debug my Azure functions locally and then deploy them to Azure. However a day ago, I upgraded from netcoreapp2.2
to netcorepp3.1
. Here is my current settings.json
ANSWER
Answered 2020-Jul-31 at 07:05Can you please change [DurableClient] IDurableOrchestrationClient starter to [DurableClient] IDurableClient starter and give it a try ?
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-functions-core-tools
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