This is the main readme for the AzCopy-Runbook project.
This project is intended to serve two purposes:
- A reference implementation that demonstrates the creation of the Azure resources needed to support an automation hybrid worker runbook using Terraform and GitHub Actions.
- A cloud based azcopy "utility" that can be used to perform a performant/high scale azcopy operation in the cloud.
Folder | Description |
---|---|
./.github | GitHub Actions YAML files |
depoy/terraform | Terraform scripts used to create the Azure resources |
scripts | Project setup & cleanup scripts |
scripts/dsc | DSC (Desired State Configuration) PowerShell script |
scripts/runbook | Runbook PowerShell script |
- Create a GitHub PAT (Personal Access Token) for automated DevOps resource creation used by project_setup.sh.
- Create a local
.env
file in the root folder by copying the .env.template file. - Populate the
.env
file with values specific to your environment. - Run
az login
command and sign in to your Azure account. You need to be an owner of your subscription so that you can create a service principal used for Azure resources deployment. - Run scripts/project_setup.sh.
- Run the
CI
workflow to create the Azure resources. - Run the
AzCopy
workflow to initiate an azcopy operation. The source and target file share/container can be specified in the.env
file or as workflow parameters.