简体   繁体   中英

How to copy files from github to WASB storage in azure function

I want to copy files from github to wasb storage when any push is happened in github.

Is there any example azure function code to follow?

You can try to create and use a GitHub webhook triggered function that is triggered by an HTTP webhook request.

In Azure Functions app code, you can extract github commits from request body string data = await req.Content.ReadAsStringAsync() and use GitHub API to retrieve the contents of files within a repository.

Besides, to upload files to wasb storage, you can use client library ( Referencing assemblies in Azure Functions app ) or REST API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM