diff --git a/images/macos/provision/core/powershell.sh b/images/macos/provision/core/powershell.sh index e0c0c0ec3..f8053995b 100644 --- a/images/macos/provision/core/powershell.sh +++ b/images/macos/provision/core/powershell.sh @@ -26,14 +26,11 @@ for module in ${psModules[@]}; do fi done -# Enables AzureRm prefix aliases for Az modules -sudo pwsh -command "& {Import-Module Az; Enable-AzureRmAlias -Scope LocalMachine}" +# A dummy call to initialize .IdentityService directory +pwsh -command "& {Import-Module Az}" # powershell link was removed in powershell-6.0.0-beta9 sudo ln -s /usr/local/bin/pwsh /usr/local/bin/powershell # fix ~/.azure directory permissions sudo chown -R ${USER}: $HOME/.azure - -# fix permissions for Az.Account version 2.* -sudo chown -R ${USER}: $HOME/.local/share/.IdentityService \ No newline at end of file