We recommend using Azure Native.
azure.servicebus.NamespaceNetworkRuleSet
Explore with Pulumi AI
Manages a ServiceBus Namespace Network Rule Set.
The
azure.servicebus.NamespaceNetworkRuleSet
resource is deprecated and will be removed in version 4.0 of the AzureRM provider. Please usenetwork_rule_set
inside theazure.servicebus.Namespace
resource instead.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleNamespace = new azure.servicebus.Namespace("example", {
name: "example-sb-namespace",
location: example.location,
resourceGroupName: example.name,
sku: "Premium",
capacity: 1,
});
const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
name: "example-vnet",
location: example.location,
resourceGroupName: example.name,
addressSpaces: ["172.17.0.0/16"],
dnsServers: [
"10.0.0.4",
"10.0.0.5",
],
});
const exampleSubnet = new azure.network.Subnet("example", {
name: "default",
resourceGroupName: example.name,
virtualNetworkName: exampleVirtualNetwork.name,
addressPrefixes: ["172.17.0.0/24"],
serviceEndpoints: ["Microsoft.ServiceBus"],
});
const exampleNamespaceNetworkRuleSet = new azure.servicebus.NamespaceNetworkRuleSet("example", {
namespaceId: exampleNamespace.id,
defaultAction: "Deny",
publicNetworkAccessEnabled: true,
networkRules: [{
subnetId: exampleSubnet.id,
ignoreMissingVnetServiceEndpoint: false,
}],
ipRules: ["1.1.1.1"],
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_namespace = azure.servicebus.Namespace("example",
name="example-sb-namespace",
location=example.location,
resource_group_name=example.name,
sku="Premium",
capacity=1)
example_virtual_network = azure.network.VirtualNetwork("example",
name="example-vnet",
location=example.location,
resource_group_name=example.name,
address_spaces=["172.17.0.0/16"],
dns_servers=[
"10.0.0.4",
"10.0.0.5",
])
example_subnet = azure.network.Subnet("example",
name="default",
resource_group_name=example.name,
virtual_network_name=example_virtual_network.name,
address_prefixes=["172.17.0.0/24"],
service_endpoints=["Microsoft.ServiceBus"])
example_namespace_network_rule_set = azure.servicebus.NamespaceNetworkRuleSet("example",
namespace_id=example_namespace.id,
default_action="Deny",
public_network_access_enabled=True,
network_rules=[azure.servicebus.NamespaceNetworkRuleSetNetworkRuleArgs(
subnet_id=example_subnet.id,
ignore_missing_vnet_service_endpoint=False,
)],
ip_rules=["1.1.1.1"])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/servicebus"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
exampleNamespace, err := servicebus.NewNamespace(ctx, "example", &servicebus.NamespaceArgs{
Name: pulumi.String("example-sb-namespace"),
Location: example.Location,
ResourceGroupName: example.Name,
Sku: pulumi.String("Premium"),
Capacity: pulumi.Int(1),
})
if err != nil {
return err
}
exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
Name: pulumi.String("example-vnet"),
Location: example.Location,
ResourceGroupName: example.Name,
AddressSpaces: pulumi.StringArray{
pulumi.String("172.17.0.0/16"),
},
DnsServers: pulumi.StringArray{
pulumi.String("10.0.0.4"),
pulumi.String("10.0.0.5"),
},
})
if err != nil {
return err
}
exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
Name: pulumi.String("default"),
ResourceGroupName: example.Name,
VirtualNetworkName: exampleVirtualNetwork.Name,
AddressPrefixes: pulumi.StringArray{
pulumi.String("172.17.0.0/24"),
},
ServiceEndpoints: pulumi.StringArray{
pulumi.String("Microsoft.ServiceBus"),
},
})
if err != nil {
return err
}
_, err = servicebus.NewNamespaceNetworkRuleSet(ctx, "example", &servicebus.NamespaceNetworkRuleSetArgs{
NamespaceId: exampleNamespace.ID(),
DefaultAction: pulumi.String("Deny"),
PublicNetworkAccessEnabled: pulumi.Bool(true),
NetworkRules: servicebus.NamespaceNetworkRuleSetNetworkRuleArray{
&servicebus.NamespaceNetworkRuleSetNetworkRuleArgs{
SubnetId: exampleSubnet.ID(),
IgnoreMissingVnetServiceEndpoint: pulumi.Bool(false),
},
},
IpRules: pulumi.StringArray{
pulumi.String("1.1.1.1"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleNamespace = new Azure.ServiceBus.Namespace("example", new()
{
Name = "example-sb-namespace",
Location = example.Location,
ResourceGroupName = example.Name,
Sku = "Premium",
Capacity = 1,
});
var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
{
Name = "example-vnet",
Location = example.Location,
ResourceGroupName = example.Name,
AddressSpaces = new[]
{
"172.17.0.0/16",
},
DnsServers = new[]
{
"10.0.0.4",
"10.0.0.5",
},
});
var exampleSubnet = new Azure.Network.Subnet("example", new()
{
Name = "default",
ResourceGroupName = example.Name,
VirtualNetworkName = exampleVirtualNetwork.Name,
AddressPrefixes = new[]
{
"172.17.0.0/24",
},
ServiceEndpoints = new[]
{
"Microsoft.ServiceBus",
},
});
var exampleNamespaceNetworkRuleSet = new Azure.ServiceBus.NamespaceNetworkRuleSet("example", new()
{
NamespaceId = exampleNamespace.Id,
DefaultAction = "Deny",
PublicNetworkAccessEnabled = true,
NetworkRules = new[]
{
new Azure.ServiceBus.Inputs.NamespaceNetworkRuleSetNetworkRuleArgs
{
SubnetId = exampleSubnet.Id,
IgnoreMissingVnetServiceEndpoint = false,
},
},
IpRules = new[]
{
"1.1.1.1",
},
});
});
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
.name("example-sb-namespace")
.location(example.location())
.resourceGroupName(example.name())
.sku("Premium")
.capacity(1)
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.name("example-vnet")
.location(example.location())
.resourceGroupName(example.name())
.addressSpaces("172.17.0.0/16")
.dnsServers(
"10.0.0.4",
"10.0.0.5")
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.name("default")
.resourceGroupName(example.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());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleNamespace:
type: azure:servicebus:Namespace
name: example
properties:
name: example-sb-namespace
location: ${example.location}
resourceGroupName: ${example.name}
sku: Premium
capacity: 1
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: example-vnet
location: ${example.location}
resourceGroupName: ${example.name}
addressSpaces:
- 172.17.0.0/16
dnsServers:
- 10.0.0.4
- 10.0.0.5
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: default
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 172.17.0.0/24
serviceEndpoints:
- Microsoft.ServiceBus
exampleNamespaceNetworkRuleSet:
type: azure:servicebus:NamespaceNetworkRuleSet
name: example
properties:
namespaceId: ${exampleNamespace.id}
defaultAction: Deny
publicNetworkAccessEnabled: true
networkRules:
- subnetId: ${exampleSubnet.id}
ignoreMissingVnetServiceEndpoint: false
ipRules:
- 1.1.1.1
Create NamespaceNetworkRuleSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NamespaceNetworkRuleSet(name: string, args: NamespaceNetworkRuleSetArgs, opts?: CustomResourceOptions);
@overload
def NamespaceNetworkRuleSet(resource_name: str,
args: NamespaceNetworkRuleSetInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NamespaceNetworkRuleSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace_id: Optional[str] = None,
default_action: Optional[str] = None,
ip_rules: Optional[Sequence[str]] = None,
network_rules: Optional[Sequence[NamespaceNetworkRuleSetNetworkRuleArgs]] = None,
public_network_access_enabled: Optional[bool] = None,
trusted_services_allowed: Optional[bool] = None)
func NewNamespaceNetworkRuleSet(ctx *Context, name string, args NamespaceNetworkRuleSetArgs, opts ...ResourceOption) (*NamespaceNetworkRuleSet, error)
public NamespaceNetworkRuleSet(string name, NamespaceNetworkRuleSetArgs args, CustomResourceOptions? opts = null)
public NamespaceNetworkRuleSet(String name, NamespaceNetworkRuleSetArgs args)
public NamespaceNetworkRuleSet(String name, NamespaceNetworkRuleSetArgs args, CustomResourceOptions options)
type: azure:servicebus:NamespaceNetworkRuleSet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NamespaceNetworkRuleSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NamespaceNetworkRuleSetInitArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NamespaceNetworkRuleSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceNetworkRuleSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceNetworkRuleSetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var namespaceNetworkRuleSetResource = new Azure.ServiceBus.NamespaceNetworkRuleSet("namespaceNetworkRuleSetResource", new()
{
NamespaceId = "string",
DefaultAction = "string",
IpRules = new[]
{
"string",
},
NetworkRules = new[]
{
new Azure.ServiceBus.Inputs.NamespaceNetworkRuleSetNetworkRuleArgs
{
SubnetId = "string",
IgnoreMissingVnetServiceEndpoint = false,
},
},
PublicNetworkAccessEnabled = false,
TrustedServicesAllowed = false,
});
example, err := servicebus.NewNamespaceNetworkRuleSet(ctx, "namespaceNetworkRuleSetResource", &servicebus.NamespaceNetworkRuleSetArgs{
NamespaceId: pulumi.String("string"),
DefaultAction: pulumi.String("string"),
IpRules: pulumi.StringArray{
pulumi.String("string"),
},
NetworkRules: servicebus.NamespaceNetworkRuleSetNetworkRuleArray{
&servicebus.NamespaceNetworkRuleSetNetworkRuleArgs{
SubnetId: pulumi.String("string"),
IgnoreMissingVnetServiceEndpoint: pulumi.Bool(false),
},
},
PublicNetworkAccessEnabled: pulumi.Bool(false),
TrustedServicesAllowed: pulumi.Bool(false),
})
var namespaceNetworkRuleSetResource = new NamespaceNetworkRuleSet("namespaceNetworkRuleSetResource", NamespaceNetworkRuleSetArgs.builder()
.namespaceId("string")
.defaultAction("string")
.ipRules("string")
.networkRules(NamespaceNetworkRuleSetNetworkRuleArgs.builder()
.subnetId("string")
.ignoreMissingVnetServiceEndpoint(false)
.build())
.publicNetworkAccessEnabled(false)
.trustedServicesAllowed(false)
.build());
namespace_network_rule_set_resource = azure.servicebus.NamespaceNetworkRuleSet("namespaceNetworkRuleSetResource",
namespace_id="string",
default_action="string",
ip_rules=["string"],
network_rules=[azure.servicebus.NamespaceNetworkRuleSetNetworkRuleArgs(
subnet_id="string",
ignore_missing_vnet_service_endpoint=False,
)],
public_network_access_enabled=False,
trusted_services_allowed=False)
const namespaceNetworkRuleSetResource = new azure.servicebus.NamespaceNetworkRuleSet("namespaceNetworkRuleSetResource", {
namespaceId: "string",
defaultAction: "string",
ipRules: ["string"],
networkRules: [{
subnetId: "string",
ignoreMissingVnetServiceEndpoint: false,
}],
publicNetworkAccessEnabled: false,
trustedServicesAllowed: false,
});
type: azure:servicebus:NamespaceNetworkRuleSet
properties:
defaultAction: string
ipRules:
- string
namespaceId: string
networkRules:
- ignoreMissingVnetServiceEndpoint: false
subnetId: string
publicNetworkAccessEnabled: false
trustedServicesAllowed: false
NamespaceNetworkRuleSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NamespaceNetworkRuleSet resource accepts the following input properties:
- Namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- Default
Action string - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - Ip
Rules List<string> - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- Network
Rules List<NamespaceNetwork Rule Set Network Rule> - One or more
network_rules
blocks as defined below. - Public
Network boolAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - Trusted
Services boolAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- Namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- Default
Action string - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - Ip
Rules []string - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- Network
Rules []NamespaceNetwork Rule Set Network Rule Args - One or more
network_rules
blocks as defined below. - Public
Network boolAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - Trusted
Services boolAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- default
Action String - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip
Rules List<String> - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- network
Rules List<NamespaceNetwork Rule Set Network Rule> - One or more
network_rules
blocks as defined below. - public
Network BooleanAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted
Services BooleanAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- default
Action string - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip
Rules string[] - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- network
Rules NamespaceNetwork Rule Set Network Rule[] - One or more
network_rules
blocks as defined below. - public
Network booleanAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted
Services booleanAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- namespace_
id str Specifies the ServiceBus Namespace ID to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- default_
action str - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip_
rules Sequence[str] - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- network_
rules Sequence[NamespaceNetwork Rule Set Network Rule Args] - One or more
network_rules
blocks as defined below. - public_
network_ boolaccess_ enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted_
services_ boolallowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- default
Action String - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip
Rules List<String> - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- network
Rules List<Property Map> - One or more
network_rules
blocks as defined below. - public
Network BooleanAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted
Services BooleanAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
Outputs
All input properties are implicitly available as output properties. Additionally, the NamespaceNetworkRuleSet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NamespaceNetworkRuleSet Resource
Get an existing NamespaceNetworkRuleSet resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NamespaceNetworkRuleSetState, opts?: CustomResourceOptions): NamespaceNetworkRuleSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_action: Optional[str] = None,
ip_rules: Optional[Sequence[str]] = None,
namespace_id: Optional[str] = None,
network_rules: Optional[Sequence[NamespaceNetworkRuleSetNetworkRuleArgs]] = None,
public_network_access_enabled: Optional[bool] = None,
trusted_services_allowed: Optional[bool] = None) -> NamespaceNetworkRuleSet
func GetNamespaceNetworkRuleSet(ctx *Context, name string, id IDInput, state *NamespaceNetworkRuleSetState, opts ...ResourceOption) (*NamespaceNetworkRuleSet, error)
public static NamespaceNetworkRuleSet Get(string name, Input<string> id, NamespaceNetworkRuleSetState? state, CustomResourceOptions? opts = null)
public static NamespaceNetworkRuleSet get(String name, Output<String> id, NamespaceNetworkRuleSetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Default
Action string - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - Ip
Rules List<string> - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- Namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- Network
Rules List<NamespaceNetwork Rule Set Network Rule> - One or more
network_rules
blocks as defined below. - Public
Network boolAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - Trusted
Services boolAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- Default
Action string - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - Ip
Rules []string - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- Namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- Network
Rules []NamespaceNetwork Rule Set Network Rule Args - One or more
network_rules
blocks as defined below. - Public
Network boolAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - Trusted
Services boolAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- default
Action String - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip
Rules List<String> - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- network
Rules List<NamespaceNetwork Rule Set Network Rule> - One or more
network_rules
blocks as defined below. - public
Network BooleanAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted
Services BooleanAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- default
Action string - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip
Rules string[] - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- network
Rules NamespaceNetwork Rule Set Network Rule[] - One or more
network_rules
blocks as defined below. - public
Network booleanAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted
Services booleanAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- default_
action str - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip_
rules Sequence[str] - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- namespace_
id str Specifies the ServiceBus Namespace ID to which to attach the ServiceBus Namespace Network Rule Set. Changing this forces a new resource to be created.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- network_
rules Sequence[NamespaceNetwork Rule Set Network Rule Args] - One or more
network_rules
blocks as defined below. - public_
network_ boolaccess_ enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted_
services_ boolallowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
- default
Action String - Specifies the default action for the ServiceBus Namespace Network Rule Set. Possible values are
Allow
andDeny
. Defaults toAllow
. - ip
Rules List<String> - One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- namespace
Id 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.
NOTE: The ServiceBus Namespace must be
Premium
in order to attach a ServiceBus Namespace Network Rule Set.- network
Rules List<Property Map> - One or more
network_rules
blocks as defined below. - public
Network BooleanAccess Enabled - Whether to allow traffic over public network. Possible values are
true
andfalse
. Defaults totrue
. - trusted
Services BooleanAllowed - If True, then Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration. See Trusted Microsoft Services
Supporting Types
NamespaceNetworkRuleSetNetworkRule, NamespaceNetworkRuleSetNetworkRuleArgs
- Subnet
Id string - The Subnet ID which should be able to access this ServiceBus Namespace.
- Ignore
Missing boolVnet Service Endpoint - Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to
false
.
- Subnet
Id string - The Subnet ID which should be able to access this ServiceBus Namespace.
- Ignore
Missing boolVnet Service Endpoint - Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to
false
.
- subnet
Id String - The Subnet ID which should be able to access this ServiceBus Namespace.
- ignore
Missing BooleanVnet Service Endpoint - Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to
false
.
- subnet
Id string - The Subnet ID which should be able to access this ServiceBus Namespace.
- ignore
Missing booleanVnet Service Endpoint - Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to
false
.
- subnet_
id str - The Subnet ID which should be able to access this ServiceBus Namespace.
- ignore_
missing_ boolvnet_ service_ endpoint - Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to
false
.
- subnet
Id String - The Subnet ID which should be able to access this ServiceBus Namespace.
- ignore
Missing BooleanVnet Service Endpoint - Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to
false
.
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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.