Created
December 8, 2021 16:24
-
-
Save 2743d2/cf9d0a6d73fe14d6212885ef6b6d0c1f to your computer and use it in GitHub Desktop.
run docker azure-cli as "az"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function AZURECLI { docker run --rm -it -v $env:userprofile\.azure:/root/.azure -v ${HOME}/.kube:/root/.kube mcr.microsoft.com/azure-cli az $args } | |
Set-Alias -Name az -Value AZURECLI |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment