I'm using ARM templates to instantiate a new Sql Server resource on Azure and, as part of the setup, I need to create a few user logins.
It seems that ARM templates do not offer the options to create new user principals therefore I'm considering running a SQL command to do so:
CREATE LOGIN WITH PASSWORD = ''
The problem with using this command is that it fails if the user already exists and therefore it is not idempotent, which is something that we need.
How do I check if a login already exists on an Azure SQL Server?