0
votes

I'm trying to create a SQL Server using ARM Template. While executing it, its throws an error of:

Server Name already exists

but it does not.

I tried deploying it in many subscriptions and resource group of different regions but outcome is always same.

I'm calling resource group name as SQL Server name using [resourceGroup().name].

Also, along with SQL Server, Vnet,Nsg,Local Network Gateway, VPN Gateway is deployed using resource group but are created successfully.

2

2 Answers

0
votes

The SQL Server name must be unique for all of Azure, not only within your subscription.

You get a fully qualified domain name for it, so you need a unique name:

yourservername.database.windows.net
0
votes

Azure SQL server name should be universal unique not for your subscription