https://pulumi.com logo
#azure
Title
# azure
q

quaint-summer-19416

08/13/2023, 7:03 AM
How se set this (sql server) by Polumi dotnet? Thanls.
r

rapid-engineer-94232

08/13/2023, 10:24 AM
According to Azure documentation (for Azure Sql), you must add a firewall rule that allows access from 0.0.0.0: https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure?view=azuresql#connections-from-inside-azure
Copy code
var allowAzureAccessRule = new AzureNative.Sql.FirewallRule("allowAzureAccessRule", new()
{
    FirewallRuleName = "allowAzureAccessRule",
    ResourceGroupName = "resource-group",
    ServerName = "sql-server",
    StartIpAddress = "0.0.0.0",
    EndIpAddress = "0.0.0.0",
});
Could look like this, given that you are using Azure Sql.
q

quaint-summer-19416

08/14/2023, 7:32 AM
@rapid-engineer-94232 Hi, that did the trick! Thanks a lot.