I have an ARM template that (among others) creates a database on an Azure SQL server (which is also created by the template).
I need to output the database ADO.NET connectionstring.
Becuase I wasn't sure what the key is called, I am outputting the whole object: This is what I have on the JSON template file:
"DatabaseConnectionString": {
"type": "object",
"value": "[listkeys(variables('dbResourceId'), variables('apiVersion'))]"
}
The dbResourceId
is 100% correct. If I output it instead, I get the correct ID and the apiVersion
is the same I use when creating the DB.
BUT, I get this error:
"code": "NotFound",
"message": "Resource not found for the segment 'listkeys'.",
The database is being created correctly
I have the exact same pattern/idea with a service bus and it works perfectly Help, this is killing me