Skip to content

ARM Template Generation Breaks Event Hub Configuration (Multi Subscription, Multi Event Hubs) #190

@jeremy-beeman-smyrnareadymix

Description

Not sure if this is the right place to put this. I've been trying to figure out how to have two different Event Hub Namespaces in different subscriptions connected to the Azure Stream Analytics. When set up through the Azure portal, there are no issues. However, when I switch to using ARM templates and the azure-streamanalytics-cicd NPM package to create that ARM template, it consistently makes the Azure Stream Analytics resource break with this issue:

The streaming job failed: Stream Analytics job has validation errors: Access to EventHub sb://XXXXX.servicebus.windows.net/XXXXX is not authorized. Exception Attempted to perform an unauthorized operation. For troubleshooting information, see https://aka.ms/azsdk/net/eventhubs/exceptions/troubleshoot

I think that it has something to do with the fact that in the portal you can pass in a subscription to then tie the event hub to. But on the ARM template, I don't see an option to set the subscription for the event hub you wish to target. Any pointers on this one? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions