Introducing App Service Static Web Apps
Published May 19 2020 07:28 AM 52.3K Views
Microsoft

Modern web apps are increasingly adopting static front-end design patterns with client-side processing powered by JavaScript. This paradigm requires us to think differently about how we deploy and host web apps that don’t rely on web servers and consequently require a new structure of supporting cloud resources. This week at Build, our annual celebration of all things developer, we are happy to announce that Azure App Service has been expanded with a new hosting offer tailored specifically for static web apps, empowering developers to focus on the business logic that differentiates their apps rather than the infrastructure that hosts them.

 

App Service Static Web Apps is now available in preview for developers building modern, full stack JavaScript web apps with static front-ends and optional dynamic back-ends powered by serverless APIs.

SWA.png

With Static Web Apps, developers can use modular and extensible patterns to deploy apps in minutes while taking advantage of the built-in scaling and cost-savings offered by serverless technologies. Pre-rendering static content (including HTML, CSS, JavaScript, and image files) and leveraging global content distribution to serve this content removes the need for traditional web servers generating the content with every request. Moving dynamic logic to serverless APIs unlocks dynamic scale that can adjust to demand in real time and can empower developers to access the benefits of microservices as they evolve and extend individual app components. The service is designed for developers using frameworks like Angular, React, Svelte, and Vue or static site generators like Gatsby looking for a simple interface to deploy the cloud resources.

 

Go from code to scale!

Static Web Apps automates the tedium of getting your static web app from source code in GitHub to global high-availability hosting. The development experience is optimized around the open-source tools developers already use, from a dedicated VS Code extension for local development to native Github workflows for CI/CD powered by GitHub Actions.

 

Validate pre-production changes easily with pull request previews. When a pull request is submitted, the branch is automatically built in a pre-production environment and a preview URL is provided right in the Github pull request comment thread.

SWAEnv.gif

Static Web Apps integrates with Azure Functions to provision serverless APIs that enable dynamic, fully-featured backend services that are securely accessible from the static front-end.

SWAdiagram.png

The service also supports a unified definition for routing rules and authorization behavior across the static content and dynamic APIs. You can even generate invitations to associate end users with roles for multiple identity providers. Authorized users are granted access to routes by rules you define in a routes.json file.

Auth.png

 

Learn more and get started today

More feature are available to explore in the Static Web Apps documentation including mapping custom domains and app settings configuration. The Static Web Apps public preview starts with a Free plan so you can explore this new solution without charges for the hosting and global distribution of the static web app content.

 

Get started today!

 

We’d love to hear your feedback! Please open an issue in the Static Web Apps Github repo.

 

 

 

9 Comments

Perhaps we can also mention Blazor WASM too along with the other frameworks @DariaGrigoriu . We will be using this extension in our OSS project. We blogged about it too.

 

https://tech.hackmum.in/blog/MSBuild-2020/

 

 

 

Brass Contributor

Nice! Why only github ? What about Azure Devops as source control?

 

Copper Contributor

Is it possible to have an HTML page that takes a file upload, with the upload saved to the same Storage space for later download by others?

 

Copper Contributor

Seconding the request to have this integrate with Azure DevOps. I understand that the road map is to eventually move everything to GitHub, but as of now the features for that platform are far behind AzDO which is what 99% of my clients are using.

Copper Contributor

I am extremely interested in this technology. Is there a blog or news source that we can visit to get up-to-date information on roadmaps, releases and updates?

Copper Contributor

@bsatroop179 Yes, your static website can take files, upload them and then make them available for download. You just have to enable it with some JavaScript and the Azure Storage API.

Copper Contributor

This is great, I would also like to know like @oadrian where I can get a roadmap and up to date information. I would need a way to use the authentification system with roles from my AAD. This does not seem to be directly possible at the moment.

MVP

We are loving Azure Static Web Apps with Azure functions for APIs.   I am not able to find information on how to add a function key to the API when using

  "authLevel""function".
 
Any feedback is greatly appreciated.
Thanks,
 
Ozkary
Brass Contributor

Hi @bsatroop179 ,

 

I think that all you need is a shared access token to be able to use azure storage rest endpoint and invoke the one for upload!

 

Version history
Last update:
‎May 19 2020 07:28 AM
Updated by: