Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Azure Static Web App and Azure blob storage static website?

What is the difference between Azure blob storage static website and Azure Static Web Apps

like image 300
Shmili Breuer Avatar asked Aug 05 '20 16:08

Shmili Breuer


People also ask

What is an Azure static Web app?

Azure Static Web Apps is a service that automatically builds and deploys full stack web apps to Azure from a code repository. The workflow of Azure Static Web Apps is tailored to a developer's daily workflow. Apps are built and deployed based off code changes.

What is the difference between Azure Web App and Azure App Service?

Azure runs App Services on a fully managed set of virtual machines in either a dedicated or shared mode, based on your App Service Plan. ... Web App – used for hosting websites and web applications (previously Azure Websites) API App – used for hosting the RESTful APIs. Not sure to understand the difference?

What does static Web app mean?

A Static Web Application is any web application that can be delivered directly to an end user's browser without any server-side alteration of the HTML, CSS, or JavaScript content.

How do I create a static website in Azure storage?

Configure static website hostingOpen the Azure portal in your web browser. Locate your storage account and display the account overview. Select Static website to display the configuration page for static websites. Select Enabled to enable static website hosting for the storage account.


2 Answers

There are lot of other benefits that comes with Azure static web apps that don't come with the static website which is hosted on blob storage.

  • Functions in the same repo.
  • TLS cert management (free!)
  • Automated preview environments
  • APIs that are scaled and hosted with your static content
  • Content and corresponding APIs logically versioned together
  • Simplified build and deployment process

UPDATE : Azure static web apps went GA since May 2021

Here is a great blog on the same.

like image 64
Sajeetharan Avatar answered Oct 07 '22 18:10

Sajeetharan


Azure Static Web Apps is a service that automatically builds and deploys full stack web apps to Azure from a GitHub repository. enter image description here

Key features

  • Web hosting for static content like HTML, CSS, JavaScript, and images. Integrated API support provided by Azure Functions.

  • First-party GitHub integration where repository changes trigger builds and deployments.

  • Globally distributed static content, putting content closer to your users.

  • Free SSL certificates, which are automatically renewed.

  • Custom domains* to provide branded customizations to your app.

  • Seamless security model with a reverse-proxy when calling APIs, which requires no CORS configuration.

  • Authentication provider integrations with Azure Active Directory, Facebook, Google, GitHub, and Twitter.

  • Customizable authorization role definition and assignments.

  • Back-end routing rules enabling full control over the content and routes you serve.

  • Generated staging versions powered by pull requests enabling preview versions of your site before publishing. Static Web Apps is free during preview. for more info about static web apps visit: https://learn.microsoft.com/en-gb/azure/static-web-apps/

Azure blob storage for static web site Since its uses blob storage you only pay for storage account. But Azure recommends using an App service with a general purpose V2 standard storage account.

IMO the cost for static web app might be slightly higher that the cost for storage account. Since you get additional benefits like Github, Authorization etc.

like image 2
Waqas ali Avatar answered Oct 07 '22 18:10

Waqas ali