Microsoft.Billing promotions
The promotions resource type can be deployed with operations that target:
- Tenant - See tenant deployment commands
For a list of changed properties in each API version, see change log.
To create a Microsoft.Billing/promotions resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Billing/promotions@2020-11-01-preview' = {
name: 'string'
properties: {
appliedScopes: [
'string'
]
displayName: 'string'
orderId: 'string'
}
sku: {
name: 'string'
}
}
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
properties | PromotionCreateRequestPropertiesOrPromotionResponseProperties | |
sku | PromotionCreateSkuNameRequestProperties |
Name | Description | Value |
---|---|---|
appliedScopes | List of subscriptions getting the benefit of the promotion. | string[] |
displayName | Friendly name for user to easily identified the promotion. | string |
orderId | Unique Id for the promotion order. | string |
Name | Description | Value |
---|---|---|
name | SKU Name of the promotion to activate | string |
The promotions resource type can be deployed with operations that target:
- Tenant - See tenant deployment commands
For a list of changed properties in each API version, see change log.
To create a Microsoft.Billing/promotions resource, add the following JSON to your template.
{
"type": "Microsoft.Billing/promotions",
"apiVersion": "2020-11-01-preview",
"name": "string",
"properties": {
"appliedScopes": [ "string" ],
"displayName": "string",
"orderId": "string"
},
"sku": {
"name": "string"
}
}
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2020-11-01-preview' |
name | The resource name | string (required) |
properties | PromotionCreateRequestPropertiesOrPromotionResponseProperties | |
sku | PromotionCreateSkuNameRequestProperties | |
type | The resource type | 'Microsoft.Billing/promotions' |
Name | Description | Value |
---|---|---|
appliedScopes | List of subscriptions getting the benefit of the promotion. | string[] |
displayName | Friendly name for user to easily identified the promotion. | string |
orderId | Unique Id for the promotion order. | string |
Name | Description | Value |
---|---|---|
name | SKU Name of the promotion to activate | string |
The promotions resource type can be deployed with operations that target:
- Tenant
For a list of changed properties in each API version, see change log.
To create a Microsoft.Billing/promotions resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Billing/promotions@2020-11-01-preview"
name = "string"
sku = {
name = "string"
}
body = jsonencode({
properties = {
appliedScopes = [
"string"
]
displayName = "string"
orderId = "string"
}
})
}
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
properties | PromotionCreateRequestPropertiesOrPromotionResponseProperties | |
sku | PromotionCreateSkuNameRequestProperties | |
type | The resource type | "Microsoft.Billing/promotions@2020-11-01-preview" |
Name | Description | Value |
---|---|---|
appliedScopes | List of subscriptions getting the benefit of the promotion. | string[] |
displayName | Friendly name for user to easily identified the promotion. | string |
orderId | Unique Id for the promotion order. | string |
Name | Description | Value |
---|---|---|
name | SKU Name of the promotion to activate | string |