Hi Mahantha MV,
Thanks for reaching out to Microsoft Q&A.
You can try any of th efollowing approaches to get your files copied from private github repo to a Azure blob storage
Using Devops pipeline:
- Have an azure synapse workspace and a linked service to connect to azure blob storage
- Develop a pipeline in azure synapse that uses data flows or copy activities to fetch files from GitHub and store them in azure blob storage
- Implement versioning control by using Azure Blob Storage's versioning features or by incorporating logic in your Synapse pipeline
Using AzCopy:
- Check out the Git repo onto the build instance.
- Create a new branch.
- Download and install AzCopy via the Bash or PowerShell command line on the build instance.
- Use AzCopy to get the files from blob storage and put them into the right place in the local clone of the Git repo.
- Commit, check in, and create a pull request as needed. https://learn.microsoft.com/en-us/answers/questions/411094/how-to-copy-files-from-azure-blob-storage-into-azu?orderBy=Newest
Using Azure Functions and PyGithub:
Create an Azure HTTP trigger function that connects to your private GitHub repository using the PyGithub Python SDK.
Download the files from the GitHub repo.
Upload these files to Azure Blob Storage.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.