farmer icon indicating copy to clipboard operation
farmer copied to clipboard

Retrieve EventHub ConnectionString as output

Open francotiveron opened this issue 3 years ago • 3 comments

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

francotiveron avatar Jun 30 '21 03:06 francotiveron

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

biltongza avatar Jun 30 '21 17:06 biltongza

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

BrianVallelunga avatar Dec 13 '23 13:12 BrianVallelunga

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

isaacabraham avatar Jan 05 '24 13:01 isaacabraham