Search-AzGraph "Your Azure credentials have not been set up or have expired" in GitHub Actions #21593
Labels
Azure PS Team
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Tracking
We will track status and follow internally
Description
It's the same issue as #20720 .
It's reported in Azure PowerShell Action Repo: Action Fails after Login via Az module.
I can always reproduce the issue with the GitHub workflow script below:
The error message is
But if the
Get-AzContext
orGet-AzResourceGroup
is added beforeSearch-AzGraph
, the script will be run successfully.Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: