How to setup a VSTS build definition to publish Azure Functions with this configuration? -


we using vs 2017 on single solution multiple projects , right mouse click , deploy 3 c# azure function 2 different azure function apps slots.

how set vsts build definition accomplish on every check in?

we using dlls , setting function.json way. don’t know if need deploy differently based on type of configuration.

"scriptfile": "..\\bin\\target.dll", "entrypoint": "target.application.run" 

i able create vsts deployment through following steps

solutions structure

enter image description here

build configuration steps

  1. sync master branch
  2. added nuget restore using default options
  3. added msbuild step followign optons
    • project : vstssolution.sln (selected using '...')
    • msbuild version: latest
    • msbuild architechture: msbuild x86
    • clean: checked
    • create log file: checked
  4. added app service deploy function app1
    • azure subscription: target subscription
    • app service name: target function app
    • deploy slot: if check allows select actual slot want deploy to
    • package or folder: functionapp1\bin\debug\net461
  5. added app service deploy function app1
    • package or folder: functionapp2\bin\debug\net461
  6. make sure selected "hosted vs2017" agent queue build.

    all build steps

    enter image description here

  7. triggers: enable continuous integration. both function app deploy every time check-in.

    continuous integration

    enter image description here


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -