Alexander Trauzzi
Alexander Trauzzi

Reputation: 7405

How do I publish a .net Core app to Azure App Service for use in a Function?

I'm putting together some .net Core CLI applications that I'd like to invoke from PowerShell-based Azure Functions.

Unfortunately, I'm a bit fuzzy on what the correct/best approach would be to get my executables deployed in such a way that they can be invoked.

Note: I only use git for source control, not deployment. So no git-based options please.

Upvotes: 1

Views: 1135

Answers (2)

Tim P.
Tim P.

Reputation: 2942

Two answers here:

  1. EDIT: .NET Core Standard 1.3 is supported as of the time of this writing. Not 1.6. Also AppSettings configuration isn't yet supported using appsettings.json.

  2. To deploy a .NET Framework 4.6 App, use these instructions (it's a live documentation site that's updated often). You can Web Deploy, or use VSTS Source Control, FTP, or use Kudu to upload a .zip file:

To use the function app's SCM (Kudu) endpoint Navigate to: https://yourFunctionName.scm.azurewebsites.net. Click Debug Console > CMD. Navigate to D:\home\site\wwwroot\ to update host.json or D:\home\site\wwwroot\ to update a function's files. Drag-and-drop a file you want to upload into the appropriate folder in the file grid. There are two areas in the file grid where you can drop a file. For .zip files, a box appears with the label "Drag here to upload and unzip." For other file types, drop in the file grid but outside the "unzip" box.

Upvotes: 0

Fabio Cavalcante
Fabio Cavalcante

Reputation: 12538

Omega, your scenario is supported today.

The fact that this is a .NET Core application is not relevant to Azure Functions in this scenario as you'll be invoking it directly and, from an Azure Functions perspective, this will be just like any other PowerShell function.

For the deployment options, your options vary from integrated source control deployment to Web Deploy, FTP and others, allowing you to pick the option that fits your needs to have a fully automated deployment.

You can find detailed information about Azure Functions deployment options here but additional deployment options (since Azure Functions supports the deployment options exposed by App Service) are also available here.

Upvotes: 5

Related Questions