NamespaceNetworkRuleSet

class NamespaceNetworkRuleSet : KotlinCustomResource

Manages a ServiceBus Namespace Network Rule Set.

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.servicebus.Namespace;
import com.pulumi.azure.servicebus.NamespaceArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.servicebus.NamespaceNetworkRuleSet;
import com.pulumi.azure.servicebus.NamespaceNetworkRuleSetArgs;
import com.pulumi.azure.servicebus.inputs.NamespaceNetworkRuleSetNetworkRuleArgs;
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 exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("Premium")
.capacity(1)
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.addressSpaces("172.17.0.0/16")
.dnsServers(
"10.0.0.4",
"10.0.0.5")
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("172.17.0.0/24")
.serviceEndpoints("Microsoft.ServiceBus")
.build());
var exampleNamespaceNetworkRuleSet = new NamespaceNetworkRuleSet("exampleNamespaceNetworkRuleSet", NamespaceNetworkRuleSetArgs.builder()
.namespaceId(exampleNamespace.id())
.defaultAction("Deny")
.publicNetworkAccessEnabled(true)
.networkRules(NamespaceNetworkRuleSetNetworkRuleArgs.builder()
.subnetId(exampleSubnet.id())
.ignoreMissingVnetServiceEndpoint(false)
.build())
.ipRules("1.1.1.1")
.build());
}
}

Import

Service Bus Namespace can be imported using the resource id, e.g.

$ pulumi import azure:servicebus/namespaceNetworkRuleSet:NamespaceNetworkRuleSet example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ServiceBus/namespaces/sbns1

Properties

Link copied to clipboard
val defaultAction: Output<String>?

Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are Allow and Deny. Defaults to Deny.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipRules: Output<List<String>>?

One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.

Link copied to clipboard
val namespaceId: Output<String>

Specifies the ServiceBus Namespace ID to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.

Link copied to clipboard

One or more network_rules blocks as defined below.

Link copied to clipboard

Whether to allow traffic over public network. Possible values are true and false. Defaults to true.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services

Link copied to clipboard
val urn: Output<String>