{"id":66737,"date":"2023-02-01T16:12:33","date_gmt":"2023-02-01T15:12:33","guid":{"rendered":""},"modified":"2023-02-01T16:21:47","modified_gmt":"2023-02-01T15:21:47","slug":"using-github-actions-to-deploy-an-azure-static-web-app","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/","title":{"rendered":"Using GitHub Actions to deploy an Azure Static Web App"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-1024x373.webp\" alt=\"A header showing the GitHub logo next to an illustration of Bit the Raccoon\" class=\"wp-image-59088 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-1024x373.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-300x109.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-768x280.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-1536x560.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-800x292.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-400x146.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader.webp 1920w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/githubheader-1024x373.webp\"><\/figure>\n\n\n\n<p>In this article we will make a static web app and deploy to Azure using GitHub actions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a static web app?<\/h2>\n\n\n\n<p>In modern web development, the front end application that the user accesses in their browser is often purely HTML, CSS and JavaScript, meaning the application can be used entirely with the user\u2019s browser. This is a static web application and uses principals often referred to as JAM Stack (JavaScript, APIs, Markup).&nbsp;<\/p>\n\n\n\n<p>Any dynamic interactions are achieved by APIs hosted within separate applications, such as <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/azure-functions\/functions-overview?ocid=AID3051534\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Functions<\/a>. This allows the applications to be maintained and hosted separately with their own deployment pipelines.<\/p>\n\n\n\n<p>Separating the frontend to a static web app allows the hosting to be more lightweight than a full application, including server-side technologies, and supports a microservice architecture.&nbsp;<\/p>\n\n\n\n<p>In Azure, we can host our static application on <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/static-web-apps\/overview?ocid=AID3051534\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Static Web Apps<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Creating our Static Web App<\/h2>\n\n\n\n<p>Let\u2019s start by creating our repository in GitHub:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-1024x600.webp\" alt=\"An image showing the repository creation process on GitHub\" class=\"wp-image-66752 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-1024x600.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-300x176.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-768x450.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-1536x901.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-800x469.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-400x235.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image12-1024x600.webp\"><\/figure>\n\n\n\n<p>I am going to use <a href=\"https:\/\/github.com\/features\/codespaces?ocid=AID3051534\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub Codespaces<\/a> to build my application, but you can build on your own machine and commit to your repository using your preferred development tools. If using GitHub, you can click on the \u201cCode\u201d button and select \u201cCodespaces\u201d to set up a new space for this repo. Codespaces sets up a development environment in the cloud &#8211; if you have used Visual Studio Code, this will look very familiar!<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-1024x525.webp\" alt=\"A screenshot of the newly created repository.\" class=\"wp-image-66741 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-1024x525.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-300x154.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-768x393.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-1536x787.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-800x410.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-400x205.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image1-1024x525.webp\"><\/figure>\n\n\n\n<p>I am most experienced with .NET technologies so I am going to use a Blazor Web Assembly as my static web app here, but you can use your preferred framework such as React or Vue.<\/p>\n\n\n\n<p>In the Codespaces \u201cterminal\u201d tab, run <em>dotnet new blazorwasm<\/em> to create a templated Blazor application with some sample pages.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-1024x224.webp\" alt=\"A view of the terminal on GitHub.\" class=\"wp-image-66749 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-1024x224.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-300x66.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-768x168.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-1536x336.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-800x175.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-400x87.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image9-1024x224.webp\"><\/figure>\n\n\n\n<p>Now, if we look at the files in the file directory, we can see the folders and files for the template application. Let\u2019s see what it looks like in browser &#8211; run <em>dotnet run<\/em> and it will build and run on a localhost port.&nbsp;<\/p>\n\n\n\n<p>Of course, in a real application we would make a lot of changes before being ready for deployment, but for now we can commit and push our changes to our GitHub repo.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5-1024x347.webp\" alt=\"An image showing the demo repo being built.\" class=\"wp-image-66745 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5-1024x347.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5-300x102.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5-768x260.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5-800x271.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5-400x135.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5.webp 1462w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image5-1024x347.webp\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Creating your Static Web App<\/h2>\n\n\n\n<p>Now that we have our application running locally and pushed to our repo, let\u2019s get our Azure Static Web App ready to deploy to. Within Azure create a resource of type \u201cStatic Web App\u201d, selecting the relevant details for your subscription, resource group, plan type and region.<\/p>\n\n\n\n<p>You will have an option to choose where to deploy from. In this example I am choosing my GitHub repo but you can also link to Azure DevOps or another source control. You can also deploy to your application using the Azure SWA CLI but in this example I want to show the integration with GitHub.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-1024x879.webp\" alt=\"Filling in the Create Static Web App form.\" class=\"wp-image-66751 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-1024x879.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-300x258.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-768x660.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-1536x1319.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-800x687.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-400x343.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11.webp 1890w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image11-1024x879.webp\"><\/figure>\n\n\n\n<p>When selecting GitHub, I am asked to authenticate to my GitHub account and select the repo and branch. As previously mentioned, you can choose your relevant framework, Blazor in my example. You can tell it which folder within your repo to use in your deployment, as well as any API links such as Azure Functions (but we have static client side assets only in our example). We can then select \u201creview + create\u201d and let Azure takeover.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-1024x830.webp\" alt=\"A screenshot showing the completion of the workflow file.\" class=\"wp-image-66750 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-1024x830.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-300x243.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-768x622.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-1536x1245.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-800x648.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-400x324.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10.webp 1671w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image10-1024x830.webp\"><\/figure>\n\n\n\n<p>Initially, your application will look like this holding page:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-1024x381.webp\" alt=\"A screenshot showing confirmation of the Azure Static Web App being live.\" class=\"wp-image-66744 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-1024x381.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-300x112.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-768x285.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-1536x571.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-800x297.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-400x149.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image4-1024x381.webp\"><\/figure>\n\n\n\n<p>While Azure creates the SWA resource, you will see a new commit with a .yml file in your GitHub repo. This represents a GitHub Action, a workflow that can automatically run on push or PR for example. If you haven\u2019t worked with .yml or Actions before, this is a great way to understand how they work. The auto-generated one has configuration for deploying to Azure on push to your repo. Let\u2019s check the \u201cActions\u201d tab and we\u2019ll see it working on our deployment:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-1024x316.webp\" alt=\"The actions tab on GitHub of the new deployment.\" class=\"wp-image-66747 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-1024x316.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-300x92.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-768x237.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-1536x473.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-800x247.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-400x123.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image7-1024x316.webp\"><\/figure>\n\n\n\n<p>You can take a look at the .yml file in this example <a href=\"https:\/\/github.com\/crgrieve\/StaticWebAppDemo\/blob\/main\/.github\/workflows\/azure-static-web-apps-gray-flower-0db87d010.yml\" target=\"_blank\" rel=\"noreferrer noopener\">over on GitHub<\/a>.<\/p>\n\n\n\n<p>Now that we have run this Action successfully, lets refresh our Azure Static Web App and (*drumroll*)&#8230; it\u2019s now showing our Blazor application! Our GitHub pipeline was successful and will auto deploy on push to main.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-1024x467.webp\" alt=\"The web app displaying within a browser.\" class=\"wp-image-66743 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-1024x467.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-300x137.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-768x350.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-1536x700.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-800x365.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-400x182.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image3-1024x467.webp\"><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Reviewing your PRs on preview environments<\/h2>\n\n\n\n<p>One feature I find really powerful on Azure SWA is the ease of preview environment creation. First, if we look at our .yml file, we can see there is a workflow for pull request creation. To test this out, I am back to my codebase and make a change to the menu colour and commit the changes to a branch. We can then create a Pull Request from this branch.<\/p>\n\n\n\n<p>If we have a look on the Actions tab again, we\u2019ll see it\u2019s running on my \u201cexample-branch\u201d.<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-1024x287.webp\" alt=\"The workflow showing the nav colour change.\" class=\"wp-image-66746 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-1024x287.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-300x84.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-768x216.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-1536x431.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-800x225.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-400x112.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image6-1024x287.webp\"><\/figure>\n\n\n\n<p>Once this completes, we can see a URL in the detail of the Action workflow. This is the deployment location of the preview environment for this PR on Azure, with the main branch still being on the original SWA URL. I love this feature as it means that as well as reviewing code in a PR, we can also view the changes on a live web app as part of our review. We could also share the link with project stakeholders to get immediate feedback before merge and deployment to main.<\/p>\n\n\n\n<p>Here we can see both of the deployed web apps from the main branch and PR branch side by side:<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-1024x507.webp\" alt=\"The deployed web apps displayed side by side.\" class=\"wp-image-66748 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-1024x507.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-300x148.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-768x380.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-1536x760.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-800x396.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-400x198.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image8-1024x507.webp\"><\/figure>\n\n\n\n<p>From within the Azure portal, you can see all your active environments in the \u201cenvironments\u201d tab. Here we can see the production URL (based on main branch) and any preview environments (my \u201cexample- branch\u201d in this example):<\/p>\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-1024x401.webp\" alt=\"The environments view of the static web app.\" class=\"wp-image-66742 webp-format\" srcset=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-1024x401.webp 1024w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-300x118.webp 300w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-768x301.webp 768w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-1536x602.webp 1536w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-800x313.webp 800w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-400x157.webp 400w, https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2.webp 1999w\" data-orig-src=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2023\/02\/image2-1024x401.webp\"><\/figure>\n\n\n\n<p>Once the reviewer is happy with the changes, they can approve and merge. Once merged, the GitHub action will automatically close the PR preview environment and deploy the changes to the main static web app.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>And just like that, we have created a new application and deployed it to Azure Static Web Apps! As shown, with GitHub actions we can create reliable and repeatable deployment and review workflows using .yml configuration. <\/p>\n\n\n\n<p>Hopefully this has given you an overview of the benefits of these tools and will let you integrate to your own processes. Have fun!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Learn more<\/h2>\n\n\n<ul>\n<li>You can find more from Carole <a href=\"https:\/\/carole.dev\/blog\/\" target=\"_blank\" rel=\"noopener\">on her blog<\/a><\/li>\n<li><a href=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/01\/17\/getting-started-with-github?ocid=AID3051534\" target=\"_blank\" rel=\"noopener\">Getting started with GitHub<\/a><\/li>\n<li><a href=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2022\/11\/11\/a-look-at-the-announcements-from-github-universe?ocid=AID3051534\" target=\"_blank\" rel=\"noopener\">A look at the announcements from GitHub Universe<\/a><\/li>\n<\/ul>\n\n\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this article, Carole Rennie Logan shows you how to make a static web app, then deploy it to Azure using GitHub actions.<\/p>\n","protected":false},"author":430,"featured_media":59085,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","footnotes":""},"categories":[594],"post_tag":[128,1935,519],"content-type":[],"coauthors":[1676],"class_list":["post-66737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technetuk","tag-azure","tag-github","tag-technet-uk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using GitHub Actions to deploy an Azure Static Web App - Microsoft Industry Blogs - United Kingdom<\/title>\n<meta name=\"description\" content=\"In this article, Carole Rennie Logan shows you how to make a static web app, then deploy it to Azure using GitHub actions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using GitHub Actions to deploy an Azure Static Web App - Microsoft Industry Blogs - United Kingdom\" \/>\n<meta property=\"og:description\" content=\"In this article, Carole Rennie Logan shows you how to make a static web app, then deploy it to Azure using GitHub actions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Industry Blogs - United Kingdom\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-01T15:12:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-01T15:21:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.png\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Carole Rennie Logan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carole Rennie Logan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 min read\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/\"},\"author\":[{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/author\/carole-rennie-logan\/\",\"@type\":\"Person\",\"@name\":\"Carole Rennie Logan\"}],\"headline\":\"Using GitHub Actions to deploy an Azure Static Web App\",\"datePublished\":\"2023-02-01T15:12:33+00:00\",\"dateModified\":\"2023-02-01T15:21:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/\"},\"wordCount\":1070,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp\",\"keywords\":[\"Azure\",\"GitHub\",\"TechNet UK\"],\"articleSection\":[\"TechNet UK\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/\",\"name\":\"Using GitHub Actions to deploy an Azure Static Web App - Microsoft Industry Blogs - United Kingdom\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp\",\"datePublished\":\"2023-02-01T15:12:33+00:00\",\"dateModified\":\"2023-02-01T15:21:47+00:00\",\"description\":\"In this article, Carole Rennie Logan shows you how to make a static web app, then deploy it to Azure using GitHub actions.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp\",\"contentUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp\",\"width\":800,\"height\":450,\"caption\":\"A thumbnail showing the GitHub logo next to an illustration of Bit the Raccoon\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using GitHub Actions to deploy an Azure Static Web App\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/\",\"name\":\"Microsoft Industry Blogs - United Kingdom\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization\",\"name\":\"Microsoft Industry Blogs - United Kingdom\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png\",\"contentUrl\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png\",\"width\":259,\"height\":194,\"caption\":\"Microsoft Industry Blogs - United Kingdom\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using GitHub Actions to deploy an Azure Static Web App - Microsoft Industry Blogs - United Kingdom","description":"In this article, Carole Rennie Logan shows you how to make a static web app, then deploy it to Azure using GitHub actions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/","og_locale":"en_US","og_type":"article","og_title":"Using GitHub Actions to deploy an Azure Static Web App - Microsoft Industry Blogs - United Kingdom","og_description":"In this article, Carole Rennie Logan shows you how to make a static web app, then deploy it to Azure using GitHub actions.","og_url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/","og_site_name":"Microsoft Industry Blogs - United Kingdom","article_published_time":"2023-02-01T15:12:33+00:00","article_modified_time":"2023-02-01T15:21:47+00:00","og_image":[{"width":800,"height":450,"url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.png","type":"image\/png"}],"author":"Carole Rennie Logan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Carole Rennie Logan","Est. reading time":"4 min read"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#article","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/"},"author":[{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/author\/carole-rennie-logan\/","@type":"Person","@name":"Carole Rennie Logan"}],"headline":"Using GitHub Actions to deploy an Azure Static Web App","datePublished":"2023-02-01T15:12:33+00:00","dateModified":"2023-02-01T15:21:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/"},"wordCount":1070,"commentCount":0,"publisher":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization"},"image":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp","keywords":["Azure","GitHub","TechNet UK"],"articleSection":["TechNet UK"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/","name":"Using GitHub Actions to deploy an Azure Static Web App - Microsoft Industry Blogs - United Kingdom","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage"},"image":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage"},"thumbnailUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp","datePublished":"2023-02-01T15:12:33+00:00","dateModified":"2023-02-01T15:21:47+00:00","description":"In this article, Carole Rennie Logan shows you how to make a static web app, then deploy it to Azure using GitHub actions.","breadcrumb":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#primaryimage","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp","contentUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2022\/03\/GithubThumb.webp","width":800,"height":450,"caption":"A thumbnail showing the GitHub logo next to an illustration of Bit the Raccoon"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2023\/02\/01\/using-github-actions-to-deploy-an-azure-static-web-app\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/"},{"@type":"ListItem","position":2,"name":"Using GitHub Actions to deploy an Azure Static Web App"}]},{"@type":"WebSite","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#website","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/","name":"Microsoft Industry Blogs - United Kingdom","description":"","publisher":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#organization","name":"Microsoft Industry Blogs - United Kingdom","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png","contentUrl":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-content\/uploads\/sites\/22\/2019\/08\/Microsoft-Logo.png","width":259,"height":194,"caption":"Microsoft Industry Blogs - United Kingdom"},"image":{"@id":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/posts\/66737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/users\/430"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/comments?post=66737"}],"version-history":[{"count":0,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/posts\/66737\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/media\/59085"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/media?parent=66737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/categories?post=66737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/post_tag?post=66737"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/content-type?post=66737"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/wp-json\/wp\/v2\/coauthors?post=66737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}