How to Login without prompt?

后端 未结 4 2309
栀梦
栀梦 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:10

    You can use PowerShell ISE..

    Follow this script:

    $password = ConvertTo-SecureString 'Password' -AsPlainText -Force
    
    $credential = New-Object System.Management.Automation.PSCredential ('Username', $password)
    
    Connect-AzureRmAccount -Credential $Credential -Subscription 5a4dtert8-88bc-447c-bb20-b236terteb28e4 -Tenant 0d8trtec-5229-44ca-acc8-dbterte01b993b6
    

    You can get auto generate the Connect-AzureRmAccount script using Power Shell ISE by

    passing Subscription ID and Tenant with $credential variable..

提交回复
热议问题