Skip to content

Run Azure Login

Run Azure Login #14

Workflow file for this run

name: Run Azure Login
on: [workflow_dispatch]
permissions:
id-token: write
contents: read
jobs:
demo:
runs-on: ubuntu-latest
environment: Azure
steps:
- name: "Azure PowerShell login"
uses: azure/login@v2
with:
client-id: ${{ secrets.CLIENT_ID }}
tenant-id: ${{ secrets.TENANT_ID }}
subscription-id: ${{ secrets.SUBSCRIPTION_ID }}
auth-type: IDENTITY
enable-AzPSSession: true
- name: "Get resource groups"
uses: azure/powershell@v1
with:
inlineScript: |
Get-AzResourceGroup
azPSVersion: "latest"