管理 Azure Stack 存储帐户Manage Azure Stack storage accounts

了解如何管理 Azure Stack 存储帐户。Learn how to manage Azure Stack storage accounts. 根据业务需求查找、恢复和回收存储容量。Find, recover, and reclaim storage capacity based on business needs.

查找存储帐户Find a storage account

可在 Azure Stack 中通过以下步骤查看区域中的存储帐户列表:The list of storage accounts in the region can be viewed in Azure Stack by following these steps:

  1. 登录到管理员门户Sign in to the administrator portal.

  2. 选择“所有服务” > “存储” > “存储帐户”。 Select All services > Storage > Storage accounts.

    Azure Stack 存储帐户

默认显示前 10 个帐户。By default, the first 10 accounts are displayed. 可以单击列表底部的“加载更多”链接来提取更多的帐户。 You can choose to fetch more by clicking the Load more link at the bottom of the list.


如果只想查看特定的存储帐户,可以只筛选并提取相关的帐户If you're interested in a particular storage account - you can filter and fetch the relevant accounts only.

筛选帐户:To filter for accounts:

  1. 选择窗格顶部的“筛选”。 Select Filter at the top of the pane.

  2. 在“筛选”窗格中,可以指定“帐户名”、“订阅 ID”或“状态”,以调整要显示的存储帐户列表。 On the Filter pane, it allows you to specify account name, subscription ID, or status to fine-tune the list of storage accounts to be displayed. 适当地使用筛选器。Use them as appropriate.

  3. 键入时,列表会自动应用筛选器。As you type, the list will automatically apply the filter.

    筛选 Azure Stack 存储帐户

  4. 若要重置筛选器,请选择“筛选”、清除选择内容,然后更新。 To reset the filter: select Filter, clear out the selections and update.

使用搜索文本框(位于存储帐户列表窗格的顶部)可以突出显示帐户列表中选择的文本。The search text box (on the top of the storage accounts list pane) lets you highlight the selected text in the list of accounts. 无法轻松获取完整名称或 ID 时,可以使用此功能。You can use this when the full name or ID isn't easily available.

可在此处使用任意文本,帮助找到想要查看的帐户。You can use free text here to help find the account you're interested in.

查找 Azure Stack 存储帐户

查看帐户详细信息Look at account details

找到想要查看的帐户后,可以选择特定帐户查看特定详细信息。Once you've located the accounts you're interested in viewing, you can select the particular account to view certain details. 此时将打开新的窗格,其中包含帐户详细信息。A new pane opens with the account details. 这些详细信息包括帐户类型、创建时间、位置等。These details include the kind of account, creation time, location, and so on.


恢复已删除的帐户Recover a deleted account

有时,我们需要恢复已删除的帐户。You may be in a situation where you need to recover a deleted account.

在 Azure Stack 中,可通过一种简单的方法实现此目的:In Azure Stack, there's a simple way to do that:

  1. 浏览到存储帐户列表。Browse to the storage accounts list. 有关详细信息,请参阅本文顶部的查找存储帐户For more information, see Find a storage account at the top of this article.

  2. 在列表中找到该特定帐户。Locate that particular account in the list. 可能需要执行筛选。You may need to filter.

  3. 检查帐户的状态。 Check the state of the account. 状态应显示为“已删除”。 It should say Deleted.

  4. 选择该帐户,这会打开帐户详细信息窗格。Select the account, which opens the account details pane.

  5. 在此窗格的顶部找到“恢复”按钮,并选择它。 On top of this pane, locate the Recover button and select it.

  6. 请选择“是”以确认。 Select Yes to confirm.


  7. 恢复操作正在进行。The recovery is now in process. 等待表明操作成功的指示。Wait for an indication that it was successful. 也可以选择门户顶部的“铃铛”图标查看进度指示。You can also select the "bell" icon at the top of the portal to view progress indications.


    成功同步已恢复的帐户之后,可以再次使用该帐户。Once the recovered account is successfully synchronized, it can be used again.

注意事项Some Gotchas

  • 已删除的帐户显示“超出保留期”状态。 Your deleted account shows state as out of retention.

    超出保留期意味着已删除的帐户超出了保留期,可能无法恢复。Out of retention means that the deleted account has exceeded the retention period and may not be recoverable.

  • 已删除的帐户未显示在帐户列表中。Your deleted account doesn't show in the accounts list.

    删除的帐户已作为垃圾回收后,该帐户可能不会显示在帐户列表中。You account may not show in the account list when the deleted account has already been garbage collected. 在此情况下,无法恢复该帐户。In this case, it can't be recovered. 有关详细信息,请参阅本文中的回收容量For more information, see Reclaim capacity in this article.

设置保留期Set the retention period

云操作员可以使用保留期设置来指定时间间隔天数(0 到 9999 天),在此期间,任何已删除的帐户都有可能能够恢复。The retention period setting allows a cloud operator to specify a time period in days (between 0 and 9999 days) during which any deleted account can potentially be recovered. 默认保留期设置为 0 天。The default retention period is set to 0 days. 将值设置为“0”表示任何已删除的帐户会立即超出保留期,并标记为定期进行垃圾回收。Setting the value to "0" means that any deleted account is immediately out of retention and marked for periodic garbage collection.

更改保留期:To change the retention period:

  1. 登录到管理员门户Sign in to the administrator portal.

  2. 在“管理” 下选择“所有服务” > “区域管理” 。Select All services > Region management under Administration.

  3. 选择“资源提供程序” > “存储” > “设置”。Select Resources providers > Storage > Settings. 路径为主目录 > 区域 - 资源提供程序 > 存储。Your path is Home > region - Resource providers > Storage.

  4. 选择“配置”,然后编辑保留期值。 Select Configuration then edit the retention period value.

    设置天数并保存。Set the number of days and then save it.

    此值立即生效,并且是针对整个区域设置的。This value is immediately effective and is set for your entire region.


回收容量Reclaim capacity

使用保留期的负面影响之一是,已删除的帐户在超出保留期之前会一直消耗容量。One of the side effects of having a retention period is that a deleted account continues to consume capacity until it comes out of the retention period. 云操作员可能需要通过某种方式,在保留期尚未到来之前回收已删除帐户占用的空间。As a cloud operator, you may need a way to reclaim the deleted account space even though the retention period hasn't yet expired.

可以使用门户或 PowerShell 来回收容量。You can reclaim capacity using either the portal or PowerShell.

使用门户回收容量:To reclaim capacity using the portal:

  1. 导航到存储帐户窗格。Navigate to the storage accounts pane. 请参阅“查找存储帐户”。See Find a storage account.

  2. 选择窗格顶部的“回收空间”。 Select Reclaim space at the top of the pane.

  3. 阅读消息,并选择“确定”。 Read the message and then select OK.


  4. 等待成功通知。Wait for success notification. 查看门户中的铃铛图标。See the bell icon on the portal.


  5. 刷新“存储帐户”页。Refresh the Storage accounts page. 已删除的帐户已被清除,因此不再显示在列表中。The deleted accounts are no longer shown in the list because they've been purged.

也可以使用 PowerShell 显式替代保留期,并立即回收容量。You can also use PowerShell to explicitly override the retention period and immediately reclaim capacity.

使用 PowerShell 回收容量:To reclaim capacity using PowerShell:

  1. 确认已安装并配置 Azure PowerShell。Confirm that you have Azure PowerShell installed and configured. 如果未安装,请遵照以下说明:If not, use the following instructions:
  2. 运行以下 cmdlet:Run the following cmdlets:


如果运行这些 cmdlet,将会永久删除帐户及其内容。If you run these cmdlets, you permanently delete the account and its contents. 它不可恢复。It's not recoverable. 请慎用此 cmdlet。Use this with care.

    $farm_name = (Get-AzsStorageFarm)[0].name
    Start-AzsReclaimStorageCapacity -FarmName $farm_name

有关详细信息,请参阅 Azure Stack PowerShell 文档For more information, see Azure Stack PowerShell documentation.

后续步骤Next steps