Skip to content

Commit 67b6dd4

Browse files
committed
update
1 parent db9759e commit 67b6dd4

File tree

2 files changed

+77
-16
lines changed

2 files changed

+77
-16
lines changed

articles/event-hubs/event-hubs-quickstart-cli.md

Lines changed: 74 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,22 @@ region="eastus"
2626
az group create --name $rgName --location $region
2727
```
2828

29+
You see the output similar to the following one. You see the resource group name in the `name` field with a random number replacing `$RANDOM`.
30+
31+
```json
32+
{
33+
"id": "/subscriptions/0000000000-0000-0000-0000-000000000000000/resourceGroups/contosorg32744",
34+
"location": "eastus",
35+
"managedBy": null,
36+
"name": "contosorg32744",
37+
"properties": {
38+
"provisioningState": "Succeeded"
39+
},
40+
"tags": null,
41+
"type": "Microsoft.Resources/resourceGroups"
42+
}
43+
```
44+
2945
## Create an Event Hubs namespace
3046
An Event Hubs namespace provides a unique scoping container, referenced by its fully qualified domain name, in which you create one or more event hubs. To create a namespace in your resource group, run the following command:
3147

@@ -35,15 +51,71 @@ namespaceName="contosoehubns$RANDOM"
3551
az eventhubs namespace create --name $namespaceName --resource-group $rgName -l $region
3652
```
3753

54+
You see the output similar to the following one. You see the name of the namespace in the `name` field.
55+
56+
```json
57+
{
58+
"createdAt": "2023-03-13T20:28:53.037Z",
59+
"disableLocalAuth": false,
60+
"id": "/subscriptions/0000000000-0000-0000-0000-0000000000000000/resourceGroups/contosorg32744/providers/Microsoft.EventHub/namespaces/contosoehubns17861",
61+
"isAutoInflateEnabled": false,
62+
"kafkaEnabled": true,
63+
"location": "East US",
64+
"maximumThroughputUnits": 0,
65+
"metricId": "0000000000-0000-0000-0000-0000000000000000:contosoehubns17861",
66+
"minimumTlsVersion": "1.2",
67+
"name": "contosoehubns17861",
68+
"provisioningState": "Succeeded",
69+
"publicNetworkAccess": "Enabled",
70+
"resourceGroup": "contosorg32744",
71+
"serviceBusEndpoint": "https://contosoehubns17861.servicebus.windows.net:443/",
72+
"sku": {
73+
"capacity": 1,
74+
"name": "Standard",
75+
"tier": "Standard"
76+
},
77+
"status": "Active",
78+
"tags": {},
79+
"type": "Microsoft.EventHub/Namespaces",
80+
"updatedAt": "2023-03-13T20:29:45.637Z",
81+
"zoneRedundant": false
82+
}
83+
```
84+
3885
## Create an event hub
39-
Run the following command to create an event hub:
86+
Run the following command to create an event hub.
4087

4188
```azurecli-interactive
4289
# Create an event hub. Specify a name for the event hub.
4390
eventhubName="contosoehub$RANDOM"
4491
az eventhubs eventhub create --name $eventhubName --resource-group $rgName --namespace-name $namespaceName
4592
```
4693

94+
You see the output similar to the following one. You see the name of the event hub in the `name` field.
95+
96+
```json
97+
{
98+
"captureDescription": null,
99+
"createdAt": "2023-03-13T20:32:04.457000+00:00",
100+
"id": "/subscriptions/000000000-0000-0000-0000-00000000000000/resourceGroups/contosorg32744/providers/Microsoft.EventHub/namespaces/contosoehubns17861/eventhubs/contosoehub23255",
101+
"location": "eastus",
102+
"messageRetentionInDays": 7,
103+
"name": "contosoehub23255",
104+
"partitionCount": 4,
105+
"partitionIds": [
106+
"0",
107+
"1",
108+
"2",
109+
"3"
110+
],
111+
"resourceGroup": "contosorg32744",
112+
"status": "Active",
113+
"systemData": null,
114+
"type": "Microsoft.EventHub/namespaces/eventhubs",
115+
"updatedAt": "2023-03-13T20:32:04.727000+00:00"
116+
}
117+
```
118+
47119
Congratulations! You have used Azure CLI to create an Event Hubs namespace, and an event hub within that namespace.
48120

49121
## Clean up resources
@@ -56,5 +128,5 @@ az group delete --name $rgName
56128
## Next steps
57129

58130
> [!div class="nextstepaction"]
59-
> In this article, you created a resource group, an Event Hubs namespace, and an event hub. For step-by-step instructions to send events to (or) receive events from an event hub, see the **Send and receive events** tutorials: [.NET Core](event-hubs-dotnet-standard-getstarted-send.md), [Java](event-hubs-java-get-started-send.md), [Python](event-hubs-python-get-started-send.md), [JavaScript](event-hubs-node-get-started-send.md), [Go](event-hubs-go-get-started-send.md), [C (send only)](event-hubs-c-getstarted-send.md), [Apache Storm (receive only)](event-hubs-storm-getstarted-receive.md)
131+
> See the **Send and receive events** tutorials: [.NET Core](event-hubs-dotnet-standard-getstarted-send.md), [Java](event-hubs-java-get-started-send.md), [Python](event-hubs-python-get-started-send.md), [JavaScript](event-hubs-node-get-started-send.md)
60132

articles/event-hubs/event-hubs-quickstart-powershell.md

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
11
---
2-
title: 'Quickstart: Create an event hub using PowerShell - Azure Event Hubs'
2+
title: 'Quickstart: Create an event hub using PowerShell'
33
description: This quickstart describes how to create an event hub using Azure PowerShell and then send and receive events using .NET Standard SDK.
44
ms.topic: quickstart
55
ms.date: 09/28/2021
66
ms.custom: devx-track-azurepowershell, mode-api
77
---
88

99
# Quickstart: Create an event hub using Azure PowerShell
10+
In this quickstart, you will create an event hub using Azure PowerShell.
1011

11-
Azure Event Hubs is a Big Data streaming platform and event ingestion service, capable of receiving and processing millions of events per second. Event Hubs can process and store events, data, or telemetry produced by distributed software and devices. Data sent to an event hub can be transformed and stored using any real-time analytics provider or batching/storage adapters. For detailed overview of Event Hubs, see [Event Hubs overview](event-hubs-about.md) and [Event Hubs features](event-hubs-features.md).
12-
13-
In this quickstart, you create an event hub using Azure PowerShell.
14-
15-
## Prerequisites
16-
17-
[!INCLUDE [updated-for-az](../../includes/updated-for-az.md)]
18-
19-
To complete this tutorial, make sure you have:
20-
21-
- Azure subscription. If you don't have one, [create a free account][] before you begin.
22-
- [Visual Studio 2019](https://www.visualstudio.com/vs).
23-
- [.NET Core SDK](https://dotnet.microsoft.com/download), version 2.0 or later.
12+
[!INCLUDE [quickstarts-free-trial-note](../../includes/quickstarts-free-trial-note.md)]
2413

2514
[!INCLUDE [cloud-shell-try-it.md](../../includes/cloud-shell-try-it.md)]
2615

0 commit comments

Comments
 (0)