Microsoft.Billing billingAccounts/billingProfiles

Bicep 資源定義

billingAccounts/billingProfiles 資源類型可以部署到:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄

資源格式

若要建立 Microsoft.Billing/billingAccounts/billingProfiles 資源,請將下列 Bicep 新增至您的範本。

resource symbolicname 'Microsoft.Billing/billingAccounts/billingProfiles@2020-05-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    billTo: {
      addressLine1: 'string'
      addressLine2: 'string'
      addressLine3: 'string'
      city: 'string'
      companyName: 'string'
      country: 'string'
      district: 'string'
      email: 'string'
      firstName: 'string'
      lastName: 'string'
      middleName: 'string'
      phoneNumber: 'string'
      postalCode: 'string'
      region: 'string'
    }
    displayName: 'string'
    enabledAzurePlans: [
      {
        skuId: 'string'
      }
    ]
    invoiceEmailOptIn: bool
    invoiceSections: {
      value: [
        {
          properties: {
            displayName: 'string'
            labels: {}
            tags: {}
          }
        }
      ]
    }
    poNumber: 'string'
    tags: {}
  }
}

屬性值

billingAccounts/billingProfiles

名稱 描述
NAME 資源名稱

瞭解如何在 Bicep 中設定子資源的名稱和類型。
字串 (必要)
父系 (parent) 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源之外宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱:billingAccounts
properties 帳單配置檔的屬性。 BillingProfileProperties

BillingProfileProperties

名稱 描述
billTo 帳單位址。 AddressDetails
displayName 帳單配置檔的名稱。 字串
enabledAzurePlans 已啟用 Azure 方案的相關信息。 AzurePlan[]
invoiceEmailOptIn 旗標,控制帳單配置檔的發票是否透過電子郵件傳送。 bool
invoiceSections 與帳單配置文件相關聯的發票區段。 根據預設,除非在 $expand 中指定,否則不會填入此功能。 InvoiceSectionsOnExpand
poNumber 將出現在帳單配置檔所產生發票上的採購單名稱。 字串
tags 帳單配置檔的標記。 物件 (object)

AddressDetails

名稱 描述
addressLine1 位址行 1。 字串 (必要)
addressLine2 位址行 2。 字串
addressLine3 位址行 3。 字串
城市 位址城市。 字串
companyName 公司名稱。 字串
country 國家/地區代碼使用 ISO2、2 位數格式。 字串 (必要)
行政區 位址區域。 字串
電子郵件 電子郵件地址。 字串
firstName 名字。 字串
lastName 姓氏。 字串
middleName 中間名。 字串
phoneNumber 電話號碼。 字串
postalCode 郵遞區號。 字串
區域 位址區域。 字串

AzurePlan

名稱 描述
skuId SKU 標識碼。 字串

InvoiceSectionsOnExpand

名稱 描述
與帳單配置文件相關聯的發票區段。 InvoiceSection[]

InvoiceSection

名稱 描述
properties 發票區段的屬性。 InvoiceSectionProperties

InvoiceSectionProperties

名稱 描述
displayName 發票區段的名稱。 字串
標籤 與發票區段相關聯的元數據字典。 物件 (object)
tags 與發票區段相關聯的元數據字典。 支援的索引鍵/值長度上限為 256 個字元。 索引鍵/值不應空白值或 Null。 索引鍵不能包含 { } % & \ ? / 物件 (object)

ARM 範本資源定義

billingAccounts/billingProfiles 資源類型可以部署到:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Billing/billingAccounts/billingProfiles 資源,請將下列 JSON 新增至您的範本。

{
  "type": "Microsoft.Billing/billingAccounts/billingProfiles",
  "apiVersion": "2020-05-01",
  "name": "string",
  "properties": {
    "billTo": {
      "addressLine1": "string",
      "addressLine2": "string",
      "addressLine3": "string",
      "city": "string",
      "companyName": "string",
      "country": "string",
      "district": "string",
      "email": "string",
      "firstName": "string",
      "lastName": "string",
      "middleName": "string",
      "phoneNumber": "string",
      "postalCode": "string",
      "region": "string"
    },
    "displayName": "string",
    "enabledAzurePlans": [
      {
        "skuId": "string"
      }
    ],
    "invoiceEmailOptIn": "bool",
    "invoiceSections": {
      "value": [
        {
          "properties": {
            "displayName": "string",
            "labels": {},
            "tags": {}
          }
        }
      ]
    },
    "poNumber": "string",
    "tags": {}
  }
}

屬性值

billingAccounts/billingProfiles

名稱 描述
類型 資源類型 'Microsoft.Billing/billingAccounts/billingProfiles'
apiVersion 資源 API 版本 '2020-05-01'
NAME 資源名稱

瞭解如何在 JSON ARM 範本中設定子資源的名稱和類型。
需要字串 ()
properties 帳單配置檔的屬性。 BillingProfileProperties

BillingProfileProperties

名稱 描述
billTo 帳單位址。 AddressDetails
displayName 帳單配置檔的名稱。 字串
enabledAzurePlans 已啟用 Azure 方案的相關信息。 AzurePlan[]
invoiceEmailOptIn 旗標,控制是否透過電子郵件傳送帳單配置檔的發票。 bool
invoiceSections 與帳單配置文件相關聯的發票區段。 根據預設,除非在 $expand 中指定,否則不會填入此專案。 InvoiceSectionsOnExpand
poNumber 將出現在帳單配置檔所產生發票上的採購單名稱。 字串
tags 帳單配置檔的標記。 物件 (object)

AddressDetails

名稱 描述
addressLine1 位址行 1。 需要字串 ()
addressLine2 位址行 2。 字串
addressLine3 位址行 3。 字串
城市 位址城市。 字串
companyName 公司名稱。 字串
country 國家/地區代碼使用 ISO2、2 位數格式。 需要字串 ()
行政區 位址區域。 字串
電子郵件 電子郵件地址。 字串
firstName 名字。 字串
lastName 姓氏。 字串
middleName 中間名。 字串
phoneNumber 電話號碼。 字串
postalCode 郵遞區號。 字串
區域 位址區域。 字串

AzurePlan

名稱 描述
skuId SKU 標識碼。 字串

InvoiceSectionsOnExpand

名稱 描述
與帳單配置文件相關聯的發票區段。 InvoiceSection[]

InvoiceSection

名稱 描述
properties 發票區段的屬性。 InvoiceSectionProperties

InvoiceSectionProperties

名稱 描述
displayName 發票區段的名稱。 字串
標籤 與發票區段相關聯的元數據字典。 物件 (object)
tags 與發票區段相關聯的元數據字典。 支援的索引鍵/值長度上限為 256 個字元。 索引鍵/值不應空白值或 Null。 索引鍵不能包含 { } % & \ ? / 物件 (object)

Terraform (AzAPI 提供者) 資源定義

billingAccounts/billingProfiles 資源類型可以部署到:

  • 租用戶

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.Billing/billingAccounts/billingProfiles 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Billing/billingAccounts/billingProfiles@2020-05-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      billTo = {
        addressLine1 = "string"
        addressLine2 = "string"
        addressLine3 = "string"
        city = "string"
        companyName = "string"
        country = "string"
        district = "string"
        email = "string"
        firstName = "string"
        lastName = "string"
        middleName = "string"
        phoneNumber = "string"
        postalCode = "string"
        region = "string"
      }
      displayName = "string"
      enabledAzurePlans = [
        {
          skuId = "string"
        }
      ]
      invoiceEmailOptIn = bool
      invoiceSections = {
        value = [
          {
            properties = {
              displayName = "string"
              labels = {}
              tags = {}
            }
          }
        ]
      }
      poNumber = "string"
      tags = {}
    }
  })
}

屬性值

billingAccounts/billingProfiles

名稱 描述
類型 資源類型 “Microsoft.Billing/billingAccounts/billingProfiles@2020-05-01”
NAME 資源名稱 需要字串 ()
parent_id 此資源父系之資源的標識碼。 類型資源的標識碼:billingAccounts
properties 帳單配置檔的屬性。 BillingProfileProperties

BillingProfileProperties

名稱 描述
billTo 帳單位址。 AddressDetails
displayName 帳單配置檔的名稱。 字串
enabledAzurePlans 已啟用 Azure 方案的相關信息。 AzurePlan[]
invoiceEmailOptIn 旗標,控制是否透過電子郵件傳送帳單配置檔的發票。 bool
invoiceSections 與帳單配置文件相關聯的發票區段。 根據預設,除非在 $expand 中指定,否則不會填入此專案。 InvoiceSectionsOnExpand
poNumber 將出現在帳單配置檔所產生發票上的採購單名稱。 字串
tags 帳單配置檔的標記。 物件 (object)

AddressDetails

名稱 描述
addressLine1 位址行 1。 需要字串 ()
addressLine2 位址行 2。 字串
addressLine3 位址行 3。 字串
城市 位址城市。 字串
companyName 公司名稱。 字串
country 國家/地區代碼使用 ISO2、2 位數格式。 需要字串 ()
行政區 位址區域。 字串
電子郵件 電子郵件地址。 字串
firstName 名字。 字串
lastName 姓氏。 字串
middleName 中間名。 字串
phoneNumber 電話號碼。 字串
postalCode 郵遞區號。 字串
區域 位址區域。 字串

AzurePlan

名稱 描述
skuId SKU 標識碼。 字串

InvoiceSectionsOnExpand

名稱 描述
與帳單配置文件相關聯的發票區段。 InvoiceSection[]

InvoiceSection

名稱 描述
properties 發票區段的屬性。 InvoiceSectionProperties

InvoiceSectionProperties

名稱 描述
displayName 發票區段的名稱。 字串
標籤 與發票區段相關聯的元數據字典。 物件 (object)
tags 與發票區段相關聯的元數據字典。 支援的索引鍵/值長度上限為 256 個字元。 索引鍵/值不應空白值或 Null。 索引鍵不能包含 { } % & \ ? / 物件 (object)