locked
AzureStack access authentication using AzureRmContext PowerShell RRS feed

  • Question

  • Connected AzureStack portal and downloaded AzureRmContent file using Save-AzureRmContext to local machine

    Now I tried to access azurestack using below command Import-AzureRmContextFile -Path "rmcontenxt.json" it is giving below exception

    Run Login-AzureRmAccount to login.

    Can you let me know the process to connect to AzureStack using AzureRmContext with Powershell without asking for Login-AzureRmAccount,is there a way to access Azurestack portal silently with out asking for Login every time. My stack portal is Multifactor authentication(Phone authentication) please let me know the process to access azure stack portal using PowerShell without asking for Login Popup since my requirement is to auto provision VMs in Azure stack using ARM Templates from Jenkin.

    Appreciate your help.

    Thanks.


    Thursday, May 17, 2018 5:05 PM

Answers