Skip to content

Commit 5c11197

Browse files
committed
missing instructions to get connection string
1 parent 6e60d20 commit 5c11197

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: include file
3+
description: include file
4+
services: service-bus-messaging
5+
author: spelluru
6+
ms.service: service-bus-messaging
7+
ms.topic: include
8+
ms.date: 02/02/2022
9+
ms.author: spelluru
10+
ms.custom: include file
11+
---
12+
13+
## Get connection string to the namespace (Azure portal)
14+
Creating a new namespace automatically generates an initial Shared Access Signature (SAS) policy with primary and secondary keys, and primary and secondary connection strings that each grant full control over all aspects of the namespace. See [Service Bus authentication and authorization](../service-bus-authentication-and-authorization.md) for information about how to create rules with more constrained rights for regular senders and receivers.
15+
16+
A client can use the connection string to connect to the Service Bus namespace. To copy the primary connection string for your namespace, follow these steps:
17+
18+
1. On the **Service Bus Namespace** page, select **Shared access policies** on the left menu.
19+
3. On the **Shared access policies** page, select **RootManageSharedAccessKey**.
20+
4. In the **Policy: RootManageSharedAccessKey** window, select the copy button next to **Primary Connection String**, to copy the connection string to your clipboard for later use. Paste this value into Notepad or some other temporary location.
21+
22+
:::image type="content" source="./media/service-bus-create-namespace-portal/connection-string.png" lightbox="./media/service-bus-create-namespace-portal/connection-string.png" alt-text="Screenshot shows an S A S policy called RootManageSharedAccessKey, which includes keys and connection strings.":::
23+
24+
You can use this page to copy primary key, secondary key, primary connection string, and secondary connection string.

articles/service-bus-messaging/service-bus-dotnet-multi-tier-app-using-service-bus-queues.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ The first step is to create a *namespace*, and obtain a [Shared Access Signature
9595

9696
[!INCLUDE [service-bus-create-namespace-portal](./includes/service-bus-create-namespace-portal.md)]
9797

98+
[!INCLUDE [get-namespace-connection-string](./includes/get-namespace-connection-string.md)]
99+
98100
## Create a web role
99101

100102
In this section, you build the front end of your application. First, you

articles/service-bus-messaging/service-bus-tutorial-topics-subscriptions-portal.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ Each [subscription to a topic](service-bus-messaging-overview.md#topics) can rec
3838

3939
[!INCLUDE [service-bus-create-namespace-portal](./includes/service-bus-create-namespace-portal.md)]
4040

41+
42+
[!INCLUDE [get-namespace-connection-string](./includes/get-namespace-connection-string.md)]
43+
4144
[!INCLUDE [service-bus-create-topics-three-subscriptions-portal](./includes/service-bus-create-topics-three-subscriptions-portal.md)]
4245

4346

0 commit comments

Comments
 (0)