OutboundFirewallRule

class OutboundFirewallRule : KotlinCustomResource

Allows you to manage an Azure SQL Outbound Firewall Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.mssql.Server;
import com.pulumi.azure.mssql.ServerArgs;
import com.pulumi.azure.mssql.OutboundFirewallRule;
import com.pulumi.azure.mssql.OutboundFirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleServer = new Server("exampleServer", ServerArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.version("12.0")
.administratorLogin("4dm1n157r470r")
.administratorLoginPassword("4-v3ry-53cr37-p455w0rd")
.outboundNetworkRestrictionEnabled(true)
.build());
var exampleOutboundFirewallRule = new OutboundFirewallRule("exampleOutboundFirewallRule", OutboundFirewallRuleArgs.builder()
.serverId(exampleServer.id())
.build());
}
}

Import

SQL Outbound Firewall Rules can be imported using the resource id, e.g.

$ pulumi import azure:mssql/outboundFirewallRule:OutboundFirewallRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/servers/myserver/outboundFirewallRules/fqdn1

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the outbound firewall rule. This should be a FQDN. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serverId: Output<String>

The resource ID of the SQL Server on which to create the Outbound Firewall Rule. Changing this forces a new resource to be created.

Link copied to clipboard
val urn: Output<String>