1

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.

Dale K
  • 25,246
  • 15
  • 42
  • 71

2 Answers2

1

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
Alex AIT
  • 17,361
  • 3
  • 36
  • 73
  • Happy to help, and welcome to Stack Overflow. If this answer solved your issue, please mark it as accepted by clicking the green check mark. This helps keep the focus on older questions which still don't have answers. – Alex AIT Mar 21 '20 at 17:40
0

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

lilan silva
  • 1,896
  • 1
  • 14
  • 19