az eventhubs eventhub
Manage Azure EventHubs eventhub and authorization-rule.
Commands
Name | Description | Type | Status |
---|---|---|---|
az eventhubs eventhub authorization-rule |
Eventhub authorization rule. |
Core | GA |
az eventhubs eventhub authorization-rule create |
Create an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect. |
Core | GA |
az eventhubs eventhub authorization-rule delete |
Delete an Event Hub AuthorizationRule. |
Core | GA |
az eventhubs eventhub authorization-rule keys |
Authorization-rule keys. |
Core | GA |
az eventhubs eventhub authorization-rule keys list |
Gets the ACS and SAS connection strings for the Event Hub. |
Core | GA |
az eventhubs eventhub authorization-rule keys renew |
Regenerates the ACS and SAS connection strings for the Event Hub. |
Core | GA |
az eventhubs eventhub authorization-rule list |
List the authorization rules for an Event Hub. |
Core | GA |
az eventhubs eventhub authorization-rule show |
Get an AuthorizationRule for an Event Hub by rule name. |
Core | GA |
az eventhubs eventhub authorization-rule update |
Update an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect. |
Core | GA |
az eventhubs eventhub consumer-group |
Manage Azure Event Hubs consumergroup. |
Core | GA |
az eventhubs eventhub consumer-group create |
Create an Event Hubs consumer group as a nested resource within a Namespace. |
Core | GA |
az eventhubs eventhub consumer-group delete |
Delete a consumer group from the specified Event Hub and resource group. |
Core | GA |
az eventhubs eventhub consumer-group list |
List all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace. |
Core | GA |
az eventhubs eventhub consumer-group show |
Get a description for the specified consumer group. |
Core | GA |
az eventhubs eventhub consumer-group update |
Update an Event Hubs consumer group as a nested resource within a Namespace. |
Core | GA |
az eventhubs eventhub create |
Creates the EventHubs Eventhub. |
Core | GA |
az eventhubs eventhub delete |
Delete an Event Hub from the specified Namespace and resource group. |
Core | GA |
az eventhubs eventhub list |
List all the Event Hubs in a Namespace. |
Core | GA |
az eventhubs eventhub show |
Get an Event Hubs description for the specified Event Hub. |
Core | GA |
az eventhubs eventhub update |
Update a new Event Hub as a nested resource within a Namespace. |
Core | GA |
az eventhubs eventhub create
Creates the EventHubs Eventhub.
az eventhubs eventhub create --name
--namespace-name
--resource-group
[--archive-name-format]
[--blob-container]
[--capture-interval]
[--capture-size-limit]
[--cleanup-policy {Compact, Delete}]
[--destination-name]
[--enable-capture {false, true}]
[--mi-system-assigned {false, true}]
[--mi-user-assigned]
[--partition-count]
[--retention-time]
[--skip-empty-archives {false, true}]
[--status {Active, Disabled, SendDisabled}]
[--storage-account]
[--tombstone-retention-time-in-hours]
Examples
Create a new Eventhub.
az eventhubs eventhub create --resource-group myresourcegroup --namespace-name mynamespace --name myeventhub --cleanup-policy Delete --partition-count 15
Required Parameters
Name of Eventhub.
Name of Namespace.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order.
Blob container Name.
Allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
Defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
Enumerates the possible values for cleanup policy.
Name for capture destination, should be EventHubArchive.AzureBlockBlob.
A boolean value that indicates whether capture is enabled.
Enable System Assigned Identity.
List of User Assigned Identity ids.
Number of partitions created for the Event Hub. By default, allowed values are 2-32. Lower value of 1 is supported with Kafka enabled namespaces. In presence of a custom quota, the upper limit will match the upper limit of the quota.
Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compaction the returned value of this property is Long.MaxValue.
A boolean value that indicates whether to Skip Empty.
Status of Eventhub.
Name (if within same resource group and not of type Classic Storage) or ARM id of the storage account to be used to create the blobs.
Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compaction. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az eventhubs eventhub delete
Delete an Event Hub from the specified Namespace and resource group.
az eventhubs eventhub delete [--event-hub-name]
[--ids]
[--namespace-name]
[--resource-group]
[--subscription]
Optional Parameters
The Event Hub name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The Namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az eventhubs eventhub list
List all the Event Hubs in a Namespace.
az eventhubs eventhub list --namespace-name
--resource-group
[--max-items]
[--next-token]
[--skip]
[--top]
Required Parameters
The Namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token
argument of a subsequent command.
Token to specify where to start paginating. This is the token value from a previously truncated response.
Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skip parameter that specifies a starting point to use for subsequent calls.
May be used to limit the number of results to the most recent N usageDetails.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az eventhubs eventhub show
Get an Event Hubs description for the specified Event Hub.
az eventhubs eventhub show [--event-hub-name]
[--ids]
[--namespace-name]
[--resource-group]
[--subscription]
Optional Parameters
The Event Hub name.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The Namespace name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az eventhubs eventhub update
Update a new Event Hub as a nested resource within a Namespace.
az eventhubs eventhub update [--add]
[--archive-name-format]
[--blob-container]
[--capture-interval]
[--capture-size-limit]
[--cleanup-policy {Compact, Delete}]
[--destination-name]
[--enable-capture {0, 1, f, false, n, no, t, true, y, yes}]
[--encoding {Avro, AvroDeflate}]
[--event-hub-name]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--identity]
[--ids]
[--namespace-name]
[--partition-count]
[--remove]
[--resource-group]
[--retention-time]
[--set]
[--skip-empty-archives {0, 1, f, false, n, no, t, true, y, yes}]
[--status {Active, Creating, Deleting, Disabled, ReceiveDisabled, Renaming, Restoring, SendDisabled, Unknown}]
[--storage-account]
[--subscription]
[--tombstone-retention-time-in-hours]
Optional Parameters
Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>
.
Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order.
Blob container Name.
The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds.
The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes.
Enumerates the possible values for cleanup policy.
Name for capture destination.
A value that indicates whether capture description is enabled.
Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version.
The Event Hub name.
When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.
A value that indicates whether capture description is enabled. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
The Namespace name.
Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.
Remove a property or an element from a list. Example: --remove property.list <indexToRemove>
OR --remove propertyToRemove
.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compact the returned value of this property is Long.MaxValue.
Update an object by specifying a property path and value to set. Example: --set property1.property2=<value>
.
A value that indicates whether to Skip Empty Archives.
Enumerates the possible values for the status of the Event Hub.
Resource id of the storage account to be used to create the blobs.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.