Closed ksolanki2 closed 6 months ago
Issue was with the spn which is used for the login. It does not have access to the subscription, because of which commands were not returning anything. We have given it required access after which commands started working again.
Our subscription was moved to a new management group because of which access was removed.
Get-AzVM, Get-AzResourceGroup and Get-AzUserAssignedIdentity commands are not working.
We are calling PS script from GitHub Actions, inside which we are calling these commands.
We are using below for yaml file: runs-on: ubuntu-latest steps:
name: Azure Login uses: Azure/login@v2.0.0 with: creds: '${{ secrets.xxx }}' enable-AzPSSession: true
name: Checkout source code uses: actions/checkout@v4
name: Group Policy uses: azure/powershell@v2
https://github.com/allscriptshealthcare/ALT-CDO-Azure/actions/runs/8690262646/job/23829783601