SQL Provisioning CSP

Last updated: 21-10-2015

Microsoft Azure has a new subscription offering, CSP Subscriptions. Some aspects of SQL VM deployment are not yet supported in CSP subscriptions. This includes the SQL IaaS Agent Extension, which is required for features such as SQL Automated Backup and SQL Automated Patching.

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.


Parameter Name Description
vmName SQL IaaS VM machine name
vmSize SQL IaaS VM size. Use Azure VM size name from MSDN
sqlImageOffer SQL Server Gallery Image Offer
sqlImageSku SQL Server Gallery Image SKU
sqlImageVersion SQL Server Gallery Image Published Version
username SQL IaaS VM local administrator username
password SQL IaaS VM local administrator password
storageName SQL IaaS VM data and OS disks storage service
storageType SQL IaaS VM data and OS disks storage type
vnetName SQL IaaS VM virtual network name
networkAddressSpace SQL IaaS VM virtual network IPv4 address space
subnetName SQL IaaS VM virtual network subnet name
subnetAddressPrefix SQL IaaS VM virtual network subnet IPv4 address prefix
publicDnsName DNS name for the VM

Use the template


New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/sqlvm-provisioning-csp/azuredeploy.json
Install and configure Azure PowerShell

Command line

azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/sqlvm-provisioning-csp/azuredeploy.json
Install and Configure the Azure Cross-Platform Command-Line Interface