Skip Navigation

SQL Provisioning CSP

Last updated: 8/13/2018

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 template was created by a member of the community and not by Microsoft. Each Resource Manager template is licensed to you under a license agreement by its owner, not Microsoft. Microsoft is not responsible for Resource Manager templates provided and licensed by community members and does not screen for security, compatibility, or performance. Community Resource Manager templates are not supported under any Microsoft support program 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
location Location for all resources.

Use the template


New-AzureRmResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateUri
Install and configure Azure PowerShell

Command line

azure config mode arm
azure group deployment create <my-resource-group> <my-deployment-name> --template-uri
Install and Configure the Azure Cross-Platform Command-Line Interface