If you create SQL Server by Azure Management Portal, it is possible to allow Azure services to connect by a switch in Configure panel on a server page. I want to do that by requesting Service Management API. Is it possible?
I searched in Operations for Azure SQL Databases and Azure SQL Database REST API Reference.
Update: code block with example
internal string CreateFirewallRule(string serverName)
{
var firewallParameters = new FirewallRuleCreateParameters();
firewallParameters.Name = "AllowAll";
firewallParameters.StartIPAddress = "0.0.0.0";
firewallParameters.EndIPAddress = "0.0.0.0";
var response = _sqlMgmtClient.FirewallRules.Create(serverName, firewallParameters);
return response.StatusCode.ToString();
}