WhoAmI for Azure Cloud Shell
I had the need to know the current user in Azure Cloud Shell without hardcoding the UPN for my scripts.
Sadly the Cloud Shell had very little information about the user, so this module was born brining us the Get-AzWhoAmI
cmdlet and its alias whoami
.
Just use install from the PowerShell Gallary as usual:
Install-Module -Name azwhoami
And you can start using it right away
Consider sponsoring me ->