I've got a solution that contains a web app and class libraries. I added two Azure function projects to this, the first is version 1 and the second version 2. Both run fine locally. This code is in an online repository (Visual Studio Online, now Azure DevOps), and I set up continuous deployment from it to an Azure function set up in the portal. However, neither project is showing up under Functions in the portal although the code deployed successfully just like Azure websites and the URL says "Your Function App is up and running". I'm using Visual Studio 2017.
An app represents a single application running on that infrastructure. You can deploy multiple apps to a single plan. In Azure Functions, your hosting and application are also separated, but you have additional hosting options available for elastic hosting, where Azure Functions manages scaling for you.
To find the application settings, see Get started in the Azure portal. The Application settings tab maintains settings that are used by your function app. You must select Show values to see the values in the portal. To add a setting in the portal, select New application setting and add the new key-value pair.
If you have'nt managed to get CD working, here's the trick. You mentioned that you are using Runtime V2 (.NET CORE ). I have some functions setup in CI/CD as well. In the Build Pipeline
Build you function project with dotnet Build
Task and point it with only the Function project path.
And in the arguments of the task add this
/p:DeployOnBuild=true /p:DeployTarget=Package;CreatePackageOnPublish=true
After the build task, use the Publish Artifact
task by default it outputs eveything to $(Build.ArtifactStagingDirectory)
Now the last step. Use the Azure App Service Deploy
task and Authenticate with your credentials like subscription,RG etc.
Now in the App Service Type
choose FunctionApp on Windows/Linux
( your choice)
Now in the Package or Folder
argument provide $(Build.ArtifactStagingDirectory)/YourFunctionProjectName.zip
This helped me to setup CI/CD for Azure Functions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With