The Complete Beginner's Guide to Kubernetes and Cloud Native Architecture
π How I Deployed My First HTML File on Azure (in Minutes!)
Want to see your resume or project live on the internet? This tutorial is for you!
Letβs deploy an HTML file to Azure App Service β no prior cloud experience needed. Itβs fun, fast, and free.
β Step 1: Prerequisites
Before we dive in, make sure you have the following:
β
Azure CLI installed π Install Azure CLI
β
An active Azure Subscription π Get free credits here
β
Your HTML file (with any supporting assets)
π Step 2: Login to Azure
Open your terminal (PowerShell, CMD, or Bash) and log in to Azure:
az login
If you have multiple subscriptions, set the one you want to use:
az account set --subscription "Your-Subscription-Name"
This helps avoid confusion if youβre managing more than one Azure account.
π Step 3: Create a Resource Group
A resource group helps organize your Azure resources like a folder.
az group create --name myResourceGroup --location southafricanorth
π‘ You can change myResourceGroup
to any name you prefer. For example, if youβre working on a portfolio site, something like portfolioResources
works well.
π‘ The location southafricanorth
can be changed to any supported Azure region closer to your audience, like eastus
or westeurope
.
Use this command to list available regions:
az account list-locations -o table
π Step 4: Create an App Service Plan
The App Service Plan defines what kind of infrastructure (CPU, memory, etc.) your app will run on. For this project, weβll use the free tier:
az appservice plan create --name myAppServicePlan --resource-group myResourceGroup --sku FREE
π‘ You can name your App Service Plan whatever you want β for instance, htmlAppPlan
.
π‘ --sku FREE
gives you enough compute power to host a basic HTML site β ideal for personal portfolios or testing.
π Step 5: Create the Web App
Now, create the actual Web App that Azure will host:
az webapp create --name kubernetesNotes --resource-group myResourceGroup --plan myAppServicePlan
π Your app name (kubernetesNotes
) must be **globally unique* β Azure will use it to generate a public URL like:*
https://kubernetesNotes.azurewebsites.net
π‘ If you get a naming error, try something more specific, such as myUniqueResumeApp2025
.
You can replace kubernetesNotes
with your own project name.
π Step 6: Upload and Host Your HTML File
Hereβs how to replace the default hosting page with your own HTML:
β¨ Option: Use Azureβs Advanced Tools (Kudu)
- Go to the Azure Portal
- Navigate to: App Services β your app name (e.g.,
kubernetesNotes
) - In the left-hand menu, scroll to Advanced Tools and click "Go >"
- This opens the Kudu console in a new tab
- Click the top menu: Debug Console β CMD
-
In the file explorer, navigate to:
site > wwwroot
Drag and drop your own HTML file (e.g.,
index.html
) into the folderOpen a new browser tab and go to:
https://kubernetesNotes.azurewebsites.net
π Your website is now LIVE!
π§ Bonus: Want to Deploy via ZIP File Instead?
If youβre comfortable using the CLI, you can zip your HTML files and deploy them in one command:
zip -r resume.zip index.html assets/
az webapp deployment source config-zip --resource-group myResourceGroup --name kubernetesNotes --src resume.zip
π¦ This is useful when youβre deploying multiple files or updating them frequently.
Again, feel free to replace resume.zip
and kubernetesNotes
with your own zip file name and app name.
π¬ Wrapping Up
You just:
- β Logged into Azure
- β Created a resource group and hosting plan
- β Deployed a web app
- β Uploaded your own HTML and went live on the internet!
All using just the CLI and Azureβs built-in tools β no servers, no frameworks, no stress. π
Now your resume, landing page, or mini project has a permanent home!
Top comments (0)