Sign-in instructions for the Azure Toolkit for IntelliJ

Once installed, the Azure Toolkit for IntelliJ provides two methods for signing in to your Azure account:

Sign out methods are also provided.

Prerequisites

To complete the steps in this article, you will need to install the Azure Toolkit for IntelliJ, which requires the following software components:

Note

The Azure Toolkit for IntelliJ page at the JetBrains Plugin Repository lists the builds that are compatible with the toolkit.

Sign in to your Azure account by Device Login

To sign in Azure by device login, do the following:

  1. Open your project with IntelliJ IDEA.

  2. Open sidebar Azure Explorer, and then click the Azure Sign In icon in the bar on top (or from the IntelliJ menu, navigate to Tools>Azure>Azure Sign in).

    The IntelliJ Azure Sign In command

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

    The Azure Sign In window with device login selected

  4. Click Copy&Open in Azure Device Login dialog .

  5. In the browser, paste your device code (which has been copied when you click Copy&Open in last step) and then click Next.

  6. Select your Azure account and complete any authentication procedures necessary in order to sign in.

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

Sign in to your Azure account by Service Principal

This section walks you through creating a credentials file that contains your service principal data. After you have completed this process, IntelliJ uses the credentials file to automatically sign you into Azure when opening your project.

  1. Open your project with IntelliJ IDEA.

  2. Open sidebar Azure Explorer, and then click the Azure Sign In icon in the bar on top (or from the IntelliJ menu, navigate to Tools>Azure>Azure Sign in).

    The IntelliJ Azure Sign In command

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

    The Azure Sign In window with service principal selected

  4. Click Copy&Open in Azure Device Login dialog .

  5. In the browser, paste your device code (which has been copied when you click Copy&Open in last step) and then click Next.

  6. Select your Azure account and complete any authentication procedures necessary in order to sign in. After authentication, close the browser and switch back to IntelliJ.

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

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

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

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

    Tip

    Once you have created the service principal authentication file, you can start from step 3, choose your authentication file and sign in.

Sign out of your Azure account

After you have configured your account by preceding steps, you will be automatically signed in each time you start IntelliJ IDEA.

However, if you want to sign out of your Azure account, navigate to the Azure Explorer side bar, click the Azure Sign Out icon or from the IntelliJ menu, navigate to Tools>Azure>Azure Sign Out).

Next steps

To report bugs or request new features, create issues on our GitHub repository. Or, ask questions on Stack Overflow with tag azure-java-tools.

For more information about using Java with Azure, see the following links: