gsacavdm / gov-arm-linux-runner

An Azure Resource Manager template to setup a Linux VM in Azure Government that will execute all the bash scripts in an Azure Storage Blob Container.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Linux Code Runner Resource Manager Template

This template sets up a Linux Azure Virtual Machine that will execute all the bash scripts in an Azure Storage Blob Container and then self-destruct.

  1. Create a VM
  2. Run the custom script extension
    1. Runs a default script that downloads everything in a container
    2. Runs the indicated script (must be included in the container)
  3. (PENDING) Kill the VM

Testing bootstrap.sh

docker run -v $(pwd):/app --name runner-debug -it ubuntu bash /app/bootstrap.sh somescript.sh somecontainer someaccountname  saskey AzureUSGovernment

Testing the ARM template

az group create -n runner -l usgovvirginia
az group deployment create -n $(date +%Y%m%d%H%M%S) -g runner --template-file azuredeploy.json --parameters azuredeploy.parameters.json

About

An Azure Resource Manager template to setup a Linux VM in Azure Government that will execute all the bash scripts in an Azure Storage Blob Container.

License:MIT License


Languages

Language:Shell 100.0%