Skip to content

Commit 88c9aeb

Browse files
committed
update steps
1 parent 2cbee7e commit 88c9aeb

File tree

4 files changed

+16
-47
lines changed

4 files changed

+16
-47
lines changed

articles/service-bus-messaging/service-bus-dotnet-get-started-with-queues.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,27 @@ If you're new to the service, see [Service Bus overview](service-bus-messaging-o
3131
[!INCLUDE [service-bus-create-namespace-portal-passwordless](../../includes/passwordless/service-bus/service-bus-create-namespace-portal-passwordless.md)]
3232

3333
## [Connection String](#tab/connection-string)
34-
[!INCLUDE [service-bus-create-namespace-portal](../../includes/passwordless/service-bus/service-bus-create-namespace-portal-passwordless.md)]
34+
[!INCLUDE [service-bus-create-namespace-portal](./includes/service-bus-create-namespace-portal.md)]
3535

3636
---
3737

38+
[!INCLUDE [service-bus-create-queue-portal](./includes/service-bus-create-queue-portal.md)]
39+
40+
3841
[!INCLUDE [service-bus-passwordless-template-tabbed](../../includes/passwordless/service-bus/service-bus-passwordless-template-tabbed.md)]
3942

40-
[!INCLUDE [service-bus-create-queue-portal](./includes/service-bus-create-queue-portal.md)]
43+
## Launch Visual Studio and sign-in to Azure
44+
45+
You can authorize access to the service bus namespace using the following steps:
46+
47+
Select the **Sign in** button in the top right of Visual Studio.
48+
49+
:::image type="content" source="..//storage/blobs/media/storage-quickstart-blobs-dotnet/sign-in-visual-studio-small.png" alt-text="Screenshot showing the button to sign in to Azure using Visual Studio.":::
4150

51+
Sign-in using the Azure AD account you assigned a role to previously.
52+
53+
:::image type="content" source="..//storage/blobs/media/storage-quickstart-blobs-dotnet/sign-in-visual-studio-account-small.png" alt-text="Screenshot showing the account selection.":::
4254

43-
> [!IMPORTANT]
44-
> Note down the connection string to the namespace, the queue name. You'll use them later in this tutorial.
4555

4656
## Send messages to the queue
4757

@@ -78,9 +88,6 @@ This section shows you how to create a .NET console application to send messages
7888
Install-Package Azure.Identity
7989
```
8090
81-
:::image type="content" source="media/service-bus-dotnet-get-started-with-queues/package-manager-console.png" alt-text="Screenshot showing QueueReceiver project selected in the Package Manager Console.":::
82-
83-
8491
### [Connection String](#tab/connection-string)
8592
8693
1. Select **Tools** > **NuGet Package Manager** > **Package Manager Console** from the menu.
@@ -90,9 +97,6 @@ This section shows you how to create a .NET console application to send messages
9097
Install-Package Azure.Messaging.ServiceBus
9198
```
9299
93-
:::image type="content" source="media/service-bus-dotnet-get-started-with-queues/package-manager-console.png" alt-text="Screenshot showing QueueReceiver project selected in the Package Manager Console.":::
94-
95-
96100
---
97101
98102

articles/service-bus-messaging/service-bus-dotnet-how-to-use-topics-subscriptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ If you're new to the service, see [Service Bus overview](service-bus-messaging-o
4141
[!INCLUDE [service-bus-create-namespace-portal-passwordless](../../includes/passwordless/service-bus/service-bus-create-namespace-portal-passwordless.md)]
4242

4343
## [Connection String](#tab/connection-string)
44-
[!INCLUDE [service-bus-create-namespace-portal](../../includes/passwordless/service-bus/service-bus-create-namespace-portal-passwordless.md)]
44+
[!INCLUDE [service-bus-create-namespace-portal](./includes/service-bus-create-namespace-portal.md)]
4545

4646
---
4747

includes/passwordless/service-bus/service-bus-assign-roles.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ If you want to create a custom role, see [Rights required for Service Bus operat
2626
> [!IMPORTANT]
2727
> In most cases, it will take a minute or two for the role assignment to propagate in Azure. In rare cases, it may take up to eight minutes. If you receive authentication errors when you first run your code, wait a few moments and try again.
2828
29-
### [Azure portal](#tab/roles-azure-portal)
30-
3129
1. In the Azure portal, locate your service bus namespace using the main search bar or left navigation.
3230

3331
2. On the overview page, select **Access control (IAM)** from the left-hand menu.
@@ -46,36 +44,3 @@ If you want to create a custom role, see [Rights required for Service Bus operat
4644

4745
8. Select **Review + assign** to go to the final page, and then **Review + assign** again to complete the process.
4846

49-
### [Azure CLI](#tab/roles-azure-cli)
50-
51-
To assign a role at the resource level using the Azure CLI, you first must retrieve the resource ID using the `az servicebus namespace show` command. You can filter the output properties using the `--query` parameter.
52-
53-
```azurecli
54-
az servicebus namespace show -g '<your-service-bus-resource-group>' -n '<your-service-bus-name> --query id
55-
```
56-
57-
Copy the output `Id` from the preceding command. You can then assign roles using the [az role](/cli/azure/role) command of the Azure CLI.
58-
59-
```azurecli
60-
az role assignment create --assignee "<user@domain>" \
61-
--role "Azure Service Bus Data Owner" \
62-
--scope "<your-resource-id>"
63-
```
64-
65-
### [PowerShell](#tab/roles-powershell)
66-
67-
To assign a role at the resource level using Azure PowerShell, you first must retrieve the resource ID using the `Get-AzResource` command.
68-
69-
```azurepowershell
70-
Get-AzResource -ResourceGroupName "<your-service-bus-resource-group>" -Name "<your-service-bus-name>"
71-
```
72-
73-
Copy the `Id` value from the preceding command output. You can then assign roles using the [New-AzRoleAssignment](/powershell/module/az.resources/new-azroleassignment) command in PowerShell.
74-
75-
```azurepowershell
76-
New-AzRoleAssignment -SignInName <user@domain> `
77-
-RoleDefinitionName "Azure Service Bus Data Owner" `
78-
-Scope <yourStorageAccountId>
79-
```
80-
81-
---

includes/passwordless/service-bus/service-bus-create-namespace-portal-passwordless.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ To begin using Service Bus messaging entities in Azure, you must first create a
1616
To create a namespace:
1717

1818
1. Sign in to the [Azure portal](https://portal.azure.com)
19-
2. In the left navigation pane of the portal, select **+ Create a resource**, select **Integration**, and then select **Service Bus**.
19+
2. In the left navigation pane of the portal, select **All services**, select **Integration** from the list of categories, hover the mouse over **Service Bus**, and then select **Create** on the Service Bus tile.
2020

2121
:::image type="content" source="./media/service-bus-create-namespace-portal/create-resource-service-bus-menu.png" alt-text="Image showing selection of Create a resource, Integration, and then Service Bus in the menu.":::
2222
3. In the **Basics** tag of the **Create namespace** page, follow these steps:

0 commit comments

Comments
 (0)