CompositionalIT / farmer

Repeatable Azure deployments with ARM templates - made easy!
https://compositionalit.github.io/farmer
MIT License
517 stars 156 forks source link

Retrieve EventHub ConnectionString as output #666

Open francotiveron opened 3 years ago

francotiveron commented 3 years ago

How can we retrieve as output the connection string of an event hub?

let eventHub = eventHub { namespace_name eventHubNamespaceName sku EventHub.Standard enable_auto_inflate 10 name eventHubName }

let template = arm { location Location.AustraliaSoutheast
add_resource eventHub output "EventHubConnectionString" eventHub.??????? }

image

biltongza commented 3 years ago

I could see this being useful in multiple areas, service bus and storage accounts for sure.

BrianVallelunga commented 7 months ago

Can't you use myEventHub.DefaultKey to fetch this?

isaacabraham commented 6 months ago

@biltongza this is already available for Storage accounts; pretty sure Service Bus also supports this as well.