Merge pull request #1 from shah-zeb-naveed/test_feature_branch #16
This file contains 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: Run Azure Login with OpenID Connect and PowerShell | ||
on: workflow_dispatch: | ||
#[push] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
jobs: | ||
Windows-latest: | ||
runs-on: windows-latest | ||
steps: | ||
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true) | ||
uses: azure/login@v1 | ||
with: | ||
enable-AzPSSession: true | ||
auth-type: IDENTITY | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
- name: 'Get resource group with PowerShell action' | ||
uses: azure/powershell@v1 | ||
with: | ||
inlineScript: | | ||
Get-AzResourceGroup | ||
azPSVersion: "latest" |