Skip to content

Instantly share code, notes, and snippets.

@segraef
Created September 3, 2020 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save segraef/59017bb1e3d6bee82025697e10827bc9 to your computer and use it in GitHub Desktop.
Save segraef/59017bb1e3d6bee82025697e10827bc9 to your computer and use it in GitHub Desktop.
Example GitHub Workflow
name: ExampleWorkflow
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Azure Login
uses: azure/login@v1.1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true
- name: Azure CLI
run: |
az webapp list --query "[?state=='Running']"
- name: Azure PowerShell
uses: azure/powershell@v1
with:
azPSVersion: 'latest'
inlineScript: |
Get-AzVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment