You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.":::
41
50
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.":::
42
54
43
-
> [!IMPORTANT]
44
-
> Note down the connection string to the namespace, the queue name. You'll use them later in this tutorial.
45
55
46
56
## Send messages to the queue
47
57
@@ -78,9 +88,6 @@ This section shows you how to create a .NET console application to send messages
78
88
Install-Package Azure.Identity
79
89
```
80
90
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
-
84
91
### [Connection String](#tab/connection-string)
85
92
86
93
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
90
97
Install-Package Azure.Messaging.ServiceBus
91
98
```
92
99
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.":::
Copy file name to clipboardExpand all lines: includes/passwordless/service-bus/service-bus-assign-roles.md
-35Lines changed: 0 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,8 +26,6 @@ If you want to create a custom role, see [Rights required for Service Bus operat
26
26
> [!IMPORTANT]
27
27
> 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.
28
28
29
-
### [Azure portal](#tab/roles-azure-portal)
30
-
31
29
1. In the Azure portal, locate your service bus namespace using the main search bar or left navigation.
32
30
33
31
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
46
44
47
45
8. Select **Review + assign** to go to the final page, and then **Review + assign** again to complete the process.
48
46
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.
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" `
Copy file name to clipboardExpand all lines: includes/passwordless/service-bus/service-bus-create-namespace-portal-passwordless.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ To begin using Service Bus messaging entities in Azure, you must first create a
16
16
To create a namespace:
17
17
18
18
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.
20
20
21
21
:::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.":::
22
22
3. In the **Basics** tag of the **Create namespace** page, follow these steps:
0 commit comments