Deploy Function apps using Azure DevOps
Task: Deploy Function apps using Azure DevOps
Azure function apps:
Azure Web Apps is a cloud
computing-based platform for hosting websites, created and operated by
Microsoft. It is a platform as a service that allows publishing Web apps
running on multiple frameworks and written in different programming languages,
including Microsoft proprietary ones and 3rd party ones.
Step A: create a function

Step 1: Copy the app
URL from GitHub and import it to the azure Devops repository.
Step 2: here app
files are imported.

Step 3: go to pipeline click on create pipeline choose azure
repos choose appropriate repository.

Step 4: and select starter pipeline after the click show
assistant.

Step 5:

After that click on save and run.
Step 6: build start here.

Step 7: go to job and click on publish. You can download
this zip file.

Step 8: go to Release and select (Deploy a function app to
azure function) here CD pipeline. Stage
name Dev.

Step 9: choose artefact build our build pipeline created.

Step 10: click on
task. Goto dev: choose your azure
subscription select app type function app on windows. Select service name.
Go to variable
Name : Environment , value: Dev, Scope: Dev
Go to task choose deploy azure function app after that go
under application and configuration.
App setting , add Environment $(Environment) 
After that click on save and release.
Step 11: select dev and click on deploy it . after
that click on release. And here release has been created.

Step 12: go to
function and click on function1

Step 13 : click on url and copy it and paste url to
browser.

Here we can see that
Build and Deployment both are succeeded.


No comments:
Post a Comment