Microsoft.Billing billingAccounts/billingProfiles/policies 2018-11-01-preview

Bicep リソース定義

billingAccounts/billingProfiles/policies リソースの種類は、次の場所にデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Billing/billingAccounts/billingProfiles/policies リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.Billing/billingAccounts/billingProfiles/policies@2018-11-01-preview' = {
  name: 'default'
  parent: resourceSymbolicName
  properties: {
    marketplacePurchasesAllowed: bool
    reservationPurchasesAllowed: bool
    subscriptionOwnerCanViewCharges: bool
  }
}

プロパティの値

billingAccounts/billingProfiles/policies

名前 説明
name リソース名

Bicep で子リソースの名前と型を設定する方法を参照してください。
'default'
parent Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、「 親リソースの外部の子リソース」を参照してください。
種類のリソースのシンボル名: billingProfiles
properties ポリシーのプロパティ。 PolicyProperties

PolicyProperties

名前 説明
marketplacePurchasesAllowed marketplacePurchasesAllowed フラグ。 [bool]
reservationPurchasesAllowed reservationPurchasesAllowed フラグ。 [bool]
subscriptionOwnerCanViewCharges subscriptionOwnerCanViewCharges フラグ。 [bool]

ARM テンプレート リソース定義

billingAccounts/billingProfiles/policies リソースの種類は、次の場所にデプロイできます。

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Billing/billingAccounts/billingProfiles/policies リソースを作成するには、テンプレートに次の JSON を追加します。

{
  "type": "Microsoft.Billing/billingAccounts/billingProfiles/policies",
  "apiVersion": "2018-11-01-preview",
  "name": "default",
  "properties": {
    "marketplacePurchasesAllowed": "bool",
    "reservationPurchasesAllowed": "bool",
    "subscriptionOwnerCanViewCharges": "bool"
  }
}

プロパティの値

billingAccounts/billingProfiles/policies

名前 説明
type リソースの種類 'Microsoft.Billing/billingAccounts/billingProfiles/policies'
apiVersion リソース API のバージョン '2018-11-01-preview'
name リソース名

JSON ARM テンプレートで子リソースの名前と型を設定する方法を参照してください。
'default'
properties ポリシーのプロパティ。 PolicyProperties

PolicyProperties

名前 説明
marketplacePurchasesAllowed marketplacePurchasesAllowed フラグ。 [bool]
reservationPurchasesAllowed reservationPurchasesAllowed フラグ。 [bool]
subscriptionOwnerCanViewCharges subscriptionOwnerCanViewCharges フラグ。 [bool]

Terraform (AzAPI プロバイダー) リソース定義

billingAccounts/billingProfiles/policies リソースの種類は、次の場所にデプロイできます。

  • テナント

各 API バージョンの変更されたプロパティの一覧については、「 変更ログ」を参照してください。

リソース形式

Microsoft.Billing/billingAccounts/billingProfiles/policies リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Billing/billingAccounts/billingProfiles/policies@2018-11-01-preview"
  name = "default"
  parent_id = "string"
  body = jsonencode({
    properties = {
      marketplacePurchasesAllowed = bool
      reservationPurchasesAllowed = bool
      subscriptionOwnerCanViewCharges = bool
    }
  })
}

プロパティの値

billingAccounts/billingProfiles/policies

名前 説明
type リソースの種類 "Microsoft.Billing/billingAccounts/billingProfiles/policies@2018-11-01-preview"
name リソース名 "default"
parent_id このリソースの親であるリソースの ID。 種類のリソースの ID: billingProfiles
properties ポリシーのプロパティ。 PolicyProperties

PolicyProperties

名前 説明
marketplacePurchasesAllowed marketplacePurchasesAllowed フラグ。 [bool]
reservationPurchasesAllowed reservationPurchasesAllowed フラグ。 [bool]
subscriptionOwnerCanViewCharges subscriptionOwnerCanViewCharges フラグ。 [bool]