Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to keep AzureRMAccount between sessions

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?

like image 614
TylerHam Avatar asked Nov 09 '15 05:11

TylerHam


Video Answer


1 Answers

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

like image 173
TylerHam Avatar answered Sep 27 '22 01:09

TylerHam