Muokkaa

Create, view, and manage Azure Event Grid namespaces

A namespace in Azure Event Grid is a logical container for one or more topics, clients, client groups, topic spaces, and permission bindings. A namespace gives you a unique, addressable space so that you can have multiple resources in the same Azure region and manage related resources as a single unit in your Azure subscription.

This article shows you how to use the Azure portal to create, view, and manage an Azure Event Grid namespace.

Prerequisites

Create an Event Grid namespace

Use the following steps to create an Event Grid namespace in the Azure portal.

  1. Sign in to the Azure portal.

  2. In the search box, enter Event Grid Namespaces and select Event Grid Namespaces from the results.

    Screenshot showing Event Grid Namespaces in the search results.

  3. On the Event Grid Namespaces page, select + Create on the toolbar.

    Screenshot showing Event Grid Namespaces page with the Create button on the toolbar selected.

  4. On the Basics page, follow these steps.

    1. Select the Azure subscription in which you want to create the namespace.

    2. Select an existing resource group or create a resource group.

    3. Enter a name for the namespace.

    4. Select the region or location where you want to create the namespace.

    5. If the selected region supports availability zones, enable or disable the Availability zones checkbox. The checkbox is selected by default if the region supports availability zones. However, you can uncheck and disable availability zones if needed. You can't change the selection once the namespace is created.

    6. Use the slider or text box to specify the number of throughput units for the namespace. Throughput units (TUs) define the ingress and egress event rate capacity in namespaces.

    7. Select Next: Networking at the bottom of the page.

      Screenshot showing the Basics tab of Create namespace page.

  5. Follow steps from Configure IP firewall or Configure private endpoints to configure IP firewall or private endpoints for the namespace, and then select Next: Security at the bottom of the page.

  6. On the Security page, create a managed identity by following instructions from Enable managed identity for a namespace, and then select Next: Tags at the bottom of the page.

  7. On the Tags tab, add tags if you need them. Then, select Next: Review + create at the bottom of the page.

  8. On the Review + create tab, review your settings, and then select Create.

  9. On the Deployment succeeded page, select Go to resource to go to your namespace.

View an Event Grid namespace

Use the following steps to open an existing Event Grid namespace.

  1. Sign in to the Azure portal.

  2. In the search box, enter Event Grid Namespaces and select Event Grid Namespaces from the results.

    Screenshot showing Event Grid Namespaces in the search results.

  3. On the Event Grid Namespaces page, select your namespace.

    Screenshot showing selection of a namespace in the Event Grid namespaces list.

  4. The Event Grid Namespace page for your namespace appears.

    Screenshot that shows the Event Grid Namespace page for your namespace.

Enable MQTT on an Event Grid namespace

To enable the MQTT capabilities in the Azure Event Grid namespace, select Configuration and check the option Enable MQTT.

Screenshot showing Event Grid MQTT settings.

Note

After you enable MQTT, you can't disable it.

Configure throughput units (TUs) for a namespace

You can configure throughput units (TUs) for a namespace either manually or by enabling autoscale:

Delete an Event Grid namespace

When you no longer need a namespace, delete it to remove the namespace and all its nested resources.

  1. Follow the steps in the View an Event Grid namespace section to list all the namespaces, and then select the namespace that you want to delete.

  2. On the Overview page, select Delete on the toolbar.

    Screenshot showing how to delete an Event Grid namespace.

  3. On the confirmation page, enter the name of the resource, and then select Delete to confirm the deletion. This action deletes the namespace and all the nested topics, subscriptions, and MQTT resources.

    Screenshot showing how to confirm an Event Grid namespace deletion.