Skip to content

Commit

Permalink
Add function app deployment step template (#158)
Browse files Browse the repository at this point in the history
* function deploy step template

* added apptype

Co-authored-by: Mohamad Adam <[email protected]>
  • Loading branch information
adam230594 and Mohamad Adam authored Dec 3, 2020
1 parent d46bddd commit 45e0fcd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions azure-pipelines-templates/deploy/step/function-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
parameters:
ServiceConnection: ''
FunctionAppName: ''
DeploymentPackagePath: ''

steps:
- task: AzureFunctionApp@1
displayName: Azure Function App Deploy - ${{ parameters.FunctionAppName }}
inputs:
azureSubscription: ${{ parameters.ServiceConnection }}
appType: functionApp
appName: ${{ parameters.FunctionAppName }}
package: ${{ parameters.DeploymentPackagePath }}

- task: AzureAppServiceManage@0
displayName: Restart Function App - ${{ parameters.FunctionAppName }}
inputs:
azureSubscription: ${{ parameters.ServiceConnection }}
Action: Restart Azure App Service
WebAppName: ${{ parameters.FunctionAppName }}

0 comments on commit 45e0fcd

Please sign in to comment.