You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Clone the [Azure Event Hubs for Kafka repository](https://github.com/Azure/azure-event-hubs-for-kafka).
38
-
2. Navigate to `azure-event-hubs-for-kafka/quickstart/java/producer`.
39
-
3. Update the configuration details for the producer in `src/main/resources/producer.config` as follows:
40
-
41
-
Managed identities for Azure resources provide Azure services with an automatically managed identity in Azure Active Directory. You can use this identity to authenticate to any service that supports Azure AD authentication, without having credentials in your code.
38
+
1. Managed identities for Azure resources provide Azure services with an automatically managed identity in Azure Active Directory. You can use this identity to authenticate to any service that supports Azure AD authentication, without having credentials in your code.
42
39
43
40
Azure Event Hubs supports using Azure Active Directory (Azure AD) to authorize requests to Event Hubs resources. With Azure AD, you can use Azure role-based access control (Azure RBAC) to grant permissions to a security principal, which may be a user, or an application service principal.
44
41
45
-
To use Managed Identity, you can create a (or configure an existing) virtual machine using a system-assigned managed identity. See [Configure managed identities for Azure resources on a VM using the Azure portal](https://learn.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm#system-assigned-managed-identity) for more details.
42
+
To use Managed Identity, you can create a (or configure an existing) virtual machine using a system-assigned managed identity. For more information about configuring managed identity on a VM, see [Configure managed identities for Azure resources on a VM using the Azure portal](https://learn.microsoft.com/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vm#system-assigned-managed-identity).
43
+
44
+
1. In the virtual machine that you configure managed identity, clone the [Azure Event Hubs for Kafka repository](https://github.com/Azure/azure-event-hubs-for-kafka).
45
+
1. Navigate to `azure-event-hubs-for-kafka/quickstart/java/producer`.
46
+
1. Update the configuration details for the producer in `src/main/resources/producer.config` as follows:
47
+
48
+
46
49
47
-
Once you configure the virtual machine with managed identity, you need to add managed idendity to Event Hubs namespace. For that you need to follow these steps.
50
+
Once you configure the virtual machine with managed identity, you need to add managed identity to Event Hubs namespace. For that you need to follow these steps.
48
51
49
-
- In the Azure Portal, navigate to your Event Hubs namespace. Go to "Access Control (IAM)" in the left navigation.
52
+
- In the Azure portal, navigate to your Event Hubs namespace. Go to "Access Control (IAM)" in the left navigation.
50
53
51
-
-Click + Add and select `Add role assignment`.
54
+
-Select + Add and select `Add role assignment`.
52
55
53
-
- In the Role tab, select `Azure Event Hubs Data Owner` and click the Next button.
56
+
- In the Role tab, select `Azure Event Hubs Data Owner` and select the Next button.
54
57
55
58
- In the `Members` tab, select the `Managed Identity` radio button for type to assign access to.
56
59
57
-
-Click the `+Select members` link. In the Managed Identity dropdown, select Virtual Machine and select your virtual machine's managed identity.
60
+
-Select the `+Select members` link. In the Managed Identity dropdown, select Virtual Machine and select your virtual machine's managed identity.
58
61
59
-
-Click`Review + Assign`.
62
+
-Select`Review + Assign`.
60
63
61
-
1. Once you configure managed identity you can update `src/main/resources/producer.config` as shown below.
64
+
1. Once you configure managed identity, you can update `src/main/resources/producer.config` as shown below.
0 commit comments