Interactive login is required. Use 'azure login' to interactively login

5/31/2016

Trying to run Kubernetes on Azure, I'm stuck on ./azure-login.js -u <your_username>.

I'm getting the following:

[aii@localhost azure]$ ./azure-login.js -u aii@aii_domain.com
info:    Executing command login
Password: ********
+ Authenticating...                                                            
error:   Interactive login is required. Use 'azure login' to interactively login.
info:    Error information has been recorded to /home/aii/.azure/azure.err
error:   login command failed

More info:

[aii@localhost azure]$ azure --version
0.10.0 (node: 4.3.1)

BTW, my account is BizSpark Plus if it matter..

-- ItayB
azure
azure-cli
kubernetes

1 Answer

5/31/2016

Add the following commands first:

azure account download

it will guide you to download .publishsettings file from browser which you should use for:

azure account import <downloaded file>

azure account set <"name of your subscription">

Azure login only works from a work or school id, which really means an AAD object (identity). If you have a Microsoft account, you can only "connect" with the azure account import command that takes a .publishsettings file that you have to download. (it's a cert file)

This is actually a feature of Azure, although I think we don't communicate well here. Turns out that everyone has a default Azure Active Directory domain that they get for free.

At a larger level, Azure has two management APIs: 1. Service management, which can be used with either work ids or Microsoft account ids, and 2. Resource management, which is the new stuff and can be used only with work or school ids, and that works only with the azure login functionality.

-- Indigo8
Source: StackOverflow