How to Login without prompt?

后端 未结 4 2311
栀梦
栀梦 2020-12-13 06:27

I tried following commands to get a noprompt faster login experience but each time i find login popup. I even tried using the certificate initially but since that didn\'t pr

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 07:07

    Might be late to post but I found another simple solution so listing it down here so as to help others:

    1. Login to azure account with command Login-AzureRmAccount.
    2. Save the context in Json file using command Save-AzureRmContext -Path "E:\AzureProfile.json".
    3. Now you can login without prompt using command: Import-AzureRmContext -Path "E:\AzureProfile.json".

提交回复
热议问题