[macOS] Disable AzureRM aliases (#2222)

* disable  AzureRM aliases

* remove Az.Account fix
This commit is contained in:
Aleksandr Chebotov
2020-12-10 11:09:04 +03:00
committed by GitHub
parent 693b6a0809
commit b5a45214f5

View File

@@ -26,14 +26,11 @@ for module in ${psModules[@]}; do
fi fi
done done
# Enables AzureRm prefix aliases for Az modules # A dummy call to initialize .IdentityService directory
sudo pwsh -command "& {Import-Module Az; Enable-AzureRmAlias -Scope LocalMachine}" pwsh -command "& {Import-Module Az}"
# powershell link was removed in powershell-6.0.0-beta9 # powershell link was removed in powershell-6.0.0-beta9
sudo ln -s /usr/local/bin/pwsh /usr/local/bin/powershell sudo ln -s /usr/local/bin/pwsh /usr/local/bin/powershell
# fix ~/.azure directory permissions # fix ~/.azure directory permissions
sudo chown -R ${USER}: $HOME/.azure sudo chown -R ${USER}: $HOME/.azure
# fix permissions for Az.Account version 2.*
sudo chown -R ${USER}: $HOME/.local/share/.IdentityService