There is no separate credential controller service for PutAzureEventHub.
The credential properties can be configured on the processor itself.
Setting "Use Azure Managed Identity" processor property to "true" should
work, assuming the Azure config is correct. I tested it with NiFi 1.23.0
running on an Azure VM.

Azure side config:
 - System assigned managed identity must be turned on for the VM running
NiFi.
 - Assign "Azure Event Hubs Data Sender" or "Azure Event Hubs Data Owner"
role to the VM identity. It can be granted at Event Hub Namespace or Event
Hub level.

After the Azure config, NiFi restart may be needed if the processor was
started earlier with different settings (it seems the azure client library
can cache tokens issued with different credentials).

Regards,
Peter Turcsanyi

On Thu, Aug 17, 2023 at 1:25 AM Sean Davis <[email protected]> wrote:

> I have but the processor is not working, and it's not giving an error
> message.
> I saw controller services like ADLSCredentialsControllerService to
> configure a managed identity for PutADLS, was wondering if there is an
> equivalent controller service for PutEventHub, where I could configure a
> system-assigned managed identity within NiFi.
> If not, I'm guessing the issue is on the Azure side.
>
> Thanks,
> Sean.
>
> On Wed, Aug 16, 2023 at 1:40 PM Peter Turcsanyi <[email protected]>
> wrote:
>
>> Hi Sean,
>>
>> PutAzureEventHub processor has "Use Azure Managed Identity" property.
>> Have you tried it?
>>
>> Regards,
>> Peter Turcsanyi
>>
>> On Wed, Aug 16, 2023 at 8:24 PM Sean Davis <[email protected]> wrote:
>>
>>> Hello,
>>>
>>> I'm trying to configure a PutAzureEventHub processor using
>>> system-assigned managed identity.
>>> I don't see a controller service or a different processor that would
>>> allow me to configure the managed identity in NiFi.
>>> I was wondering if there is any way to configure this in NiFi?
>>>
>>> Thanks,
>>> Sean.
>>>
>>

Reply via email to