This template uses the Azure Linux CustomScript extension to deploy an application. This example creates an Ubuntu VM, does a silent install of Python, Django and Apache, then creates a simple Django app. The template also creates a SQL Database, with a sample table with some sample data which displayed in the web browser using a query
This Azure Resource Manager (ARM) template was created by a member of the community and not by Microsoft. Each ARM template is licensed to you under a licence agreement by its owner, not Microsoft. Microsoft is not responsible for ARM templates provided and licensed by community members and does not screen for security, compatibility or performance. Community ARM templates are not supported under any Microsoft support programme or service and are made available AS IS without warranty of any kind.
Parameters
Parameter Name | Description |
---|---|
newStorageAccountName | Name of the Storage Account |
adminUsername | Username for the Administrator of the VM |
imagePublisher | Image Publisher |
imageOffer | Image Offer |
imageSKU | Image SKU |
vmDnsName | DNS Name for the Public IP. Must be lowercase. |
administratorLogin | Admin username for SQL Database |
administratorLoginPassword | Admin password for SQL Database |
collation | SQL Collation |
databaseName | Name of your SQL Database |
edition | SQL Database Edition |
maxSizeBytes | Max DB size in bytes |
requestedServiceObjectiveId | Requested Service Objective ID |
serverName | Unique name of your SQL Server |
firewallStartIP | Start IP for your firewall rule, for example 0.0.0.0 |
firewallEndIP | End IP for your firewall rule, for example 255.255.255.255 |
version | SQL Version |
location | Location for all resources. |
authenticationType | Type of authentication to use on the Virtual Machine. SSH key is recommended. |
adminPasswordOrKey | SSH Key or password for the Virtual Machine. SSH key is recommended. |
_artifactsLocation | The base URI where artifacts required by this template are located including a trailing '/' |
_artifactsLocationSasToken | The sasToken required to access _artifactsLocation. When the template is deployed using the accompanying scripts, a sasToken will be automatically generated. Use the defaultValue if the staging location is not secured. |
vmSize | Default VM Size |
Use the template
PowerShell
New-AzResourceGroup -Name <resource-group-name> -Location <resource-group-location> #use this command when you need to create a new resource group for your deploymentInstall and configure Azure PowerShell
New-AzResourceGroupDeployment -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/application-workloads/django/sqldb-django-on-ubuntu/azuredeploy.json
Command line
az group create --name <resource-group-name> --location <resource-group-location> #use this command when you need to create a new resource group for your deploymentInstall and Configure the Azure Cross-Platform Command-Line Interface
az group deployment create --resource-group <my-resource-group> --template-uri https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/application-workloads/django/sqldb-django-on-ubuntu/azuredeploy.json