Deployment to Azure Function App

sbosell's Avatar

sbosell

05 Dec, 2016 01:04 AM

Do you have any instructions/help for deploying from AppVeyor to an Azure Function app?

  1. 1 Posted by Ilya Finkelshte... on 06 Dec, 2016 05:09 AM

    Ilya Finkelshteyn's Avatar

    Hello,

    Azure functions use old good Azure Websites/App Service under the hood. In function portal you can press Function app settings link and get into Azure portal and download publishing profile and then use web deploy to publish.

    Here I created sample repo with functions in separate sub-folder. I named it as my function app, but name can be anything. I used this folder as artifact and published this artifact using web deploy.

    I cannot guarantee that I will not delete this repo soon, so here is working YAML:

    version: 1.0.{build}
    build: off
    artifacts:
    - path: functions5a7ec9a4
      name: functions5a7ec9a4
    deploy:
    - provider: WebDeploy
      server: https://functions5a7ec9a4.scm.azurewebsites.net/msdeploy.axd?site=functions5a7ec9a4
      website: functions5a7ec9a4
      username: $functions5a7ec9a4
      password:
        secure: zdKZFEiCAZPCYN0RwySNcpa2nEBdwPH1dXZO7jJ8GfdWitHgLXqzZdvbpJJtx8C3Q2iG4GwjW6+BiWys7j8wSw==
      artifact: functions5a7ec9a4
    

    I was able to edit existing function and add new one and both changes were deployed to Azure.

    --ilya.

  2. 2 Posted by Alastair Christ... on 21 Dec, 2016 12:32 PM

    Alastair Christian's Avatar

    Further to Ilya's response above I've recently gone through the same process of deploying Azure Functions from an AppVeyor project using WebDeploy and written up the steps I followed here

  3. 3 Posted by Ilya Finkelshte... on 21 Dec, 2016 10:11 PM

    Ilya Finkelshteyn's Avatar

    Alastair, thanks a lot, this is very helpful!

  4. 4 Posted by emanuel on 17 Feb, 2017 12:05 PM

    emanuel's Avatar
  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:15 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac