CmdID / az / az eventhubs / az eventhubs eventhub
az eventhubs eventhub create
Create a new Event Hub as a nested resource within a Namespace. Azure CLI reference
22 options Its page in the Azure CLI reference
Options
--archive-name-formatBlob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}.--blob-containerBlob container Name--capture-intervalThe time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds--capture-size-limitThe 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--cleanup-policyEnumerates the possible values for cleanup policy--destination-nameName for capture destination--enable-capture, --identityA value that indicates whether capture description is enabled.--encodingEnumerates the possible values for the encoding format of capture description.--event-hub-name, --name, -nThe Event Hub name--message-retention-in-daysNumber of days to retain the events for this Event Hub, value should be 1 to 7 days--mi-system-assignedEnable System Assigned Identity--mi-user-assignedList of User Assigned Identity ids.--min-compaction-lag-in-mins, --min-lagThe minimum time a message will remain ineligible for compaction in the log.--namespace-nameThe Namespace name--partition-countNumber of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.--retention-time-in-hours, --retention-timeNumber of hours to retain the events for this Event Hub.--skip-empty-archivesA value that indicates whether to Skip Empty Archives--statusEnumerates the possible values for the status of the Event Hub.--storage-accountResource id of the storage account to be used to create the blobs--timestamp-typeDenotes the type of timestamp the message will hold.Two types of timestamp types - "AppendTime" and "CreateTime".--tombstone-retention-time-in-hours, --tombstone-time, -tNumber of hours to retain the tombstone markers of a compacted Event Hub.--user-metadataGets and Sets Metadata of User.