Hello does anybody knows how to get the connection...
# general
d
Hello does anybody knows how to get the connection string for a azure servicebus queue ?
👍 1
b
Hello, I am a colleague of Timon. What we are looking for is basically this: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/servicebus_queue_authorization_rule The attribute "primary_connection_string" on an authorization rule object. We were already able to create the object in Pulumi using "new azure_native.servicebus.QueueAuthorizationRule(...)"
g
Are you using Azure Native or Azure Classic? Azure Native connects directly to Azure's resource model; docs are at https://www.pulumi.com/registry/packages/azure-native/api-docs/servicebus/queueauthorizationrule/. For that package, though, I think you want to use the
listQueueKeys
function and ask for the output
primary_connection_string
(see https://www.pulumi.com/registry/packages/azure-native/api-docs/servicebus/listqueuekeys/). We generally recommend Azure Native as it's more closely tied to Azure, so it gets updates faster. Azure Classic uses the original Terraform bridge, so you would use these docs at https://www.pulumi.com/registry/packages/azure/api-docs/servicebus/queueauthorizationrule/ and pull the
primary_connection_string
output.
❤️ 1
d
Thank you @great-queen-39697 🙂 We already get an answere from the pulumi support ! Thank you very much.
🎉 1
and we use azure native