MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.46k forks source link

Tutorial Documentation App Setting Mismatch for SearchServiceName vs. SearchServiceUri #107851

Closed godfathr closed 1 year ago

godfathr commented 1 year ago

The tutorial at https://learn.microsoft.com/en-us/azure/search/tutorial-csharp-create-mvc-app?source=docs appsettings.json instructions say to create an app setting called "SearchServiceName". The HomeController.InitSearch() method references "SearchServiceUri" and fails to find the value. The page should have the setting name updated to match or a null reference error is thrown when initializing the search.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

HeidiSteen commented 1 year ago

@godfathr, ouch sorry about that!! Thank you for raising the issue. I'll fix it right now.

godfathr commented 1 year ago

@HeidiSteen Great, thanks!

HeidiSteen commented 1 year ago

The doc updates are live so I'll close this issue. Feel free to reopen or circle back on this thread if you have more feedback. Thanks again!

please-close