Server Management
Advanced server operations for Azure SQL.
Create Server with Azure AD Authentication
csharp
using Azure.ResourceManager.Sql;
using Azure.ResourceManager.Sql.Models;
var serverData = new SqlServerData(AzureLocation.EastUS)
{
// SQL authentication (optional, can be disabled)
AdministratorLogin = "sqladmin",
AdministratorLoginPassword = "YourSecurePassword123!",
// Azure AD authentication
Administrators = new ServerExternalAdministrator
{
AdministratorType = SqlAdministratorType.ActiveDirectory,
Login = "admin@contoso.com",