So I would recommend installing the newest version (3.1 at the time of writing) as well. The thing is, the Azure Functions Core Tools require this version to work with v2 Function Apps. This is a bit counter intuitive, as version 2.2 is end of live, while version 2.1 is the lts version. Of course you do need to consider it a preview version, so no guarantees for the future.NET Core SDK 2.2 It has the latest features and until now has been compatible with Azure Function Apps. While you are at it, you might want to try the PowerShell Preview extension. It can easily be downloaded within Visual Studio Code. If you work with PowerShell, you should have been using this as well.
If you are not using it now you should consider it anyway, it is really powerful tooling The PowerShell extension for Visual studio Code So you need to download PowerShell if you haven’t yet.Īs the deployment is meant for Visual studio code, it makes sense that you need that software.
The reason for that is that there are multiple ways to install all these requirements, depending on what operating system you use.Īlthough this is called PowerShell Core in the doc, this officially is called just PowerShell.Īzure PowerShell Function apps work with the most recent GA version of PowerShell. When you open the Microsoft Doc I talked about earlier, everything is explained step by step. This method is great for development work and I have used this exclusively for 25daysofServerless What do you need When you are done, you have the option to deploy directly to your Azure subscription. You can run the function on your local machine and quickly find issues in your code. Why should you care if you have the portal and Azure DevOps? Well Visual Studio Code gives you an extra dimension: Local debugging. Let’s walk through them and see if we could actually automate the steps to prepare to create an Azure PowerShell Function with Visual studio Code. The only thing that is not explained on that page is how you can take care of the prerequisites. The reason for that is that the Microsoft docs have an excellent guide on how you can do that, so I didn’t think I’d have much to add. I have not written a post about deploying an Azure Function App through Visual Studio Code. In past blog posts, I have explained about deploying Azure Function Apps through the portal and through Azure DevOps.