Sign-in instructions for the Azure Toolkit for IntelliJ

The Azure Toolkit for IntelliJ provides two methods for signing in to your Azure account:

  • Automated: You create a credentials file that you can use to automatically sign in to your Azure account.
  • Interactive: You enter your Azure credentials each time you sign in to your Azure account.

The following sections describe how to use each method.

Prerequisites

The Azure Toolkit for IntelliJ requires the following software components:

  • IntelliJ IDEA Ultimate Edition, which can be downloaded from the JetBrains website.

  • A Java Developer Kit (JDK), version 1.8 or later.

  • An operating system. The Azure Toolkit for IntelliJ has been tested on the following operating systems:

    • Windows 10, Windows 8.1, Windows 8, and Windows 7
    • Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, and Windows Server 2008
    • Mac OS X version "Yosemite" or later
    • Ubuntu Linux version 14, 15, and 16

For more information, see the Azure Toolkit for IntelliJ page at the JetBrains Plugin Repository.

Sign in to your Azure account automatically

This section walks you through creating a credentials file that contains your service principal data. After you have completed this process, Eclipse uses the credentials file to automatically sign you in to Azure each time you open your project.

  1. Open your project with IntelliJ IDEA.

  2. On the Tools menu, point to Azure, and then click Azure Sign In.

    The IntelliJ Azure Sign In command

  3. In the Azure Sign In window, select Automated, and then click New.

    The Azure Sign In window with Automated selected

  4. In the Azure Login Dialog window, enter your Azure credentials, and then click Sign in.

    The Azure Login Dialog window

  5. In the Create Authentication Files window, select the subscriptions that you want to use, choose your destination directory, and then click Start.

    The Create Authentication Files window

  6. In the Service Principal Creation Status dialog box, after your files have been created successfully, click OK.

    The Service Principal Creation Status dialog box

  7. In the Azure Sign In window, click Sign in.

    Azure Log In Dialog Box

  8. In the Select Subscriptions dialog box, select the subscriptions that you want to use, and then click OK.

    The Select Subscriptions dialog box

Sign out of your Azure account after you have signed in automatically

After you have configured your account by using the preceding steps, the Azure Toolkit automatically signs you in to your Azure account each time you restart IntelliJ IDEA. However, to sign out of your Azure account and prevent the Azure Toolkit from signing you in automatically, do the following:

  1. In IntelliJ IDEA, on the Tools menu, point to Azure, and then click Azure Sign Out.

    The IntelliJ Azure Sign Out command

  2. In the Azure Sign Out confirmation window, click Yes.

    The Azure Sign Out confirmation window

Sign in to your Azure account automatically by using an existing credentials file

If you sign out of your Azure account when you are using IntelliJ IDEA, you must use an existing credentials file to automatically sign back in to the account. To configure the Azure Toolkit for Eclipse to use an existing credentials file, do the following:

  1. Open your project with IntelliJ IDEA.

  2. On the Tools menu, point to Azure, and then click Azure Sign In.

    The IntelliJ Azure Sign In command

  3. In the Azure Sign In window, select Automated, and then click Browse.

    The Azure Sign In window with Automated selected

  4. In the Select Authentication File dialog box, select a previously created credentials file, and then click Select.

    The Select Authentication File dialog box

  5. In the Azure Sign In window, click Sign in.

    The Azure Sign In window with Automated selected

  6. In the Select Subscriptions dialog box, select the subscriptions that you want to use, and then click OK.

    The Select Subscriptions dialog box

Sign in to your Azure account interactively

To sign in to Azure by manually entering your Azure credentials, do the following:

  1. Open your project with IntelliJ IDEA.

  2. Click Tools, point to Azure, and then click Azure Sign In.

    The IntelliJ Azure Sign In command

  3. In the Azure Sign In window, select Interactive, and then click Sign in.

    The Azure Sign In window with Interactive selected

  4. In the Azure Log In dialog box appears, enter your Azure credentials, and then click Sign in.

    The Azure Login Dialog window

  5. In the Select Subscriptions dialog box, select the subscriptions that you want to use, and then click OK.

    The Select Subscriptions dialog box

Sign out of your Azure account after you have signed in interactively

After you have configured your account by using the preceding steps, you will be automatically signed out of your Azure account each time you restart IntelliJ IDEA. However, if you want to sign out of your Azure account without restarting IntelliJ IDEA, do the following.

  1. In IntelliJ IDEA, on the Tools menu, point to Azure, and then click Azure Sign Out.

    The IntelliJ Azure Sign Out command

  2. In the Azure Sign Out confirmation window, click Yes.

    The Azure Sign Out confirmation window

Next steps

For more information about the Azure toolkits for Java IDEs, see the following links:

For more information about using Java with Azure, see the Azure Java Developer Center and the Java Tools for Visual Studio Team Services.