您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

教程:查看个人 Azure 账单Tutorial: Review your individual Azure bill

本文将帮助你了解和查看 Azure 账单。This article helps you understand and review your Azure bill. 通常情况下,你通过电子邮件接收每个计费周期的发票。For each billing period, you normally receive an invoice in email. 发票代表 Azure 账单。The invoice is a representation of your Azure bill. Azure 门户中提供了发票上的成本信息。The same cost information on the invoice is available in the Azure portal. 本教程在 Azure 门户中将发票与每日使用情况明细文件和成本分析进行比较。In this tutorial you will compare your invoice with the detailed daily usage file and with cost analysis in the Azure portal.

本教程仅适用于具有个人订阅的 Azure 客户。This tutorial applies only to Azure customers with an individual subscription. 常见的个人订阅是直接从 Azure 网站购买的,其费率为即用即付费率。Common individual subscriptions are those with pay-as-you-go rates purchased directly from the Azure website.

在本教程中,你将了解如何执行以下操作:In this tutorial, you learn how to:

  • 将已开票费用与使用情况文件进行比较Compare invoiced charges with usage file
  • 在成本分析中比较费用和使用情况Compare charges and usage in cost analysis


必须有付费的 Microsoft Online Services 计划 计费帐户。You must have a paid Microsoft Online Services Program billing account. 此帐户在你通过 Azure 网站注册获取 Azure 时创建。The account is created when you sign up for Azure through the Azure website. 例如,如果你有一个采用即用即付费率的帐户,或者你是 Visual Studio 订阅者For example, if you have an account with pay-as-you-go rates or if you are a Visual Studio subscriber.

仅当超过每月信用额度时,才会创建 Azure 免费帐户的发票。Invoices for Azure Free Accounts are created only when the monthly credit amount is exceeded.

在时间上必须超过 30 天,从订阅 Azure 那天算起。It must be more than 30 days from the day that you subscribed to Azure. 在发票周期结束时,Azure 会向你开具账单。Azure bills you at the end of your invoice period.

登录 AzureSign in to Azure

将已开票费用与使用情况文件进行比较Compare invoiced charges with usage file

若要比较使用情况和成本,第一步是下载发票和使用情况文件。The first step to compare usage and costs is to download your invoice and usage files. 使用情况明细 CSV 文件按计费周期和每日使用情况显示费用信息。The detailed usage CSV file shows your charges by billing period and daily usage. 它不包含任何税务信息。It doesn't include any tax information. 若要下载文件,你必须是帐户管理员或拥有“所有者”角色。In order to download the files, you must be an account administrator or have the Owner role.

在 Azure 门户的搜索框中键入“订阅” ,然后单击“订阅”。In the Azure portal, type subscriptions in the search box and then click Subscriptions.


在订阅列表中,单击订阅。In the list of subscriptions, click the subscription.

在“计费”下,单击“发票”。 Under Billing, click Invoices.

在发票列表中,查找要下载的发票,然后单击下载符号。In the list of invoices, look for the one that you want to download then click the download symbol. 可能需要更改时间跨度才能查看较旧的发票。You might need to change the timespan to view older invoices. 生成使用情况详细信息文件和发票可能需要几分钟的时间。It might take a few minutes to generate the usage details file and invoice.


在“下载使用情况 + 费用”窗口中,单击“下载 csv”和“下载发票”。 In the Download Usage + Charges window, click Download csv and Download invoice.


如果显示“不可用”,可能有多种原因导致你看不到使用情况详细信息或发票: If it says Not available there are several reasons that you don't see usage details or an invoice:

  • 从订阅 Azure 开始算还不到 30 天。It's less than 30 days from the day you subscribed to Azure.
  • 此计费周期没有任何使用量。There's no usage for the billing period.
  • 尚未生成发票。An invoice isn't generated yet. 请等到计费周期结束。Wait until the end of the billing period.
  • 你无权查看发票。You don't have permission to view invoices. 除非你是帐户管理员,否则可能看不到旧发票。You might not see old invoices unless you're the Account Administrator. 若要详细了解如何获取计费信息,请参阅使用角色管理对 Azure 计费的访问To learn more about getting access to billing information, see Manage access to Azure billing using roles.
  • 如果使用免费试用版,或者尚未超过订阅的每月信用额度,则不会收到发票,除非你有 Microsoft 客户协议。If you have a Free Trial or a monthly credit amount with your subscription that you didn't exceed, you won't get an invoice unless you have a Microsoft Customer Agreement.

接下来,查看费用。Next, you review the charges. 发票显示税费值和使用费。Your invoice shows values for taxes and your usage charges.

Azure 发票示例

打开已下载的 CSV 使用情况文件。Open the CSV usage file that you downloaded. 在文件的末尾,将“成本” 列中所有项的值求和。At the end of the file, sum the value for all items in the Cost column.


求和“成本” 值应与发票上的“使用费”成本 精确匹配。The summed Cost value should match precisely to the usage charges cost on your invoice.

在计量级别显示使用费。Your usage charges are displayed at the meter level. 下方的术语在发票和使用情况明细文件中表示同一事物。The following terms mean the same thing in both the invoice and the detailed usage file. 例如,发票中的计费周期等同于使用情况明细文件中的计费周期。For example, the billing cycle on the invoice is the same as the billing period shown in the detailed usage file.

发票(PDF)Invoice (PDF) 使用情况明细 (CSV)Detailed usage (CSV)
计费周期Billing cycle BillingPeriodStartDate BillingPeriodEndDateBillingPeriodStartDate BillingPeriodEndDate
名称Name 测定仪类别Meter Category
类型Type 测定仪子类别Meter Subcategory
资源Resource MeterNameMeterName
区域Region MeterRegionMeterRegion
已耗用Consumed 数量Quantity
附送Included 附送数量Included Quantity
可计费Billable 超额数量Overage Quantity
费率Rate EffectivePriceEffectivePrice
Value 成本Cost

发票的“使用费”部分显示计费周期内已使用的每种计量的总值(成本) 。The Usage Charges section of your invoice shows the total value (cost) for each meter that was consumed during your billing period. 例如,下图显示用于“P10 磁盘”资源的 Azure 存储服务的使用费。 For example, the following image shows a usage charge for the Azure Storage service for the P10 Disks resource.


在 CSV 使用情况文件中,按发票上显示的相应资源的 MeterName 进行筛选。In your CSV usage file, filter by MeterName for the corresponding Resource shown on you invoice. 然后,对列中项的“成本” 值求和。Then, sum the Cost value for items in the column. 下面是一个示例。Here's an example.

MeterName 的使用情况文件求和值

求和“成本” 值应与发票上已收费的单项资源的“使用费”成本 精确匹配。The summed Cost value should match precisely to the usage charges cost for the individual resource charged on your invoice.

有关详细信息,请参阅了解 Azure 发票了解 Azure 详细使用情况For more information, see Understand your Azure invoice and Understand your Azure detailed usage.

在成本分析中比较费用和使用情况Compare charges and usage in cost analysis

还可以通过 Azure 门户中的成本分析验证费用。Cost analysis in the Azure portal can also help you verify your charges. 若要快速了解已开票的使用情况和费用,请从 Azure 门户中的“订阅”页面选择订阅。To get a quick overview of your invoiced usage and charges, select your subscription from the Subscriptions page in the Azure portal. 接下来单击“成本分析” ,然后在“视图”列表中单击“发票详细信息”。 Next, click Cost analysis and then in the views list, click Invoice details.


接下来,在日期范围列表中选择发票的时间段。Next, in the date range list, select a time period for you invoice. 为发票编号添加一个筛选器,然后选择与发票上的 InvoiceNumber 匹配的编号。Add a filter for invoice number and then select the InvoiceNumber that matches the one on your invoice. 成本分析显示已开票项目的成本详细信息。Cost analysis shows cost details for your invoiced items.


成本分析中显示的成本应与发票上已收费的单项资源的“使用费”成本精确匹配。 Costs shown in cost analysis should match precisely to the usage charges cost for the individual resource charged on your invoice.


外部服务单独计费External services billed separately

外部服务或市场费用针对的是由第三方软件供应商创建的资源。External services or marketplace charges are for resources that have been created by third-party software vendors. 这些资源可以从 Azure 市场使用。Those resources are available for use from the Azure Marketplace. 例如,Barracuda 防火墙是由第三方提供的 Azure 市场资源。For example, a Barracuda Firewall is an Azure Marketplace resource offered by a third-party. 此防火墙的所有费用及其对应的计量指标都将显示为外部服务费用。All charges for the firewall and its corresponding meters appear as external service charges.

外部服务单独计费。External service charges are billed separately. Azure 发票上不会记录该费用。The charges don't show up on your Azure invoice. 若要了解详细信息,请参阅了解 Azure 外部服务收费To learn more, see Understand your Azure external service charges.

资源按使用计量计费Resources billed by usage meters

Azure 不直接根据资源成本计费。Azure doesn't directly bill based on the resource cost. 资源费用按一个或多个计量来计算。Charges for a resource are calculated by using one or more meters. 计量用于跟踪资源整个生存期的使用情况。Meters are used to track a resource’s usage throughout its lifetime. 随后会使用这些计量指标来计算费用。These meters are then used to calculate the bill.

创建单个 Azure 资源(例如虚拟机)时,会创建一个或多个计量实例。When you create a single Azure resource, like a virtual machine, it has one or more meter instances created. 计量用于跟踪资源在一段时间内的使用情况。Meters are used to track the usage of the resource over time. 每个计量都会发送使用情况记录,这些记录由 Azure 用来计算账单费用。Each meter emits usage records that are used by Azure to calculate the bill.

例如,如果在 Azure 中创建了一个虚拟机 (VM),那么可能会创建以下计量指标来跟踪其使用情况:For example, a single virtual machine (VM) created in Azure may have the following meters created to track its usage:

  • 计算小时数Compute Hours
  • IP 地址小时数IP Address Hours
  • 入站数据传输Data Transfer In
  • 出站数据传输Data Transfer Out
  • 标准托管磁盘Standard Managed Disk
  • 标准托管磁盘操作数Standard Managed Disk Operations
  • 标准 IO 磁盘Standard IO-Disk
  • 标准 IO 块 Blob 读取Standard IO-Block Blob Read
  • 标准 IO 块 Blob 写入Standard IO-Block Blob Write
  • 标准 IO 块 Blob 删除Standard IO-Block Blob Delete

创建 VM 后,每个计量器都会开始发出使用情况记录。When the VM is created, each meter begins emitting usage records. 此使用情况和计量的价格在 Azure 计量系统中进行跟踪。This usage and the meter's price is tracked in the Azure metering system.

可以在使用情况 CSV 文件中查看用于计算账单的计量。You can see the meters that were used to calculate your bill in the usage CSV file.

支付账单Pay your bill

如果已将信用卡设置为付款方式,则会在计费周期结束后的 10 天内自动付款。If you set up a credit card as your payment method, the payment is charged automatically within 10 days after the billing period ends. 在信用卡对帐单上,行项会显示 MSFT AzureOn your credit card statement, the line item would say MSFT Azure.

若要更改用于付款的信用卡,请参阅添加、更新或删除用于 Azure 的信用卡To change the credit card that's charged, see Add, update, or remove a credit card for Azure.

如果按发票付款,可将款项寄送到发票底部列出的地点。If you pay by invoice, send your payment to the location listed at the bottom of your invoice.

若要查看付款状态,请创建支持票证To check the status of your payment, create a support ticket.

后续步骤Next steps

在本教程中,你了解了如何执行以下操作:In this tutorial, you learned how to:

  • 将已开票费用与使用情况文件进行比较Compare invoiced charges with usage file
  • 在成本分析中比较费用和使用情况Compare charges and usage in cost analysis

完成本快速入门,开始使用成本分析。Complete the quickstart to start using cost analysis.