Jen
Jen

Reputation: 87

How to read service bus connection string in arm template

what is the best way to read service bus connection string from different resource group in arm template without any hardcoded values?

"connectionString": "[listKeys(resourceId('Microsoft.ServiceBus/namespaces/authorizationRules', parameters('servicebusname'), 'RootManageSharedAccessKey'), '2017-04-01').primaryConnectionString]"

Here the apiversion is hard coded , how can I get it programmatically?

Upvotes: 0

Views: 418

Answers (1)

MayankBargali
MayankBargali

Reputation: 750

API versions are used to distinguish between different APIs. API versioning is the practice of transparently managing changes to your API. It doesn't matter for prod and non-prod environments at your end as it is specific to the service. For more details on ARM template for service bus you can refer to document here. For different API version for service bus what is added/removed you can refer to this document.

Upvotes: 0

Related Questions