![]() ![]() You can assign Azure RBAC roles to a user using the Azure portal, Azure CLI, or Azure PowerShell. To assign yourself this role, you'll need the User Access Administrator role, or another role that includes the Microsoft.Authorization/roleAssignments/write action. You'll need the Azure Event Hubs Data Owner role in order to send and receive messages. When developing locally, make sure that the user account that connects to Azure Event Hubs has the correct permissions. The Java client library for Event Hubs is available in the Maven Central Repository.Īssign roles to your Microsoft Entra user Add reference to Azure Event Hubs libraryįirst, create a new Maven project for a console/shell application in your favorite Java development environment. This section shows you how to create a Java application to send events an event hub. You use the connection string later in this quickstart. Then, get the connection string for the Event Hubs namespace by following instructions from the article: Get connection string. To create a namespace and an event hub, follow the procedure in this article. The first step is to use the Azure portal to create a namespace of type Event Hubs, and obtain the management credentials your application needs to communicate with the event hub. Create an Event Hubs namespace and an event hub.Java Development Kit (JDK) with version 8 or above is required. If you don't have an existing Azure account, you can sign up for a free trial or use your MSDN subscriber benefits when you create an account. To use Azure services, including Azure Event Hubs, you need a subscription. ![]() ![]() To complete this quickstart, you need the following prerequisites: If you're new to Azure Event Hubs, see Event Hubs overview before you do this quickstart. To learn more about Spring Cloud Azure, and to see an example using Event Hubs, see Spring Cloud Stream with Azure Event Hubs. Spring Cloud Azure is an open-source project that provides seamless Spring integration with Azure services. If you're working with Azure Event Hubs resources in a Spring application, we recommend that you consider Spring Cloud Azure as an alternative. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |