From 6b52e539a71c8136d51b6dad3031eb0ddd40c641 Mon Sep 17 00:00:00 2001 From: David Pine Date: Fri, 1 Dec 2023 11:26:13 -0600 Subject: [PATCH] More tweaks, use the actual JSON files --- docs/storage/azure-storage.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/docs/storage/azure-storage.md b/docs/storage/azure-storage.md index c356da2ecc..fe3f97630f 100644 --- a/docs/storage/azure-storage.md +++ b/docs/storage/azure-storage.md @@ -138,12 +138,7 @@ When the _AspireStorage_ project starts, it will create a `fileuploads` containe In the _appsettings.json_ file of the _AspireStorage_ project, add the corresponding connection information: -```json -"ConnectionStrings": { - "BlobConnection": "https://{account_name}.blob.core.windows.net/", - "QueueConnection": "https://{account_name}.queue.core.windows.net/" -} -``` +:::code language="json" source="snippets/tutorial/AspireStorage/AspireStorage/appsettings.json" highlight="9-12"::: ## Add the .NET Aspire component to the Worker Service @@ -164,15 +159,11 @@ This method handles the following tasks: In the _appsettings.json_ file of the _AspireStorage.Worker_ project, add the corresponding connection string information: -```json -"ConnectionStrings": { - "QueueConnection": "https://{account_name}.queue.core.windows.net/" -} -``` +:::code language="json" source="snippets/tutorial/AspireStorage/AspireStorage.Worker/appsettings.json" highlight="8-10"::: ## Create the form -The app requires a form for the user to be able to submit support ticket information and upload an attachment. The app uploads the attached file on the `Document` property to Azure Blob Storage using the injected . The sends a message composed of the `Title` and `Description` to the Azure Storage Queue. +The app requires a form for the user to be able to submit support ticket information and upload an attachment. The app uploads the attached file on the `Document` () property to Azure Blob Storage using the injected . The sends a message composed of the `Title` and `Description` to the Azure Storage Queue. Use the following Razor markup to create a basic form, replacing the contents of the _Home.razor_ file in the _AspireStorage/Components/Pages_ directory: