Add-AzureRmAccount or the alias Login-AzureRmAccount doesn't seem to persist between sessions the way that Add-AzureAccount does.
Is there a way to get it to persist?
After adding the account to your session (either Add-AzureRmAccount or Login-AzureRmAccount,) use
Save-AzureRmProfile -Path <path-to-file>
to save the current credentials and
Select-AzureRmProfile -Path <path-to-file>
to load them.
Thanks to Mark Cowlishaw
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With