This pull request to src/HelloDallE adds new functionality for interacting with Azure Storage, including new classes and methods for defining storage account settings and retrieving questions from Azure Table Storage. It also adds new JSON files for defining storage account dependencies and deploying a storage account to Azure, and updates the HelloDallE.csproj project file to include package references for Azure Storage and Microsoft Extensions.
src/HelloDallE/Services/DataService.cs: Added a new data service for storing and retrieving questions from Azure Table Storage, with a new interface and class.
src/HelloDallE/Program.cs: Added AddAzureClients method to add blob and queue service clients to the client builder with connection strings from the configuration and sets the preferMsi flag to true.
src/HelloDallE/Pages/Index.razor: The Index component now retrieves questions from a data service and displays a warning message if the retrieval fails. (F7d0f1c6)
This pull request to
src/HelloDallE
adds new functionality for interacting with Azure Storage, including new classes and methods for defining storage account settings and retrieving questions from Azure Table Storage. It also adds new JSON files for defining storage account dependencies and deploying a storage account to Azure, and updates theHelloDallE.csproj
project file to include package references for Azure Storage and Microsoft Extensions.Main interface changes:
src/HelloDallE/AzureClientFactoryBuilderExtensions.cs
: Added two extension methods toAzureClientFactoryBuilder
for adding blob and queue service clients.src/HelloDallE/Services/DataService.cs
: Added a new data service for storing and retrieving questions from Azure Table Storage, with a new interface and class.src/HelloDallE/Services/AzureStorageAccountSettings.cs
: Added a new class to define Azure Storage Account settings.Configuration improvements:
src/HelloDallE/HelloDallE.csproj
: Added package references for Azure Storage and Microsoft Extensions.src/HelloDallE/Program.cs
: AddedAddAzureClients
method to add blob and queue service clients to the client builder with connection strings from the configuration and sets thepreferMsi
flag totrue
.src/HelloDallE/Properties/serviceDependencies.json
: Updated storage account dependency definition to include type and connection ID.src/HelloDallE/Properties/serviceDependencies.local.json
: Added a JSON file for defining a storage account dependency.Deployment changes:
src/HelloDallE/Properties/ServiceDependencies/local/storage1.arm.json
: Added a JSON template file for deploying a storage account to Azure.UI changes:
src/HelloDallE/Pages/Index.razor
: TheIndex
component now retrieves questions from a data service and displays a warning message if the retrieval fails. (F7d0f1c6)