-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Hub as dependency is invalid #1086
Comments
I've been attempting to fix this issue, but am coming up short. The tricky thing about the EventHub builder is that unlike the ServiceBus builder, the Hub and the Namespace are combined. What I think needs to happen is for the EventHub record to add a That said, I've been unsuccessful in getting the generation fixed so that the three-part version is output as a dependency. I thought replacing the Create method name with both the namespace name and hub name would work, but I've had no success. This produces the exact same resourceId reference. // In type EventHub
interface IArmResource with
member this.ResourceId = eventHubs.resourceId (this.Namespace.Name / this.Name)
member this.JsonModel =
{| eventHubs.Create(this.Namespace.Name / this.Name, this.Location, this.Dependencies, this.Tags) with
properties = |
Let me take a look at this one. |
@isaacabraham Thanks for checking this out. In an effort to support this properly, I first added a
Then, in the
I think this is the correct approach and is modeled after the Service Bus. I believe the problem is in the ARM generation. |
Thank you. I'll test it out. |
I'm having issues in setting an Event Hub instance as a dependency of a web app. The issue seems to be the way the Event Hub is referenced. Here's the code:
Then I reference it in a web app:
The resulting ARM template has the following:
This results in the following error:
From what I can tell, the issue is in the second reference to the Event Hub itself, not the namespace. Changing it to include the Event Hub namespace seems to solve the issue:
I'm happy to take a stab at trying to fix this, but am not quite sure where to look in the code.
The text was updated successfully, but these errors were encountered: