Skip to content

Commit 26d8d04

Browse files
adjust variable names for existing resource example (#2707)
1 parent 9009f6a commit 26d8d04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/whats-new/dotnet-aspire-9.1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ For more information, see the following updated articles:
258258
There's consistent feedback about making it easier to connect to existing Azure resources in .NET Aspire. With 9.1, you can now easily connect to an existing Azure resource either directly by `string` name, or with [app model parameters](../fundamentals/external-parameters.md) which can be changed at deployment time. For example to connect to an Azure Service Bus account, we can use the following code:
259259

260260
```csharp
261-
var serviceBusName = builder.AddParameter("serviceBusName");
262-
var serviceBusResourceGroup = builder.AddParameter("serviceBusResourceGroup");
261+
var existingServiceBusName = builder.AddParameter("serviceBusName");
262+
var existingServiceBusResourceGroup = builder.AddParameter("serviceBusResourceGroup");
263263

264264
var serviceBus = builder.AddAzureServiceBus("messaging")
265265
.AsExisting(existingServiceBusName, existingServiceBusResourceGroup);

0 commit comments

Comments
 (0)