Comments (4)
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 Namespace: LinkedResource
field that points back to the EventHubNamespace, much like the Queue record for the ServiceBus. This can then be used to generate the correct dependency.
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 =
from farmer.
Let me take a look at this one.
from farmer.
@isaacabraham Thanks for checking this out.
In an effort to support this properly, I first added a Namespace
field to the EventHub type in the Namespaces
module.
type EventHub =
{
Name: ResourceName
Namespace: LinkedResource
Location: Location
MessageRetentionDays: int option
Partitions: int
Dependencies: ResourceId Set
CaptureDestination: CaptureDestination option
Tags: Map<string, string>
}
Then, in the BuildResources
method, I assign it the value:
Namespace = Managed(namespaces.resourceId this.EventHubNamespaceName)
I think this is the correct approach and is modeled after the Service Bus. I believe the problem is in the ARM generation.
from farmer.
Thank you. I'll test it out.
from farmer.
Related Issues (20)
- Get existing project running
- Seems as if remote vnet peering for virtual networks does not support the remote vnet being in a different resource group HOT 1
- Deploying a function app overwrites the WEBSITE_CONTENTSHARE value HOT 1
- SQL Server Builder - Create System Assigned Identity HOT 3
- CosmosDB Gremlin support HOT 3
- P0V3 app service type is missing
- Add SupportsHttpsTrafficOnly property support for storage accounts
- Tests failing in CICD HOT 2
- Service Bus builder needs validation improvements
- Alert dependable on Action Group HOT 2
- App Service does not support Linux App Insights automatic instrumentation
- Upgrade to Fantomas 6
- No builder support for adding subnet per IP of LoadBalancer backendAddressPool
- PostgreSQL dependency generates incorrect path
- Details about associating web app to vnet HOT 8
- Migrate to PostgreSQL Flexible Database
- Migrate Web App to use Log Analytics + App Insights
- Dependabot update for System.Text.Json forces a library update on Farmer consumers HOT 4
- Adde Hyperscale to SQL Elastic Pool HOT 2
- Create ResourceId from ARM resource ID (relative URI)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from farmer.