使用用于 IntelliJ 的 Azure 资源管理器管理存储帐户Manage storage accounts by using the Azure Explorer for IntelliJ

Azure 资源管理器是用于 IntelliJ 的 Azure 工具包的一部分,它为 Java 开发人员提供易用的解决方案,用于从 IntelliJ 集成开发环境 (IDE) 内部管理其 Azure 帐户中的存储帐户。The Azure Explorer, which is part of the Azure Toolkit for IntelliJ, provides Java developers with an easy-to-use solution for managing storage accounts in their Azure account from inside the IntelliJ integrated development environment (IDE).

先决条件Prerequisites

若要完成文章中的步骤,需要安装用于 IntelliJ 的 Azure 工具包,该工具包需要以下软件组件:To complete the steps in his article, you will need to install the Azure Toolkit for IntelliJ, which requires the following software components:

备注

JetBrains 插件存储库中的 Azure Toolkit for IntelliJ 页列出了与该工具包兼容的内部版本。The Azure Toolkit for IntelliJ page at the JetBrains Plugin Repository lists the builds that are compatible with the toolkit.

显示 Azure 资源管理器工具窗口Displaying the Azure Explorer Tool Window

如果“Azure 资源管理器”工具窗口在 IntelliJ 中不可见,请依次单击“查看”、“工具窗口”、“Azure 资源管理器”。 If the Azure Explorer tool window is not visible in IntelliJ, click View, then click Tool Windows, and then click Azure Explorer.

显示 Azure 资源管理器工具窗口

在 IntelliJ 中创建存储帐户Create a storage account in IntelliJ

若要使用 Azure 资源管理器创建存储帐户,请执行以下操作:To create a storage account by using the Azure Explorer, do the following:

  1. 按照用于 IntelliJ 的 Azure 工具包的登录说明中的步骤登录到 Azure 帐户。Sign in to your Azure account by using the Sign-in instructions for the Azure Toolkit for IntelliJ.

  2. 在“Azure 资源管理器”视图中,展开 Azure 节点,右键单击“存储帐户”,并单击“创建存储帐户”。 In the Azure Explorer view, expand the Azure node, right-click Storage Accounts, and then click Create Storage Account.

    “创建存储帐户”命令

  3. 在“创建存储帐户” 对话框中,指定以下选项:In the Create Storage Account dialog box, specify the following options:

    “创建新存储帐户”对话框

    • 名称:指定要用于新存储帐户的名称。Name: Specifies the name for the new storage account.

    • 帐户类型:指定要创建的存储帐户的类型(例如“Blob 存储”)。Account kind: Specifies the type of storage account to create (for example, "Blob storage"). 有关详细信息,请参阅有关 Azure 存储帐户For more information, see About Azure storage accounts.

    • 性能:指定要使用哪一个从所选发布者提供的存储帐户(例如,“高级”)。Performance: Specifies which storage account offering to use from the selected publisher (for example, "Premium"). 有关详细信息,请参阅 Azure 存储可伸缩性和性能目标For more information, see Azure storage scalability and performance targets.

    • 复制:指定存储帐户的复制(例如“区域冗余”)。Replication: Specifies the replication for the storage account (for example, "Zone-Redundant"). 有关详细信息,请参阅 Azure 存储复制For more information, see Azure storage replication.

    • 订阅:指定要用于新存储帐户的 Azure 订阅。Subscription: Specifies the Azure subscription that you want to use for the new storage account.

    • 位置:指定将创建存储帐户的位置(例如“美国西部”)。Location: Specifies the location where your storage account will be created (for example, "West US").

    • 资源组:指定虚拟机的资源组。Resource Group: Specifies the resource group for your virtual machine. 选择以下选项之一:Select one of the following options:

      • 新建:指定要创建新的资源组。Create new: Specifies that you want to create a new resource group.
      • 使用现有项:指定将从与 Azure 帐户关联的资源组列表中进行选择。Use existing: Specifies that you will select from a list of resource groups that are associated with your Azure account.
  4. 指定了上述所有选项后,单击“确定” 。When you have specified all of the preceding options, click OK.

在 IntelliJ 中创建存储容器Create a storage container in IntelliJ

若要使用 Azure 资源管理器创建存储容器,请执行以下操作:To create a storage container by using the Azure Explorer, do the following:

  1. 在 Azure 资源管理器视图中,右键单击要在其中创建容器的存储帐户,并单击“创建 Blob 容器”。 In the Azure Explorer view, right-click the storage account where you want to create a container, and then click Create blob container.

    “创建 blob 容器”命令

  2. 在“创建 Blob 容器” 对话框中,指定容器的名称,并单击“确定” 。In the Create blob container dialog box, specify the name for your container, and then click OK. 有关命名存储容器的详细信息,请参阅命名和引用容器、Blob 和元数据For more information about naming storage containers, see Naming and referencing containers, blobs, and metadata.

    “创建存储容器”对话框

删除 IntelliJ 中的存储容器Delete a storage container in IntelliJ

若要使用 Azure 资源管理器删除存储容器,请执行以下操作:To delete a storage container by using the Azure Explorer, do the following:

  1. 在 Azure 资源管理器视图中,右键单击存储容器,然后单击“删除” 。In the Azure Explorer view, right-click the storage container, and then click Delete.

    “删除存储容器”命令

  2. 在确认窗口中,单击“是” 。In the confirmation window, click Yes.

    删除存储容器确认窗口

删除 IntelliJ 中的存储帐户Delete a storage account in IntelliJ

若要使用 Azure 资源管理器删除存储帐户,请执行以下操作:To delete a storage account by using the Azure Explorer, do the following:

  1. 在“Azure 资源管理器”视图中,右键单击存储帐户,并选择“删除”。 In the Azure Explorer view, right-click the storage account, and then select Delete.

    “删除存储帐户”菜单

  2. 在确认窗口中,单击“是”。 In the confirmation window, click Yes.

    删除存储帐户确认窗口

后续步骤Next steps

有关 Azure 存储帐户大小和定价的详细信息,请参阅以下资源:For more information about Azure storage accounts, sizes, and pricing, see the following resources:

若要报告 bug 或请求新功能,请在我们的 GitHub 存储库上创建问题。To report bugs or request new features, create issues on our GitHub repository. 或者,在 Stack Overflow 上使用标记 azure-java-tools 提出问题。Or, ask questions on Stack Overflow with tag azure-java-tools.

若要详细了解如何将 Java 与 Azure 配合使用,请参阅以下链接:For more information about using Java with Azure, see the following links: