Share via


Microsoft.Subscription subscriptionDefinitions

Choose a deployment language

Bicep resource definition

The subscriptionDefinitions resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Subscription/subscriptionDefinitions resource, add the following Bicep to your template.

Bicep
resource symbolicname 'Microsoft.Subscription/subscriptionDefinitions@2017-11-01-preview' = {
  name: 'string'
  properties: {
    etag: 'string'
    offerType: 'string'
    subscriptionDisplayName: 'string'
  }
}

Property Values

Microsoft.Subscription/subscriptionDefinitions

Name Description Value
name The resource name string (required)
properties the subscription definition properties SubscriptionDefinitionProperties

SubscriptionDefinitionProperties

Name Description Value
etag The etag the subscription definition. string
offerType The offer type of the subscription. For example, MS-AZR-0017P (EnterpriseAgreement) and MS-AZR-0148P (EnterpriseAgreement devTest) are available. string
subscriptionDisplayName The display name of the subscription. string

ARM template resource definition

The subscriptionDefinitions resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Subscription/subscriptionDefinitions resource, add the following JSON to your template.

JSON
{
  "type": "Microsoft.Subscription/subscriptionDefinitions",
  "apiVersion": "2017-11-01-preview",
  "name": "string",
  "properties": {
    "etag": "string",
    "offerType": "string",
    "subscriptionDisplayName": "string"
  }
}

Property Values

Microsoft.Subscription/subscriptionDefinitions

Name Description Value
apiVersion The api version '2017-11-01-preview'
name The resource name string (required)
properties the subscription definition properties SubscriptionDefinitionProperties
type The resource type 'Microsoft.Subscription/subscriptionDefinitions'

SubscriptionDefinitionProperties

Name Description Value
etag The etag the subscription definition. string
offerType The offer type of the subscription. For example, MS-AZR-0017P (EnterpriseAgreement) and MS-AZR-0148P (EnterpriseAgreement devTest) are available. string
subscriptionDisplayName The display name of the subscription. string

Usage Examples

Terraform (AzAPI provider) resource definition

The subscriptionDefinitions resource type can be deployed with operations that target:

  • Tenant

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Subscription/subscriptionDefinitions resource, add the following Terraform to your template.

Terraform
resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Subscription/subscriptionDefinitions@2017-11-01-preview"
  name = "string"
  body = jsonencode({
    properties = {
      etag = "string"
      offerType = "string"
      subscriptionDisplayName = "string"
    }
  })
}

Property Values

Microsoft.Subscription/subscriptionDefinitions

Name Description Value
name The resource name string (required)
properties the subscription definition properties SubscriptionDefinitionProperties
type The resource type "Microsoft.Subscription/subscriptionDefinitions@2017-11-01-preview"

SubscriptionDefinitionProperties

Name Description Value
etag The etag the subscription definition. string
offerType The offer type of the subscription. For example, MS-AZR-0017P (EnterpriseAgreement) and MS-AZR-0148P (EnterpriseAgreement devTest) are available. string
subscriptionDisplayName The display name of the subscription. string