Microsoft.EventHub clusters 2021-11-01

Bicep resource definition

The clusters 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.EventHub/clusters resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.EventHub/clusters@2021-11-01' = {
  location: 'string'
  name: 'string'
  properties: {}
  sku: {
    capacity: int
    name: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

ClusterProperties

Name Description Value

ClusterSku

Name Description Value
capacity The quantity of Event Hubs Cluster Capacity Units contained in this cluster. int

Constraints:
Min value = 1
name Name of this SKU. 'Dedicated' (required)

Microsoft.EventHub/clusters

Name Description Value
location Resource location. string
name The resource name string

Constraints:
Min length = 6
Max length = 50 (required)
properties Event Hubs Cluster properties supplied in responses in List or Get operations. ClusterProperties
sku Properties of the cluster SKU. ClusterSku
tags Resource tags Dictionary of tag names and values. See Tags in templates

TrackedResourceTags

Name Description Value

Quickstart samples

The following quickstart samples deploy this resource type.

Bicep File Description
Creates Event Hub cluster & namesapce in cluster This template enables you to create EventHubs Cluster and a namespace in cluster
Creates Eventhub cluster, namesapce & eventhub This template enables you to create EventHubs Cluster, namespace and eventhub in cluster

ARM template resource definition

The clusters 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.EventHub/clusters resource, add the following JSON to your template.

{
  "type": "Microsoft.EventHub/clusters",
  "apiVersion": "2021-11-01",
  "name": "string",
  "location": "string",
  "properties": {
  },
  "sku": {
    "capacity": "int",
    "name": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

ClusterProperties

Name Description Value

ClusterSku

Name Description Value
capacity The quantity of Event Hubs Cluster Capacity Units contained in this cluster. int

Constraints:
Min value = 1
name Name of this SKU. 'Dedicated' (required)

Microsoft.EventHub/clusters

Name Description Value
apiVersion The api version '2021-11-01'
location Resource location. string
name The resource name string

Constraints:
Min length = 6
Max length = 50 (required)
properties Event Hubs Cluster properties supplied in responses in List or Get operations. ClusterProperties
sku Properties of the cluster SKU. ClusterSku
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.EventHub/clusters'

TrackedResourceTags

Name Description Value

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Creates Event Hub cluster & namesapce in cluster

Deploy to Azure
This template enables you to create EventHubs Cluster and a namespace in cluster
Creates Eventhub cluster, namesapce & eventhub

Deploy to Azure
This template enables you to create EventHubs Cluster, namespace and eventhub in cluster

Terraform (AzAPI provider) resource definition

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

  • Resource groups

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

Resource format

To create a Microsoft.EventHub/clusters resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.EventHub/clusters@2021-11-01"
  name = "string"
  location = "string"
  sku = {
    capacity = int
    name = "string"
  }
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
    }
  })
}

Property values

ClusterProperties

Name Description Value

ClusterSku

Name Description Value
capacity The quantity of Event Hubs Cluster Capacity Units contained in this cluster. int

Constraints:
Min value = 1
name Name of this SKU. 'Dedicated' (required)

Microsoft.EventHub/clusters

Name Description Value
location Resource location. string
name The resource name string

Constraints:
Min length = 6
Max length = 50 (required)
properties Event Hubs Cluster properties supplied in responses in List or Get operations. ClusterProperties
sku Properties of the cluster SKU. ClusterSku
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.EventHub/clusters@2021-11-01"

TrackedResourceTags

Name Description Value