Start VMs #1293
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Start VMs | |
on: | |
schedule: | |
- cron: "0 4 * * *" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
start_vms: | |
name: Start all virtual machines | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to Azure | |
uses: azure/login@v2 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Start all virtual machines | |
run: | | |
set -e | |
az vm start --ids "$(az vm list --query "[].id" --output tsv)" |