After adding an account to your session (either Add-AzureRmAccount or Login-AzureRmAccount ,) use
Save-AzureRmProfile -Path <path-to-file>
to save current credentials and
Select-AzureRmProfile -Path <path-to-file>
to download them.
Thanks Mark Cowlishaw
source share