Skip to main content

Microsoft Azure Web App Service

Three steps to create a FREE web app on Microsoft Azure using Azure CLI.

  • Create Resource Group - Name: myResourceGroup
  • Create App Service Plan - Name: lthwnodejs
  • Create Web app - Name: lthwnodejs

Create Resource Group


az group create --name myResourceGroup --location "South Central US"



Create FREE App Service Plan

MUST add --sku FREE

az appservice plan create --name lthwnodejs --resource-group myResourceGroup --sku FREE



Create Web App


az webapp create --name lthwnodejs --resource-group myResourceGroup --plan lthwnodejs

Yet another example creating a python webapp

PS F:\Projects\github\iflask> .\env\Scripts\activate
(env) PS F:\Projects\github\iflask> az webapp up --sku F1 -n iflask -l centralus
webapp iflask doesn't exist
Creating Resource group 'tuyendq_rg_Linux_centralus' ...
Resource group creation complete
Creating AppServicePlan 'tuyendq_asp_Linux_centralus_0' ...
Creating webapp 'iflask' ...
Configuring default logging for the app, if not already enabled
Creating zip with contents of dir F:\Projects\github\iflask ...
Getting scm site credentials for zip deployment
Starting zip deployment. This operation can take a while to complete ...
Deployment endpoint responded with status code 202
You can launch the app at http://iflask.azurewebsites.net
{
  "URL": "http://iflask.azurewebsites.net",
  "appserviceplan": "tuyendq_asp_Linux_centralus_0",
  "location": "centralus",
  "name": "iflask",
  "os": "Linux",
  "resourcegroup": "tuyendq_rg_Linux_centralus",
  "runtime_version": "python|3.7",
  "runtime_version_detected": "-",
  "sku": "FREE",
  "src_path": "F:\\Projects\\github\\iflask"
}
(env) PS F:\Projects\github\iflask> code .
(env) PS F:\Projects\github\iflask> az webapp up --sku F1 -n iflask -l centralus
Webapp iflask already exists. The command will deploy contents to the existing app.
Creating zip with contents of dir F:\Projects\github\iflask ...
Getting scm site credentials for zip deployment
Starting zip deployment. This operation can take a while to complete ...
Deployment endpoint responded with status code 202
You can launch the app at http://iflask.azurewebsites.net
{
  "URL": "http://iflask.azurewebsites.net",
  "appserviceplan": "tuyendq_asp_Linux_centralus_0",
  "location": "centralus",
  "name": "iflask",
  "os": "Linux",
  "resourcegroup": "tuyendq_rg_Linux_centralus",
  "runtime_version": "python|3.7",
  "runtime_version_detected": "-",
  "sku": "FREE",
  "src_path": "F:\\Projects\\github\\iflask"
}
(env) PS F:\Projects\github\iflask>

Free tier limit

PS F:\Projects\github\iflask> az webapp up --sku F1 -n iflask -l centralus
webapp iflask doesn't exist
Exceeded the limit of 1 free tier linux server farm per subscription.
PS F:\Projects\github\iflask>

Popular posts from this blog

PHP: Notes

" PHP was originally an abbreviation of Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor. " — Wikipedia

Hydra: Notes

Hydra v9.1 (c) 2020 by van Hauser/THC & David Maciejak - Please do not use in military or secret service organizations, or for illegal purposes (this is non-binding, these *** ignore laws and ethics anyway).

Check and install php7.0-mbstring extention on Ubuntu 16.04 and Microsoft Windows

While learning Facebook SDK for PHP I overlooked one of system requirements preventing my code from running on my host. That is The mbstring extension. Facebook SDK for PHP's system requirements Check if mbstring is enabled root@ubuntu001:~# php -a Interactive mode enabled php > echo extension_loaded('mbstring'); php >exit root@ubuntu001:~# apt-cache search php7 | grep mbstring php7.0-mbstring - MBSTRING module for PHP root@ubuntu001:~# Install php7.0-mbstring root@ubuntu001:~# apt-get install php7.0-mbstring Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:   fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0   libjpeg-turbo8 libjpeg8 libmcrypt4 libtiff5 libvpx3 libxpm4 Use 'apt autoremove' to remove them. The following additional packages will be installed:   libapache2-mod-php7.0 php7.0-cli ph...