Azure Static Web Apps (SWA) with Azure DevOps

Rate this content
Bookmark

Azure Static Web Apps were launched earlier in 2021, and out of the box, they could integrate your existing repository and deploy your Static Web App from Azure DevOps. This workshop demonstrates how to publish an Azure Static Web App with Azure DevOps.

This workshop has been presented at DevOps.js Conf 2022, check out the latest edition of this Tech Conference.

FAQ

The workshop is about Azure Static Web Apps with Azure DevOps.

The presenter of the workshop is Juarez Barbosa Jr., who works for Microsoft as the developer engagement lead.

You can find resources related to Azure DevOps on the Microsoft Azure at DevOps.JS page. It includes free resources and learning modules.

Before attending the workshop, you need to have an active Azure account and an Azure DevOps organization and project, both of which can be created for free.

No, there will not be a Q&A session at the end of the workshop. However, questions can be asked on the respective Discord channel.

Azure Heroes is a program that offers blockchain-based digital badges (NFTs) as rewards for various achievements. You can scan a QR code to get your learner badge.

To create a project in Azure DevOps, navigate to Azure DevOps, select 'Start for free,' create your DevOps organization, and then create a new project by following the on-screen instructions.

To deploy an Azure Static Web App, navigate to the Azure Portal, select 'Create a resource,' choose 'Static Web App,' and follow the instructions to configure and deploy your app.

Yes, there are free courses available on Microsoft Learn that cover different aspects of Azure Static Web Apps, including frameworks like React, Vue.js, and Blazor.

To clean up resources after the workshop, go to the Azure Portal, select 'Resource groups,' find the resource group you created, and select 'Delete resource group,' then confirm by typing the resource group name.

Juarez Barbosa Junior
Juarez Barbosa Junior
13 min
29 Mar, 2022

Comments

Sign in or register to post your comment.

Video Summary and Transcription

Thanks for joining us today! We'll have a workshop about Azure Static Web Apps with Azure DevOps. To get started, click the documentation link to find quick starts for various frameworks. You'll need an active Azure account, which you can create for free. Create a deployment pipeline by providing the necessary arguments and creating a variable with the deployment token. Finally, to clean up after the workshop, go back to the Azure portal and delete the resource group. Additional resources include complete documentation and free courses on Microsoft Learn for Azure Static Web Apps and various frameworks.

1. Introduction to Azure Static Web Apps

Short description:

Thanks for joining us today! We'll have a workshop about Azure Static Web Apps with Azure DevOps. I will present how easy it is to deploy a web application using Azure DevOps to create a pipeline. We have prepared resources for you to explore, including an introduction to Azure DevOps and building applications with Azure DevOps. Follow us on Twitter for more content and information about upcoming events. We also have the Azure Heroes program, where you can get digital badges. For the workshop, I prepared a blog post with all the steps and necessary accounts. Feel free to ask questions on the discord channel. SWA apps allow you to deploy web applications on static ones using Azure. Visit the SWA landing page for more details.

Once again, thanks for joining us today. We'll have a workshop about Azure Static Web Apps with Azure DevOps. My name is Juarez Barbosa Jr. I work for Microsoft as our developer engagement lead.

All right. So as I said, the workshop, I want to present to you how easy it is to deploy kind of web application, you know, swa1 and use Azure DevOps to create a pipeline. Also, we prepared several content and things related to the conference here today that I can share with you.

So you can see here, actually we have prepared as part of our perks several different resources to share with you. So I invite you first to visit this page here, Microsoft Azure at DevOps.JS, where we have several different resources here provided, free ones, by the way, you know. So there's an introduction to Azure DevOps as part of Microsoft Learn, you know. So there's an entire module here, so you can explore it beyond what we have to present to you here today. Also how to build applications with Azure DevOps. Same thing here, you know. There's an entire learning path here with several different courses.

And the last one, also I invite you to follow us on Twitter, you know. I work and I'm responsible for the developer engagement activities in Ireland, you know. And we have this Twitter handle when we post several different content resources and all the information about the upcoming events in our developer newsletter as well. Beyond that, we also have a very interesting program called Azure Heroes. So actually, it is about blockchain-based, you know, badges, digital badges. So this is what we call NFTs nowadays, you know. So I invite you to scan this QR code and then you can get your badger, the learner one. Actually for the workshop today, I decided to prepare a blog post, okay. So I will walk you through all the steps here and explain what you have to do and the different accounts and things to have on hand to complete the workshop today. And after that, I'll be watching your questions on the respective discord channel. Because the event organizers, they changed it a little bit, so there will be no Q&A session. I'm not gonna take questions at the end, but actually watch your questions on the respective discord channel. Okay?

So as I said, I'm sure you've heard about SWA apps, you know, static web apps, the way that you can actually deploy web applications on static ones. And you can use Cloud environment and of course Azure to orchestrate and deploy those applications. I have a link here specific to SWA with the complete documentation, you know, so you can visit it later. This is the landing page for SWA on Azure.

2. Getting Started with Azure Static Web Apps

Short description:

To get started, click the documentation link to find quick starts for various frameworks. You'll need an active Azure account, which you can create for free. Similarly, for Azure DevOps, create a free organization and project. Provide the necessary information, select a region, and complete the challenge. Then, create a project with a preferred name and select the visibility. Click on REPLs, choose the Git REPL type, and import the sample project. Finally, navigate to the Azure Portal, select create a resource, search for Static web app, and click create.

But if you click documentation here, you will find the quick starts for Angular, React, Vue.js and Null Frameworks in case you want to work with plain vanilla JavaScript.

Yes, both the prereqs for the workshop today, you need to have an active Azure account. In case you don't have one, you can create one for free.

Okay, you just need to click this link here and it will give you the opportunity to start. And by the way, we have lifelong services here that are free ones. So depending on the service, of course, but for the ones that you need for this workshop, you don't need to spend anything.

Same thing with Azure DevOps, you need to create a project for free, actually an organization and a project. So when you visit this page here, you have to click this start free button here and then you can complete the steps as I'm going to show you here now.

OK, so this is actually the first step. OK, visit Azure DevOps, select start for free. OK, and then you have to create your DevOps organization. OK, and after that, click the continue button. So you'll provide the information for your org here. As you can see my name here, Juarez Junior0833, you select a region, a cloud region. OK, West Europe in my case here. Of course, you have to complete this challenge here and then click continue. OK, as explained here. After that, your DevOps organization will be created. OK, you can see the progress indicator here.

After that, you'll see a page to create a project. OK, so you can provide your preferred name here. Mine is DevOpsJSConfSWA, OK? And then you select private or public, depending on how you want to, I would say, create it, of course, and you click the create button. Your project will be created. You can see the landing page for Azure DevOps and the respective project here.

And after that, then you have to click on the REPLs here, files, OK? And then the REPL type here will be Git, as you can see here, and then you provide the URL for the sample project, github.com static web dev vanilla-api.git. Then you click import, OK, the import button here at the bottom, OK? And then we'll see another progress indicator screen, OK? And as soon as it finishes, you will see the project imported successfully, so you can see the entire GitHub REPL replicated here and visible.

And then we can go to create the Azure Static web app, OK? So you navigate to Azure Portal, OK? If you've never accessed it, it's just a portal.azure.com, OK? You type it and it will take you to the Azure Portal. Actually, I have it open here, yes, it is here, so this is the landing page for Azure Portal, but let's go back to the tutorial here. I think this one, yes, OK. So you select create a resource, OK? After that, you look for Static web app, OK? You can see here you will see the Static web app option listed, OK? You select it, OK? And then you click Static web app, the create button, OK? After that, the landing page for Static web apps will be shown.

Watch more workshops on topic

Going on an adventure with Nuxt 3, Motion UI and Azure
JSNation 2022JSNation 2022
141 min
Going on an adventure with Nuxt 3, Motion UI and Azure
WorkshopFree
Melanie de Leeuw
Melanie de Leeuw
We love easily created and deployed web applications! So, let’s see what a very current tech stack like Nuxt 3, Motion UI and Azure Static Web Apps can do for us. It could very well be a golden trio in modern day web development. Or it could be a fire pit of bugs and errors. Either way it will be a learning adventure for us all. Nuxt 3 has been released just a few months ago, and we cannot wait any longer to explore its new features like its acceptance of Vue 3 and the Nitro Engine. We add a bit of pizzazz to our application with the Sass library Motion UI, because static design is out, and animations are in again.Our driving power of the stack will be Azure. Azure static web apps are new, close to production and a nifty and quick way for developers to deploy their websites. So of course, we must try this out.With some sprinkled Azure Functions on top, we will explore what web development in 2022 can do.
Deploying React Native Apps in the Cloud
React Summit 2023React Summit 2023
88 min
Deploying React Native Apps in the Cloud
WorkshopFree
Cecelia Martinez
Cecelia Martinez
Deploying React Native apps manually on a local machine can be complex. The differences between Android and iOS require developers to use specific tools and processes for each platform, including hardware requirements for iOS. Manual deployments also make it difficult to manage signing credentials, environment configurations, track releases, and to collaborate as a team.
Appflow is the cloud mobile DevOps platform built by Ionic. Using a service like Appflow to build React Native apps not only provides access to powerful computing resources, it can simplify the deployment process by providing a centralized environment for managing and distributing your app to multiple platforms. This can save time and resources, enable collaboration, as well as improve the overall reliability and scalability of an app.
In this workshop, you’ll deploy a React Native application for delivery to Android and iOS test devices using Appflow. You’ll also learn the steps for publishing to Google Play and Apple App Stores. No previous experience with deploying native applications is required, and you’ll come away with a deeper understanding of the mobile deployment process and best practices for how to use a cloud mobile DevOps platform to ship quickly at scale.
MERN Stack Application Deployment in Kubernetes
DevOps.js Conf 2022DevOps.js Conf 2022
152 min
MERN Stack Application Deployment in Kubernetes
Workshop
Joel Lord
Joel Lord
Deploying and managing JavaScript applications in Kubernetes can get tricky. Especially when a database also has to be part of the deployment. MongoDB Atlas has made developers' lives much easier, however, how do you take a SaaS product and integrate it with your existing Kubernetes cluster? This is where the MongoDB Atlas Operator comes into play. In this workshop, the attendees will learn about how to create a MERN (MongoDB, Express, React, Node.js) application locally, and how to deploy everything into a Kubernetes cluster with the Atlas Operator.
How to develop, build, and deploy Node.js microservices with Pulumi and Azure DevOps
DevOps.js Conf 2022DevOps.js Conf 2022
163 min
How to develop, build, and deploy Node.js microservices with Pulumi and Azure DevOps
Workshop
Alex Korzhikov
Andrew Reddikh
2 authors
The workshop gives a practical perspective of key principles needed to develop, build, and maintain a set of microservices in the Node.js stack. It covers specifics of creating isolated TypeScript services using the monorepo approach with lerna and yarn workspaces. The workshop includes an overview and a live exercise to create cloud environment with Pulumi framework and Azure services. The sessions fits the best developers who want to learn and practice build and deploy techniques using Azure stack and Pulumi for Node.js.

Check out more articles and videos

We constantly think of articles and videos that might spark Git people interest / skill us up or help building a stellar career

Levelling up Monorepos with npm Workspaces
DevOps.js Conf 2022DevOps.js Conf 2022
33 min
Levelling up Monorepos with npm Workspaces
Top Content
NPM workspaces help manage multiple nested packages within a single top-level package, improving since the release of NPM CLI 7.0. You can easily add dependencies to workspaces and handle duplications. Running scripts and orchestration in a monorepo is made easier with NPM workspaces. The npm pkg command is useful for setting and retrieving keys and values from package.json files. NPM workspaces offer benefits compared to Lerna and future plans include better workspace linking and adding missing features.
Automating All the Code & Testing Things with GitHub Actions
React Advanced Conference 2021React Advanced Conference 2021
19 min
Automating All the Code & Testing Things with GitHub Actions
Top Content
We will learn how to automate code and testing with GitHub Actions, including linting, formatting, testing, and deployments. Automating deployments with scripts and Git hooks can help avoid mistakes. Popular CI-CD frameworks like Jenkins offer powerful orchestration but can be challenging to work with. GitHub Actions are flexible and approachable, allowing for environment setup, testing, deployment, and custom actions. A custom AppleTools Eyes GitHub action simplifies visual testing. Other examples include automating content reminders for sharing old content and tutorials.
Fine-tuning DevOps for People over Perfection
DevOps.js Conf 2022DevOps.js Conf 2022
33 min
Fine-tuning DevOps for People over Perfection
Top Content
DevOps is a journey that varies for each company, and remote work makes transformation challenging. Pull requests can be frustrating and slow, but success stories like Mateo Colia's company show the benefits of deploying every day. Challenges with tools and vulnerabilities require careful consideration and prioritization. Investing in documentation and people is important for efficient workflows and team growth. Trust is more important than excessive control when deploying to production.
Why is CI so Damn Slow?
DevOps.js Conf 2022DevOps.js Conf 2022
27 min
Why is CI so Damn Slow?
Slow CI has a negative impact on productivity and finances. Debugging CI workflows and tool slowness is even worse. Dependencies impact CI and waiting for NPM or YARN is frustrating. The ideal CI job involves native programs for static jobs and lightweight environments for dynamic jobs. Improving formatter performance and linting is a priority. Performance optimization and fast tools are essential for CI and developers using slower hardware.
The Zen of Yarn
DevOps.js Conf 2022DevOps.js Conf 2022
31 min
The Zen of Yarn
Let's talk about React and TypeScript, Yarn's philosophy and long-term relevance, stability and error handling in Yarn, Yarn's behavior and open source sustainability, investing in maintenance and future contributors, contributing to the JavaScript ecosystem, open-source contribution experience, maintaining naming consistency in large projects, version consistency and strictness in Yarn, and Yarn 4 experiments for performance improvement.
Atomic Deployment for JS Hipsters
DevOps.js Conf 2024DevOps.js Conf 2024
25 min
Atomic Deployment for JS Hipsters
This Talk discusses atomic deployment for JavaScript and TypeScript, focusing on automated deployment processes, Git hooks, and using hard links to copy changes. The speaker demonstrates setting up a bare repository, configuring deployment variables, and using the post-receive hook to push changes to production. They also cover environment setup, branch configuration, and the build process. The Talk concludes with tips on real use cases, webhooks, and wrapping the deployment process.