farmer
farmer copied to clipboard
Retrieve EventHub ConnectionString as output
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.???????
}
I could see this being useful in multiple areas, service bus and storage accounts for sure.
Can't you use myEventHub.DefaultKey
to fetch this?
@biltongza this is already available for Storage accounts; pretty sure Service Bus also supports this as well.