This series aims to showcase the integration of Azure services. It consists of several sections.
In this initial part, we concentrate on creating a document upload feature utilizing various Azure services. For the first post, we will employ these services at a fundamental level.
The document management feature is required to save various documents (such as import documents, export documents, etc.).
Prerequisites
- An Azure subscription.
- Visual Studio or Visual Studio Code.
- A basic understanding of the Azure services referenced in this article and the ability to create them (using the Azure portal or Bicep, for example) is necessary.
Tech stacks
- ASP.NET CORE 8
- Vue.js 3, PrimeVue
How we use Azure service for this functionality
+ Azure blob storage: for uploading document files.
+ Azure table storage: to store the document types
+ Azure SQL Database: to save the document information such as document type, document URL...
+ Azure App Service: to host the storage API
+ Static Web App: to serve the Vue single-page application (SPA).
To authenticate the SQL Database and Storage account, we will use connection string (shared key) for these services.
Overview architecture
1 - User access document management page, list document is loaded from SQL database and user would like to upload new document
2, 3 - SPA obtains SAS (shared access signature) token via API
4 - SPA uses SAS to upload appropriated document to blob storage
5,6 - SPA save document information to database via API.
Ultimately, you are aware of how to integrate Azure Storage, Azure App Service, Azure SQL Database, and Static Web App for your own objectives.




0 nhận xét:
Đăng nhận xét