Skip to content

restart-vm

restart-vm #5

Workflow file for this run

name: restart-vm
on:
workflow_dispatch:
# schedule:
# - cron: '15 15 * * 1-5'
jobs:
restart-vm:
runs-on: ubuntu-latest
environment: production-secrets
steps:
- name: azure login
uses: azure/login@92a5484dfaf04ca78a94597f4f19fea633851fa2 # pin@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: restart vm
uses: azure/CLI@b0e31ae20280d899279f14c36e877b4c6916e2d3 # [email protected]
with:
azcliversion: 2.50.0
inlineScript: |
az vm restart --resource-group tdm_rg --name tdm_vm