Skip to content

Minor clean up #1045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/storage/azure-storage-components.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Connect an ASP.NET Core app to .NET Aspire storage components
description: Learn how to connect an ASP.NET Core app to .NET Aspire storage components.
ms.date: 05/22/2024
ms.date: 06/05/2024
ms.topic: tutorial
zone_pivot_groups: azure-storage-mechanism
ms.custom: devx-track-extended-azdevcli
Expand Down Expand Up @@ -61,7 +61,6 @@ az storage queue create -n tickets --account-name aspirestorage
```

:::zone-end

:::zone pivot="azure-portal,azure-cli"

You also need to assign the following roles to the user account you are logged into Visual Studio with:
Expand All @@ -70,7 +69,6 @@ You also need to assign the following roles to the user account you are logged i
- Storage Queue Data Contributor - [Assign an Azure RBAC role](/azure/storage/queues/assign-azure-role-data-access?tabs=portal)

:::zone-end

:::zone pivot="azure-developer-cli"

The [Azure Developer CLI](/azure/developer/azure-developer-cli/overview) enables you to provision and deploy Azure resources using a template system. This tutorial provides a [complete template](https://github.com/Azure-Samples/dotnet-aspire-connect-storage.git) that provisions the required Azure resources and includes the completed sample application code. Run the following commands to initialize and run the template:
Expand Down Expand Up @@ -158,7 +156,8 @@ Next, add a Worker Service project to the solution to retrieve and process messa
Visual Studio adds the project to your solution and updates the _:::no-loc text="Program.cs":::_ file of the _AspireStorage.AppHost_ project with a new line of code:

```csharp
builder.AddProject<Projects.AspireStorage_WorkerService>("aspirestorage-workerservice");
builder.AddProject<Projects.AspireStorage_WorkerService>(
"aspirestorage-workerservice");
```

Visual Studio tooling added this line of code to register your new project with the <xref:Aspire.Hosting.IDistributedApplicationBuilder> object, which enables orchestration features. For more information, see [.NET Aspire orchestration overview](../fundamentals/app-host-overview.md).
Expand Down Expand Up @@ -186,7 +185,8 @@ Visual Studio tooling added this line of code to register your new project with
1. Add the following line of code to the _:::no-loc text="Program.cs":::_ file in the **AspireStorage.AppHost** project:

```csharp
builder.AddProject<Projects.AspireStorage_WorkerService>("aspirestorage-workerservice");
builder.AddProject<Projects.AspireStorage_WorkerService>(
"aspirestorage-workerservice");
```

---
Expand Down
Loading