Skip to content

Commit 3fe2b7d

Browse files
Corrected code for creating a queue in Azure Storage. (#4235)
1 parent 154e415 commit 3fe2b7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/storage/azure-storage-queues-integration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ In your app host project, register the Azure Queue Storage integration by chaini
2323
```csharp
2424
var builder = DistributedApplication.CreateBuilder(args);
2525

26-
var queues = builder.AddAzureStorage("storage")
27-
.AddQueues("queues");
26+
var storage = builder.AddAzureStorage("storage")
27+
.AddQueue("jobs");
2828

2929
builder.AddProject<Projects.ExampleProject>()
30-
.WithReference(queues);
30+
.WithReference(storage);
3131

3232
// After adding all resources, run the app...
3333
```
3434

3535
The preceding code:
3636

3737
- Adds an Azure Storage resource named `storage`.
38-
- Adds a queue named `queues` to the storage resource.
38+
- Adds a queue named `jobs` to the storage resource.
3939
- Adds the `storage` resource to the `ExampleProject` and waits for it to be ready before starting the project.
4040

4141
[!INCLUDE [storage-bicep](includes/storage-bicep.md)]

0 commit comments

Comments
 (0)