Skip to content

Commit 7e04cc8

Browse files
authored
Merge pull request #110479 from PramodValavala-MSFT/patch-104
(AzureCXP) use localized configuration
2 parents 485e0a4 + 5945ff9 commit 7e04cc8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

includes/service-bus-ruby-setup.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ sb_host = "https://#{Azure.sb_namespace}.servicebus.windows.net"
3636
```
3737

3838
Set the namespace value to the value you created rather than the entire URL. For example, use **"yourexamplenamespace"**, not "yourexamplenamespace.servicebus.windows.net".
39+
40+
When working with multiple namespaces, you can pass the key and its name to the constructor while creating `SharedAccessSigner` objects
41+
42+
```ruby
43+
sb_namespace = '<your azure service bus namespace>'
44+
sb_sas_key_name = '<your azure service bus access keyname>'
45+
sb_sas_key = '<your azure service bus access key>'
46+
47+
signer = Azure::ServiceBus::Auth::SharedAccessSigner.new(sb_sas_key_name, sb_sas_key)
48+
sb_host = "https://#{sb_namespace}.servicebus.windows.net"
49+
```

0 commit comments

Comments
 (0)