https://pulumi.com logo
#general
Title
# general
d

dry-motorcycle-32519

12/07/2021, 2:33 PM
Hello does anybody knows how to get the connection string for a azure servicebus queue ?
👍 1
b

boundless-activity-76981

12/07/2021, 2:37 PM
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

great-queen-39697

12/07/2021, 3:37 PM
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

dry-motorcycle-32519

01/06/2022, 3:44 PM
Thank you @great-queen-39697 🙂 We already get an answere from the pulumi support ! Thank you very much.
🎉 1
and we use azure native
3 Views