Deploy a static website to Azure
Note: If you have your own server code, such as a Node.js/Express server, see the App Service tutorial instead.
In this tutorial, we will deploy your static site to Azure Storage by doing the following:
- Get the required accounts and dependencies.
- Create or prepare an application for deployment.
- Create and configure Azure Storage for hosting.
- Deploy to Azure Storage using VS Code!
Azure Account - If you don't have an Azure account, sign up today for a free account with $200 in Azure credits to try out any combination of services.
Node.js - Download Node.js and npm, we recommend the LTS (long term support) version.
Note: If you already have application code, you don't need to install Node.js as this tutorial only uses it to generate a sample project.
Install the extension
The Azure Storage extension is used to deploy your website to Azure.
Once the extension is installed, log into your Azure account - in the Activity Bar, click on the Azure logo to show the AZURE STORAGE explorer. Click Sign in to Azure... and follow the instructions.
Before we continue, ensure that you have all the prerequisites installed and configured.
- Log in to Azure Portal to make sure your Azure Account is working.
- From a terminal, execute:
node -v v8.11.3 npm -v 6.3.0
to ensure that both Node.js and npm are installed.