-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search-AzGraph "Your Azure credentials have not been set up or have expired" in GitHub Actions #20720
Comments
Same error with Get-AzKeyVaultSecret when it uses Az.Accounts: Version 2.11.1 (and Az.KeyVault: Version 4.9.1) Get-AzKeyVaultSecret : Your Azure credentials have not been set up or have expired, please run Connect-AzAccount to |
@rwaal , could you help to check whether you can see the same error during other cmdlet executes such as |
@dingmeng-xue, the |
@rwaal Could you double confirm with Az.Accounts version your are using.
One more question
I believe the error should be returned by this cmdlet. I would like to know whether |
Hello @msJinLei, while looking up the version of the Az.Accounts module it seems that I can no longer reproduce the problem. I don't know if something changed on the public GitHub runners or that I have been doing something wrong the whole time. If it was me, I sincerely apologize for wasting your time. I'll try to find out why it's now working and post my findings here. But of course you're free to close the issue if you want. Thank you. |
I will keep the issue open for few days and then you can report your findings here if applicable. Also you can create a new issue in the future if this one is closed. |
Hi @pvannoort were you also running the command in an GitHub action? If so, can you share the debug log with us? If not, please create a new issue. Thanks. |
If the problem reproduces feel free to open another issue. Thanks |
The issue is still found. |
Description
The Search-AzGraph command consistently throws an error in a GitHub Actions workflow:
I am not sure if this problem is related to a bug in the Search-AzGraph command, the Az.ResourceGraph module or perhaps in the azure/login@v1 GitHub Action. I can only reproduce it when running this command in a script on GitHub Actions. On my local machine, this script works without problems, using the same module versions.
GitHub workflow
The GitHub workflow is as follows
As you can see in the workflow definition, I am using traditional SPN-based authentication. I use the same credentials in other workflows that use Azure PowerShell cmdlets, which work just fine.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: