如何创建 Azure 高级文件共享How to create an Azure premium file share

高级文件共享在固态磁盘 (SSD) 存储介质上提供,可用于 IO 密集型工作负荷,包括宿主数据库和高性能计算 (HPC)。Premium file shares are offered on solid-state disk (SSD) storage media and are useful for IO-intensive workloads, including hosting databases and high-performance computing (HPC). 高级文件共享托管在特殊用途的存储帐户类型(称为 FileStorage 帐户)中。Premium file shares are hosted in a special purpose storage account kind, called a FileStorage account. 高级文件共享旨在用于高性能和企业级应用程序,可稳定提供低延迟、高 IOPS 和高吞吐量的共享。Premium file shares are designed for high performance and enterprise scale applications, providing consistent low latency, high IOPS, and high throughput shares.

本文介绍了如何使用 Azure 门户、Azure PowerShell 模块和 Azure CLI 创建此新的帐户类型。This article shows you how to create this new account type using the Azure portal, Azure PowerShell module, and the Azure CLI.

先决条件Prerequisites

创建 FileStorage 存储帐户Create a FileStorage storage account

每个存储帐户都必须属于 Azure 资源组。Every storage account must belong to an Azure resource group. 资源组是对 Azure 资源进行分组的逻辑容器。A resource group is a logical container for grouping your Azure services. 在创建存储帐户时,可以选择创建新的资源组,也可以使用现有资源组。When you create a storage account, you have the option to either create a new resource group, or use an existing resource group. 高级文件共享需要一个 FileStorage 帐户。Premium file shares require a FileStorage account.

登录 AzureSign in to Azure

登录到 Azure 门户Sign in to the Azure portal.

现在可以创建存储帐户。Now you're ready to create your storage account.

  1. 在 Azure 门户中,选择左侧菜单中的“存储帐户”。In the Azure portal, select Storage Accounts on the left menu.

    Azure 门户主页 - 选择存储帐户

  2. 在显示的“存储帐户”窗口中,选择“添加”。 On the Storage Accounts window that appears, choose Add.

  3. 选择要在其中创建存储帐户的订阅。Select the subscription in which to create the storage account.

  4. 在“资源组”字段下,选择“新建”。Under the Resource group field, select Create new. 输入新资源组的名称,如下图中所示。Enter a name for your new resource group, as shown in the following image.

  5. 然后,输入存储帐户的名称。Next, enter a name for your storage account. 所选名称在 Azure 中必须唯一。The name you choose must be unique across Azure. 该名称还必须为 3 到 24 个字符,并且只能包含数字和小写字母。The name also must be between 3 and 24 characters in length, and can include numbers and lowercase letters only.

  6. 选择存储帐户的位置或使用默认位置。Select a location for your storage account, or use the default location.

  7. 对于“性能”,请选择“高级”。 For Performance select Premium.

    必须选择“高级”,“FileStorage”才会成为“帐户类型”下拉列表中的可用选项。You must select Premium for FileStorage to be an available option in the Account kind dropdown.

  8. 依次选择“帐户类型”、“FileStorage”。 Select Account kind and choose FileStorage.

  9. 将“复制”保留设置为默认值“本地冗余存储(LRS)”。 Leave Replication set to its default value of Locally-redundant storage (LRS).

    如何创建高级文件共享的存储帐户

  10. 选择“查看+创建”可查看存储帐户设置并创建帐户。Select Review + Create to review your storage account settings and create the account.

  11. 选择“创建” 。Select Create.

创建存储帐户资源后,请导航到该资源。Once your storage account resource has been created, navigate to it.

创建高级文件共享Create a premium file share

现在,你已创建了一个 FileStorage 帐户,接下来可以在该存储帐户内创建高级文件共享。Now that you've created a FileStorage account, you can create a premium file share within that storage account.

  1. 在存储帐户的左侧菜单中滚动到“文件服务”部分,然后选择“文件”。 In the left menu for the storage account, scroll to the File service section, then select Files.
  2. 选择“文件共享”以创建高级文件共享。Select File share to create a premium file share.
  3. 输入文件共享的名称和所需配额,然后选择“创建”。Enter a name and a desired quota for your file share, then select Create.

备注

预配的共享大小按共享配额指定,文件共享按预配大小计费。Provisioned share sizes is specified by the share quota, file shares are billed on the provisioned size. 有关详细信息,请参阅定价页For more information, see the pricing page.

创建高级文件共享

清理资源Clean up resources

若要清理在本文中创建的资源,请删除资源组。If you would like to clean up the resources created in this article, delete the resource group. 删除资源组也会删除相关联的存储帐户,以及与资源组相关联的任何其他资源。Deleting the resource group also deletes the associated storage account as well as any other resources associated with the resource group.