你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Billing BillingAccounts/billingProfiles

Bicep 资源定义

可以使用目标操作部署 billingAccounts/billingProfiles 资源类型:

  • 租户 - 请参阅 租户部署命令

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Billing/billingAccounts/billingProfiles 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Billing/billingAccounts/billingProfiles@2024-04-01' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    billTo: {
      addressLine1: 'string'
      addressLine2: 'string'
      addressLine3: 'string'
      city: 'string'
      companyName: 'string'
      country: 'string'
      district: 'string'
      email: 'string'
      firstName: 'string'
      isValidAddress: bool
      lastName: 'string'
      middleName: 'string'
      phoneNumber: 'string'
      postalCode: 'string'
      region: 'string'
    }
    currentPaymentTerm: {
      endDate: 'string'
      startDate: 'string'
      term: 'string'
    }
    displayName: 'string'
    enabledAzurePlans: [
      {
        productId: 'string'
        skuDescription: 'string'
        skuId: 'string'
      }
    ]
    indirectRelationshipInfo: {
      billingAccountName: 'string'
      billingProfileName: 'string'
      displayName: 'string'
    }
    invoiceEmailOptIn: bool
    invoiceRecipients: [
      'string'
    ]
    poNumber: 'string'
    shipTo: {
      addressLine1: 'string'
      addressLine2: 'string'
      addressLine3: 'string'
      city: 'string'
      companyName: 'string'
      country: 'string'
      district: 'string'
      email: 'string'
      firstName: 'string'
      isValidAddress: bool
      lastName: 'string'
      middleName: 'string'
      phoneNumber: 'string'
      postalCode: 'string'
      region: 'string'
    }
    soldTo: {
      addressLine1: 'string'
      addressLine2: 'string'
      addressLine3: 'string'
      city: 'string'
      companyName: 'string'
      country: 'string'
      district: 'string'
      email: 'string'
      firstName: 'string'
      isValidAddress: bool
      lastName: 'string'
      middleName: 'string'
      phoneNumber: 'string'
      postalCode: 'string'
      region: 'string'
    }
    tags: {
      {customized property}: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

AzurePlan

名字 描述 价值
productId 唯一标识产品的 ID。 字符串
skuDescription SKU 说明。 字符串
skuId 唯一标识 SKU 的 ID。 字符串

BillingProfileProperties

名字 描述 价值
billTo 帐单地址。 BillingProfilePropertiesBillTo
currentPaymentTerm 计费配置文件的当前付款期限。 BillingProfilePropertiesCurrentPaymentTerm
displayName 计费配置文件的名称。 字符串
enabledAzurePlans 有关已启用的 Azure 计划的信息。 AzurePlan[]
indirectRelationshipInfo 标识与间接购买运动中的另一个计费配置文件关联的计费配置文件。 BillingProfilePropertiesIndirectRelationshipInfo
invoiceEmailOptIn 用于控制是否通过电子邮件发送计费配置文件发票的标志。 bool
invoiceRecipients 要通过电子邮件接收计费配置文件发票的电子邮件地址列表。 string[]
poNumber 将在为计费配置文件生成的发票上显示的默认采购订单编号。 字符串
shipTo 产品寄送位置的默认地址,或者正在使用服务。 如果未为产品或订阅指定发货,则将使用此地址。 BillingProfilePropertiesShipTo
soldTo 负责计费帐户的个人或组织的地址。 BillingProfilePropertiesSoldTo
标签 与资源关联的元数据字典。 支持的最大键/值长度为 256 个字符。 键/值不应为空值,也不应为 null。 键不能包含 <> % & \ ? / BillingProfilePropertiesTags

BillingProfilePropertiesBillTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesCurrentPaymentTerm

名字 描述 价值
endDate 定义的“付款期限”将结束且始终采用 UTC 的日期。 字符串
startDate 定义的“付款期限”生效的日期,并且始终采用 UTC 格式。 字符串
术语 表示 netXX 格式的持续时间。 始终以天为单位。 字符串

BillingProfilePropertiesIndirectRelationshipInfo

名字 描述 价值
billingAccountName 用于间接运动的合作伙伴或客户的计费帐户名称。 字符串
billingProfileName 合作伙伴或客户的计费配置文件名称,用于间接动议。 字符串
displayName 间接运动的合作伙伴或客户的显示名称。 字符串

BillingProfilePropertiesShipTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesSoldTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesTags

名字 描述 价值

Microsoft.Billing/billingAccounts/billingProfiles

名字 描述 价值
名字 资源名称 字符串

约束:
模式 = ^[a-zA-Z\d-_]{1,128}$ (必需)
父母 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源外部的子资源
类型资源的符号名称:billingAccounts
性能 计费配置文件。 BillingProfileProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

ProxyResourceWithTags

名字 描述 价值

ARM 模板资源定义

可以使用目标操作部署 billingAccounts/billingProfiles 资源类型:

  • 租户 - 请参阅 租户部署命令

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Billing/billingAccounts/billingProfiles 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Billing/billingAccounts/billingProfiles",
  "apiVersion": "2024-04-01",
  "name": "string",
  "properties": {
    "billTo": {
      "addressLine1": "string",
      "addressLine2": "string",
      "addressLine3": "string",
      "city": "string",
      "companyName": "string",
      "country": "string",
      "district": "string",
      "email": "string",
      "firstName": "string",
      "isValidAddress": "bool",
      "lastName": "string",
      "middleName": "string",
      "phoneNumber": "string",
      "postalCode": "string",
      "region": "string"
    },
    "currentPaymentTerm": {
      "endDate": "string",
      "startDate": "string",
      "term": "string"
    },
    "displayName": "string",
    "enabledAzurePlans": [
      {
        "productId": "string",
        "skuDescription": "string",
        "skuId": "string"
      }
    ],
    "indirectRelationshipInfo": {
      "billingAccountName": "string",
      "billingProfileName": "string",
      "displayName": "string"
    },
    "invoiceEmailOptIn": "bool",
    "invoiceRecipients": [ "string" ],
    "poNumber": "string",
    "shipTo": {
      "addressLine1": "string",
      "addressLine2": "string",
      "addressLine3": "string",
      "city": "string",
      "companyName": "string",
      "country": "string",
      "district": "string",
      "email": "string",
      "firstName": "string",
      "isValidAddress": "bool",
      "lastName": "string",
      "middleName": "string",
      "phoneNumber": "string",
      "postalCode": "string",
      "region": "string"
    },
    "soldTo": {
      "addressLine1": "string",
      "addressLine2": "string",
      "addressLine3": "string",
      "city": "string",
      "companyName": "string",
      "country": "string",
      "district": "string",
      "email": "string",
      "firstName": "string",
      "isValidAddress": "bool",
      "lastName": "string",
      "middleName": "string",
      "phoneNumber": "string",
      "postalCode": "string",
      "region": "string"
    },
    "tags": {
      "{customized property}": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

AzurePlan

名字 描述 价值
productId 唯一标识产品的 ID。 字符串
skuDescription SKU 说明。 字符串
skuId 唯一标识 SKU 的 ID。 字符串

BillingProfileProperties

名字 描述 价值
billTo 帐单地址。 BillingProfilePropertiesBillTo
currentPaymentTerm 计费配置文件的当前付款期限。 BillingProfilePropertiesCurrentPaymentTerm
displayName 计费配置文件的名称。 字符串
enabledAzurePlans 有关已启用的 Azure 计划的信息。 AzurePlan[]
indirectRelationshipInfo 标识与间接购买运动中的另一个计费配置文件关联的计费配置文件。 BillingProfilePropertiesIndirectRelationshipInfo
invoiceEmailOptIn 用于控制是否通过电子邮件发送计费配置文件发票的标志。 bool
invoiceRecipients 要通过电子邮件接收计费配置文件发票的电子邮件地址列表。 string[]
poNumber 将在为计费配置文件生成的发票上显示的默认采购订单编号。 字符串
shipTo 产品寄送位置的默认地址,或者正在使用服务。 如果未为产品或订阅指定发货,则将使用此地址。 BillingProfilePropertiesShipTo
soldTo 负责计费帐户的个人或组织的地址。 BillingProfilePropertiesSoldTo
标签 与资源关联的元数据字典。 支持的最大键/值长度为 256 个字符。 键/值不应为空值,也不应为 null。 键不能包含 <> % & \ ? / BillingProfilePropertiesTags

BillingProfilePropertiesBillTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesCurrentPaymentTerm

名字 描述 价值
endDate 定义的“付款期限”将结束且始终采用 UTC 的日期。 字符串
startDate 定义的“付款期限”生效的日期,并且始终采用 UTC 格式。 字符串
术语 表示 netXX 格式的持续时间。 始终以天为单位。 字符串

BillingProfilePropertiesIndirectRelationshipInfo

名字 描述 价值
billingAccountName 用于间接运动的合作伙伴或客户的计费帐户名称。 字符串
billingProfileName 合作伙伴或客户的计费配置文件名称,用于间接动议。 字符串
displayName 间接运动的合作伙伴或客户的显示名称。 字符串

BillingProfilePropertiesShipTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesSoldTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesTags

名字 描述 价值

Microsoft.Billing/billingAccounts/billingProfiles

名字 描述 价值
apiVersion API 版本 '2024-04-01'
名字 资源名称 字符串

约束:
模式 = ^[a-zA-Z\d-_]{1,128}$ (必需)
性能 计费配置文件。 BillingProfileProperties
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 “Microsoft.Billing/billingAccounts/billingProfiles”

ProxyResourceWithTags

名字 描述 价值

用法示例

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署 billingAccounts/billingProfiles 资源类型:

  • 租户

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Billing/billingAccounts/billingProfiles 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Billing/billingAccounts/billingProfiles@2024-04-01"
  name = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      billTo = {
        addressLine1 = "string"
        addressLine2 = "string"
        addressLine3 = "string"
        city = "string"
        companyName = "string"
        country = "string"
        district = "string"
        email = "string"
        firstName = "string"
        isValidAddress = bool
        lastName = "string"
        middleName = "string"
        phoneNumber = "string"
        postalCode = "string"
        region = "string"
      }
      currentPaymentTerm = {
        endDate = "string"
        startDate = "string"
        term = "string"
      }
      displayName = "string"
      enabledAzurePlans = [
        {
          productId = "string"
          skuDescription = "string"
          skuId = "string"
        }
      ]
      indirectRelationshipInfo = {
        billingAccountName = "string"
        billingProfileName = "string"
        displayName = "string"
      }
      invoiceEmailOptIn = bool
      invoiceRecipients = [
        "string"
      ]
      poNumber = "string"
      shipTo = {
        addressLine1 = "string"
        addressLine2 = "string"
        addressLine3 = "string"
        city = "string"
        companyName = "string"
        country = "string"
        district = "string"
        email = "string"
        firstName = "string"
        isValidAddress = bool
        lastName = "string"
        middleName = "string"
        phoneNumber = "string"
        postalCode = "string"
        region = "string"
      }
      soldTo = {
        addressLine1 = "string"
        addressLine2 = "string"
        addressLine3 = "string"
        city = "string"
        companyName = "string"
        country = "string"
        district = "string"
        email = "string"
        firstName = "string"
        isValidAddress = bool
        lastName = "string"
        middleName = "string"
        phoneNumber = "string"
        postalCode = "string"
        region = "string"
      }
      tags = {
        {customized property} = "string"
      }
    }
  })
}

属性值

AzurePlan

名字 描述 价值
productId 唯一标识产品的 ID。 字符串
skuDescription SKU 说明。 字符串
skuId 唯一标识 SKU 的 ID。 字符串

BillingProfileProperties

名字 描述 价值
billTo 帐单地址。 BillingProfilePropertiesBillTo
currentPaymentTerm 计费配置文件的当前付款期限。 BillingProfilePropertiesCurrentPaymentTerm
displayName 计费配置文件的名称。 字符串
enabledAzurePlans 有关已启用的 Azure 计划的信息。 AzurePlan[]
indirectRelationshipInfo 标识与间接购买运动中的另一个计费配置文件关联的计费配置文件。 BillingProfilePropertiesIndirectRelationshipInfo
invoiceEmailOptIn 用于控制是否通过电子邮件发送计费配置文件发票的标志。 bool
invoiceRecipients 要通过电子邮件接收计费配置文件发票的电子邮件地址列表。 string[]
poNumber 将在为计费配置文件生成的发票上显示的默认采购订单编号。 字符串
shipTo 产品寄送位置的默认地址,或者正在使用服务。 如果未为产品或订阅指定发货,则将使用此地址。 BillingProfilePropertiesShipTo
soldTo 负责计费帐户的个人或组织的地址。 BillingProfilePropertiesSoldTo
标签 与资源关联的元数据字典。 支持的最大键/值长度为 256 个字符。 键/值不应为空值,也不应为 null。 键不能包含 <> % & \ ? / BillingProfilePropertiesTags

BillingProfilePropertiesBillTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesCurrentPaymentTerm

名字 描述 价值
endDate 定义的“付款期限”将结束且始终采用 UTC 的日期。 字符串
startDate 定义的“付款期限”生效的日期,并且始终采用 UTC 格式。 字符串
术语 表示 netXX 格式的持续时间。 始终以天为单位。 字符串

BillingProfilePropertiesIndirectRelationshipInfo

名字 描述 价值
billingAccountName 用于间接运动的合作伙伴或客户的计费帐户名称。 字符串
billingProfileName 合作伙伴或客户的计费配置文件名称,用于间接动议。 字符串
displayName 间接运动的合作伙伴或客户的显示名称。 字符串

BillingProfilePropertiesShipTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesSoldTo

名字 描述 价值
addressLine1 地址行 1。 字符串

约束:
最小长度 = 1 (必需)
addressLine2 地址行 2。 字符串
addressLine3 地址行 3。 字符串
城市 地址城市。 字符串
companyName 公司名称。 MCA 个人版(即用即付)可选。 字符串
国家 国家/地区代码使用 ISO 3166-1 Alpha-2 格式。 字符串

约束:
最小长度 = 1 (必需)
地址区域。 字符串
电子邮件 电子邮件地址。 字符串
firstName 名字。 MCA Enterprise 可选。 字符串
isValidAddress 指示地址是否不完整。 bool
lastName 姓。 MCA Enterprise 可选。 字符串
middleName 中间名称。 字符串
phoneNumber 电话号码。 字符串
postalCode 邮政编码。 字符串
地区 地址区域。 字符串

BillingProfilePropertiesTags

名字 描述 价值

Microsoft.Billing/billingAccounts/billingProfiles

名字 描述 价值
名字 资源名称 字符串

约束:
模式 = ^[a-zA-Z\d-_]{1,128}$ (必需)
parent_id 此资源的父资源的 ID。 类型资源的 ID:billingAccounts
性能 计费配置文件。 BillingProfileProperties
标签 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft.Billing/billingAccounts/billingProfiles@2024-04-01”

ProxyResourceWithTags

名字 描述 价值