Linux: Import of Az.Accounts fails with obscure error message when $HOME is not set #24813
Labels
Accounts
Issues in Az.Accounts except authentication related
Azure PS Team
customer-reported
feature-request
This issue requires a new behavior in the product in order be resolved.
Tracking
We will track status and follow internally
Description
When importing Az.Accounts on Linux, the startup checks assume that $HOME is set to a non-empty string. Some CI servers (TeamCity at least) do not set this by default.
The error is thrown in
azure-powershell/src/Accounts/Accounts/StartupScripts/AzError.ps1
Line 32 in cd91bc2
Maybe it would be better to check whether $HOME is set before calling Join-Path there, and either skip the check or produce a meaningful error message.
Issue script & Debug output
Environment data
Module versions
Error output
No response
The text was updated successfully, but these errors were encountered: