The actions mentioned below can be executed using Azure Portal and Azure CLI. But,
for the sake of simplicity in documentation, we are going to use Azure CLI, so
that commands can be easily copy pasted and executed.

Choose a unique name for <server_name>. Also choose a strong password for
<server_admin_password>, including uppercase, lowercase and numeric characters.
This will be required later to connect to the database.
(Make sure you escape the special characters depending on your shell.)

If you’d like to connect to an existing database, use that server’s database url.

Note

%40 is used in the username because Azure creates usernames as
admin-user@server-name and since the database url uses @ to separate
username-password from hostname, we need to url-escape it in the username.
Any other special character should be url-encoded.

If the <dns-name-label> is not available, choose another unique name and
execute the command again.