We recommend using Azure Native.
azure.servicebus.Namespace
Explore with Pulumi AI
Manages a ServiceBus Namespace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
    name: "my-servicebus",
    location: "West Europe",
});
const exampleNamespace = new azure.servicebus.Namespace("example", {
    name: "tfex-servicebus-namespace",
    location: example.location,
    resourceGroupName: example.name,
    sku: "Standard",
    tags: {
        source: "example",
    },
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
    name="my-servicebus",
    location="West Europe")
example_namespace = azure.servicebus.Namespace("example",
    name="tfex-servicebus-namespace",
    location=example.location,
    resource_group_name=example.name,
    sku="Standard",
    tags={
        "source": "example",
    })
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/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("my-servicebus"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		_, err = servicebus.NewNamespace(ctx, "example", &servicebus.NamespaceArgs{
			Name:              pulumi.String("tfex-servicebus-namespace"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			Sku:               pulumi.String("Standard"),
			Tags: pulumi.StringMap{
				"source": pulumi.String("example"),
			},
		})
		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 = "my-servicebus",
        Location = "West Europe",
    });
    var exampleNamespace = new Azure.ServiceBus.Namespace("example", new()
    {
        Name = "tfex-servicebus-namespace",
        Location = example.Location,
        ResourceGroupName = example.Name,
        Sku = "Standard",
        Tags = 
        {
            { "source", "example" },
        },
    });
});
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 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("my-servicebus")
            .location("West Europe")
            .build());
        var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()
            .name("tfex-servicebus-namespace")
            .location(example.location())
            .resourceGroupName(example.name())
            .sku("Standard")
            .tags(Map.of("source", "example"))
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: my-servicebus
      location: West Europe
  exampleNamespace:
    type: azure:servicebus:Namespace
    name: example
    properties:
      name: tfex-servicebus-namespace
      location: ${example.location}
      resourceGroupName: ${example.name}
      sku: Standard
      tags:
        source: example
Create Namespace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);@overload
def Namespace(resource_name: str,
              args: NamespaceArgs,
              opts: Optional[ResourceOptions] = None)
@overload
def Namespace(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              resource_group_name: Optional[str] = None,
              sku: Optional[str] = None,
              name: Optional[str] = None,
              local_auth_enabled: Optional[bool] = None,
              location: Optional[str] = None,
              minimum_tls_version: Optional[str] = None,
              capacity: Optional[int] = None,
              network_rule_set: Optional[NamespaceNetworkRuleSetArgs] = None,
              premium_messaging_partitions: Optional[int] = None,
              public_network_access_enabled: Optional[bool] = None,
              identity: Optional[NamespaceIdentityArgs] = None,
              customer_managed_key: Optional[NamespaceCustomerManagedKeyArgs] = None,
              tags: Optional[Mapping[str, str]] = None)func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
public Namespace(String name, NamespaceArgs args)
public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
type: azure:servicebus:Namespace
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 NamespaceArgs
- 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 NamespaceArgs
- 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 NamespaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NamespaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NamespaceArgs
- 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 examplenamespaceResourceResourceFromServicebusnamespace = new Azure.ServiceBus.Namespace("examplenamespaceResourceResourceFromServicebusnamespace", new()
{
    ResourceGroupName = "string",
    Sku = "string",
    Name = "string",
    LocalAuthEnabled = false,
    Location = "string",
    MinimumTlsVersion = "string",
    Capacity = 0,
    NetworkRuleSet = new Azure.ServiceBus.Inputs.NamespaceNetworkRuleSetArgs
    {
        DefaultAction = "string",
        IpRules = new[]
        {
            "string",
        },
        NetworkRules = new[]
        {
            new Azure.ServiceBus.Inputs.NamespaceNetworkRuleSetNetworkRuleArgs
            {
                SubnetId = "string",
                IgnoreMissingVnetServiceEndpoint = false,
            },
        },
        PublicNetworkAccessEnabled = false,
        TrustedServicesAllowed = false,
    },
    PremiumMessagingPartitions = 0,
    PublicNetworkAccessEnabled = false,
    Identity = new Azure.ServiceBus.Inputs.NamespaceIdentityArgs
    {
        Type = "string",
        IdentityIds = new[]
        {
            "string",
        },
        PrincipalId = "string",
        TenantId = "string",
    },
    CustomerManagedKey = new Azure.ServiceBus.Inputs.NamespaceCustomerManagedKeyArgs
    {
        IdentityId = "string",
        KeyVaultKeyId = "string",
        InfrastructureEncryptionEnabled = false,
    },
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := servicebus.NewNamespace(ctx, "examplenamespaceResourceResourceFromServicebusnamespace", &servicebus.NamespaceArgs{
	ResourceGroupName: pulumi.String("string"),
	Sku:               pulumi.String("string"),
	Name:              pulumi.String("string"),
	LocalAuthEnabled:  pulumi.Bool(false),
	Location:          pulumi.String("string"),
	MinimumTlsVersion: pulumi.String("string"),
	Capacity:          pulumi.Int(0),
	NetworkRuleSet: &servicebus.NamespaceNetworkRuleSetArgs{
		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),
	},
	PremiumMessagingPartitions: pulumi.Int(0),
	PublicNetworkAccessEnabled: pulumi.Bool(false),
	Identity: &servicebus.NamespaceIdentityArgs{
		Type: pulumi.String("string"),
		IdentityIds: pulumi.StringArray{
			pulumi.String("string"),
		},
		PrincipalId: pulumi.String("string"),
		TenantId:    pulumi.String("string"),
	},
	CustomerManagedKey: &servicebus.NamespaceCustomerManagedKeyArgs{
		IdentityId:                      pulumi.String("string"),
		KeyVaultKeyId:                   pulumi.String("string"),
		InfrastructureEncryptionEnabled: pulumi.Bool(false),
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var examplenamespaceResourceResourceFromServicebusnamespace = new Namespace("examplenamespaceResourceResourceFromServicebusnamespace", NamespaceArgs.builder()
    .resourceGroupName("string")
    .sku("string")
    .name("string")
    .localAuthEnabled(false)
    .location("string")
    .minimumTlsVersion("string")
    .capacity(0)
    .networkRuleSet(NamespaceNetworkRuleSetArgs.builder()
        .defaultAction("string")
        .ipRules("string")
        .networkRules(NamespaceNetworkRuleSetNetworkRuleArgs.builder()
            .subnetId("string")
            .ignoreMissingVnetServiceEndpoint(false)
            .build())
        .publicNetworkAccessEnabled(false)
        .trustedServicesAllowed(false)
        .build())
    .premiumMessagingPartitions(0)
    .publicNetworkAccessEnabled(false)
    .identity(NamespaceIdentityArgs.builder()
        .type("string")
        .identityIds("string")
        .principalId("string")
        .tenantId("string")
        .build())
    .customerManagedKey(NamespaceCustomerManagedKeyArgs.builder()
        .identityId("string")
        .keyVaultKeyId("string")
        .infrastructureEncryptionEnabled(false)
        .build())
    .tags(Map.of("string", "string"))
    .build());
examplenamespace_resource_resource_from_servicebusnamespace = azure.servicebus.Namespace("examplenamespaceResourceResourceFromServicebusnamespace",
    resource_group_name="string",
    sku="string",
    name="string",
    local_auth_enabled=False,
    location="string",
    minimum_tls_version="string",
    capacity=0,
    network_rule_set={
        "default_action": "string",
        "ip_rules": ["string"],
        "network_rules": [{
            "subnet_id": "string",
            "ignore_missing_vnet_service_endpoint": False,
        }],
        "public_network_access_enabled": False,
        "trusted_services_allowed": False,
    },
    premium_messaging_partitions=0,
    public_network_access_enabled=False,
    identity={
        "type": "string",
        "identity_ids": ["string"],
        "principal_id": "string",
        "tenant_id": "string",
    },
    customer_managed_key={
        "identity_id": "string",
        "key_vault_key_id": "string",
        "infrastructure_encryption_enabled": False,
    },
    tags={
        "string": "string",
    })
const examplenamespaceResourceResourceFromServicebusnamespace = new azure.servicebus.Namespace("examplenamespaceResourceResourceFromServicebusnamespace", {
    resourceGroupName: "string",
    sku: "string",
    name: "string",
    localAuthEnabled: false,
    location: "string",
    minimumTlsVersion: "string",
    capacity: 0,
    networkRuleSet: {
        defaultAction: "string",
        ipRules: ["string"],
        networkRules: [{
            subnetId: "string",
            ignoreMissingVnetServiceEndpoint: false,
        }],
        publicNetworkAccessEnabled: false,
        trustedServicesAllowed: false,
    },
    premiumMessagingPartitions: 0,
    publicNetworkAccessEnabled: false,
    identity: {
        type: "string",
        identityIds: ["string"],
        principalId: "string",
        tenantId: "string",
    },
    customerManagedKey: {
        identityId: "string",
        keyVaultKeyId: "string",
        infrastructureEncryptionEnabled: false,
    },
    tags: {
        string: "string",
    },
});
type: azure:servicebus:Namespace
properties:
    capacity: 0
    customerManagedKey:
        identityId: string
        infrastructureEncryptionEnabled: false
        keyVaultKeyId: string
    identity:
        identityIds:
            - string
        principalId: string
        tenantId: string
        type: string
    localAuthEnabled: false
    location: string
    minimumTlsVersion: string
    name: string
    networkRuleSet:
        defaultAction: string
        ipRules:
            - string
        networkRules:
            - ignoreMissingVnetServiceEndpoint: false
              subnetId: string
        publicNetworkAccessEnabled: false
        trustedServicesAllowed: false
    premiumMessagingPartitions: 0
    publicNetworkAccessEnabled: false
    resourceGroupName: string
    sku: string
    tags:
        string: string
Namespace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Namespace resource accepts the following input properties:
- ResourceGroup stringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- Sku string
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- Capacity int
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- CustomerManaged NamespaceKey Customer Managed Key 
- An customer_managed_keyblock as defined below.
- Identity
NamespaceIdentity 
- An identityblock as defined below.
- LocalAuth boolEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- NetworkRule NamespaceSet Network Rule Set 
- An network_rule_setblock as defined below.
- int
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- PublicNetwork boolAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- ResourceGroup stringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- Sku string
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- Capacity int
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- CustomerManaged NamespaceKey Customer Managed Key Args 
- An customer_managed_keyblock as defined below.
- Identity
NamespaceIdentity Args 
- An identityblock as defined below.
- LocalAuth boolEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- NetworkRule NamespaceSet Network Rule Set Args 
- An network_rule_setblock as defined below.
- int
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- PublicNetwork boolAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- map[string]string
- A mapping of tags to assign to the resource.
- resourceGroup StringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku String
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- capacity Integer
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customerManaged NamespaceKey Customer Managed Key 
- An customer_managed_keyblock as defined below.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- localAuth BooleanEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- networkRule NamespaceSet Network Rule Set 
- An network_rule_setblock as defined below.
- Integer
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- publicNetwork BooleanAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- Map<String,String>
- A mapping of tags to assign to the resource.
- resourceGroup stringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku string
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- capacity number
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customerManaged NamespaceKey Customer Managed Key 
- An customer_managed_keyblock as defined below.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- localAuth booleanEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimumTls stringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name string
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- networkRule NamespaceSet Network Rule Set 
- An network_rule_setblock as defined below.
- number
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- publicNetwork booleanAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- resource_group_ strname 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku str
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- capacity int
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customer_managed_ Namespacekey Customer Managed Key Args 
- An customer_managed_keyblock as defined below.
- identity
NamespaceIdentity Args 
- An identityblock as defined below.
- local_auth_ boolenabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimum_tls_ strversion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name str
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- network_rule_ Namespaceset Network Rule Set Args 
- An network_rule_setblock as defined below.
- int
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- public_network_ boolaccess_ enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- resourceGroup StringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku String
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- capacity Number
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customerManaged Property MapKey 
- An customer_managed_keyblock as defined below.
- identity Property Map
- An identityblock as defined below.
- localAuth BooleanEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- networkRule Property MapSet 
- An network_rule_setblock as defined below.
- Number
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- publicNetwork BooleanAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- Map<String>
- A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:
- DefaultPrimary stringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultPrimary stringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- Endpoint string
- The URL to access the ServiceBus Namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- DefaultPrimary stringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultPrimary stringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- Endpoint string
- The URL to access the ServiceBus Namespace.
- Id string
- The provider-assigned unique ID for this managed resource.
- defaultPrimary StringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- defaultPrimary StringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint String
- The URL to access the ServiceBus Namespace.
- id String
- The provider-assigned unique ID for this managed resource.
- defaultPrimary stringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- defaultPrimary stringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- defaultSecondary stringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- defaultSecondary stringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint string
- The URL to access the ServiceBus Namespace.
- id string
- The provider-assigned unique ID for this managed resource.
- default_primary_ strconnection_ string 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- default_primary_ strkey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- default_secondary_ strconnection_ string 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- default_secondary_ strkey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint str
- The URL to access the ServiceBus Namespace.
- id str
- The provider-assigned unique ID for this managed resource.
- defaultPrimary StringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- defaultPrimary StringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint String
- The URL to access the ServiceBus Namespace.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Namespace Resource
Get an existing Namespace 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?: NamespaceState, opts?: CustomResourceOptions): Namespace@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        capacity: Optional[int] = None,
        customer_managed_key: Optional[NamespaceCustomerManagedKeyArgs] = None,
        default_primary_connection_string: Optional[str] = None,
        default_primary_key: Optional[str] = None,
        default_secondary_connection_string: Optional[str] = None,
        default_secondary_key: Optional[str] = None,
        endpoint: Optional[str] = None,
        identity: Optional[NamespaceIdentityArgs] = None,
        local_auth_enabled: Optional[bool] = None,
        location: Optional[str] = None,
        minimum_tls_version: Optional[str] = None,
        name: Optional[str] = None,
        network_rule_set: Optional[NamespaceNetworkRuleSetArgs] = None,
        premium_messaging_partitions: Optional[int] = None,
        public_network_access_enabled: Optional[bool] = None,
        resource_group_name: Optional[str] = None,
        sku: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None) -> Namespacefunc GetNamespace(ctx *Context, name string, id IDInput, state *NamespaceState, opts ...ResourceOption) (*Namespace, error)public static Namespace Get(string name, Input<string> id, NamespaceState? state, CustomResourceOptions? opts = null)public static Namespace get(String name, Output<String> id, NamespaceState state, CustomResourceOptions options)resources:  _:    type: azure:servicebus:Namespace    get:      id: ${id}- 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.
- Capacity int
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- CustomerManaged NamespaceKey Customer Managed Key 
- An customer_managed_keyblock as defined below.
- DefaultPrimary stringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultPrimary stringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- Endpoint string
- The URL to access the ServiceBus Namespace.
- Identity
NamespaceIdentity 
- An identityblock as defined below.
- LocalAuth boolEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- NetworkRule NamespaceSet Network Rule Set 
- An network_rule_setblock as defined below.
- int
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- PublicNetwork boolAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- ResourceGroup stringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- Sku string
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Capacity int
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- CustomerManaged NamespaceKey Customer Managed Key Args 
- An customer_managed_keyblock as defined below.
- DefaultPrimary stringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultPrimary stringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- DefaultSecondary stringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- Endpoint string
- The URL to access the ServiceBus Namespace.
- Identity
NamespaceIdentity Args 
- An identityblock as defined below.
- LocalAuth boolEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- MinimumTls stringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- Name string
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- NetworkRule NamespaceSet Network Rule Set Args 
- An network_rule_setblock as defined below.
- int
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- PublicNetwork boolAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- ResourceGroup stringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- Sku string
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- map[string]string
- A mapping of tags to assign to the resource.
- capacity Integer
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customerManaged NamespaceKey Customer Managed Key 
- An customer_managed_keyblock as defined below.
- defaultPrimary StringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- defaultPrimary StringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint String
- The URL to access the ServiceBus Namespace.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- localAuth BooleanEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- networkRule NamespaceSet Network Rule Set 
- An network_rule_setblock as defined below.
- Integer
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- publicNetwork BooleanAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- resourceGroup StringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku String
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- Map<String,String>
- A mapping of tags to assign to the resource.
- capacity number
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customerManaged NamespaceKey Customer Managed Key 
- An customer_managed_keyblock as defined below.
- defaultPrimary stringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- defaultPrimary stringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- defaultSecondary stringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- defaultSecondary stringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint string
- The URL to access the ServiceBus Namespace.
- identity
NamespaceIdentity 
- An identityblock as defined below.
- localAuth booleanEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimumTls stringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name string
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- networkRule NamespaceSet Network Rule Set 
- An network_rule_setblock as defined below.
- number
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- publicNetwork booleanAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- resourceGroup stringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku string
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- capacity int
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customer_managed_ Namespacekey Customer Managed Key Args 
- An customer_managed_keyblock as defined below.
- default_primary_ strconnection_ string 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- default_primary_ strkey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- default_secondary_ strconnection_ string 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- default_secondary_ strkey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint str
- The URL to access the ServiceBus Namespace.
- identity
NamespaceIdentity Args 
- An identityblock as defined below.
- local_auth_ boolenabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimum_tls_ strversion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name str
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- network_rule_ Namespaceset Network Rule Set Args 
- An network_rule_setblock as defined below.
- int
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- public_network_ boolaccess_ enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- resource_group_ strname 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku str
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- capacity Number
- Specifies the capacity. When skuisPremium, capacity can be1,2,4,8or16. WhenskuisBasicorStandard, capacity can be0only.
- customerManaged Property MapKey 
- An customer_managed_keyblock as defined below.
- defaultPrimary StringConnection String 
- The primary connection string for the authorization rule RootManageSharedAccessKey.
- defaultPrimary StringKey 
- The primary access key for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringConnection String 
- The secondary connection string for the authorization rule RootManageSharedAccessKey.
- defaultSecondary StringKey 
- The secondary access key for the authorization rule RootManageSharedAccessKey.
- endpoint String
- The URL to access the ServiceBus Namespace.
- identity Property Map
- An identityblock as defined below.
- localAuth BooleanEnabled 
- Whether or not SAS authentication is enabled for the Service Bus namespace. Defaults to true.
- location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- minimumTls StringVersion 
- The minimum supported TLS version for this Service Bus Namespace. Valid values are: - 1.0,- 1.1and- 1.2. Defaults to- 1.2.- NOTE: Azure Services will require TLS 1.2+ by August 2025, please see this announcement for more. 
- name String
- Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
- networkRule Property MapSet 
- An network_rule_setblock as defined below.
- Number
- Specifies the number messaging partitions. Only valid when - skuis- Premiumand the minimum number is- 1. Possible values include- 0,- 1,- 2, and- 4. Defaults to- 0for Standard, Basic namespace. Changing this forces a new resource to be created.- Note: It's not possible to change the partitioning option on any existing namespace. The number of partitions can only be set during namespace creation. Please check the doc https://learn.microsoft.com/en-us/azure/service-bus-messaging/enable-partitions-premium for more feature restrictions. 
- publicNetwork BooleanAccess Enabled 
- Is public network access enabled for the Service Bus Namespace? Defaults to true.
- resourceGroup StringName 
- The name of the resource group in which to Changing this forces a new resource to be created. create the namespace.
- sku String
- Defines which tier to use. Options are Basic,StandardorPremium. Please note that setting this field toPremiumwill force the creation of a new resource.
- Map<String>
- A mapping of tags to assign to the resource.
Supporting Types
NamespaceCustomerManagedKey, NamespaceCustomerManagedKeyArgs        
- IdentityId string
- The ID of the User Assigned Identity that has access to the key.
- KeyVault stringKey Id 
- The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
- InfrastructureEncryption boolEnabled 
- Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
- IdentityId string
- The ID of the User Assigned Identity that has access to the key.
- KeyVault stringKey Id 
- The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
- InfrastructureEncryption boolEnabled 
- Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
- identityId String
- The ID of the User Assigned Identity that has access to the key.
- keyVault StringKey Id 
- The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
- infrastructureEncryption BooleanEnabled 
- Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
- identityId string
- The ID of the User Assigned Identity that has access to the key.
- keyVault stringKey Id 
- The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
- infrastructureEncryption booleanEnabled 
- Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
- identity_id str
- The ID of the User Assigned Identity that has access to the key.
- key_vault_ strkey_ id 
- The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
- infrastructure_encryption_ boolenabled 
- Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
- identityId String
- The ID of the User Assigned Identity that has access to the key.
- keyVault StringKey Id 
- The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.
- infrastructureEncryption BooleanEnabled 
- Used to specify whether enable Infrastructure Encryption (Double Encryption). Changing this forces a new resource to be created.
NamespaceIdentity, NamespaceIdentityArgs    
- Type string
- Specifies the type of Managed Service Identity that should be configured on this ServiceBus Namespace. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- IdentityIds List<string>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this ServiceBus namespace. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- PrincipalId string
- The Principal ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- TenantId string
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this ServiceBus Namespace. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- IdentityIds []string
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this ServiceBus namespace. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- PrincipalId string
- The Principal ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- TenantId string
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- type String
- Specifies the type of Managed Service Identity that should be configured on this ServiceBus Namespace. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this ServiceBus namespace. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId String
- The Principal ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- tenantId String
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- type string
- Specifies the type of Managed Service Identity that should be configured on this ServiceBus Namespace. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds string[]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this ServiceBus namespace. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId string
- The Principal ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- tenantId string
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- type str
- Specifies the type of Managed Service Identity that should be configured on this ServiceBus Namespace. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identity_ids Sequence[str]
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this ServiceBus namespace. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principal_id str
- The Principal ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- tenant_id str
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- type String
- Specifies the type of Managed Service Identity that should be configured on this ServiceBus Namespace. Possible values are SystemAssigned,UserAssigned,SystemAssigned, UserAssigned(to enable both).
- identityIds List<String>
- Specifies a list of User Assigned Managed Identity IDs to be assigned to this ServiceBus namespace. - NOTE: This is required when - typeis set to- UserAssignedor- SystemAssigned, UserAssigned.
- principalId String
- The Principal ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
- tenantId String
- The Tenant ID for the Service Principal associated with the Managed Service Identity of this ServiceBus Namespace.
NamespaceNetworkRuleSet, NamespaceNetworkRuleSetArgs        
- DefaultAction string
- Specifies the default action for the Network Rule Set. Possible values are AllowandDeny. Defaults toAllow.
- IpRules List<string>
- One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- NetworkRules List<NamespaceNetwork Rule Set Network Rule> 
- One or more network_rulesblocks as defined below.
- PublicNetwork boolAccess Enabled 
- Whether to allow traffic over public network. Possible values are - trueand- false. Defaults to- true.- Note: To disable public network access, you must also configure the property - public_network_access_enabled.
- TrustedServices boolAllowed 
- Are Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration? See Trusted Microsoft Services
- DefaultAction string
- Specifies the default action for the Network Rule Set. Possible values are AllowandDeny. Defaults toAllow.
- IpRules []string
- One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- NetworkRules []NamespaceNetwork Rule Set Network Rule 
- One or more network_rulesblocks as defined below.
- PublicNetwork boolAccess Enabled 
- Whether to allow traffic over public network. Possible values are - trueand- false. Defaults to- true.- Note: To disable public network access, you must also configure the property - public_network_access_enabled.
- TrustedServices boolAllowed 
- Are Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration? See Trusted Microsoft Services
- defaultAction String
- Specifies the default action for the Network Rule Set. Possible values are AllowandDeny. Defaults toAllow.
- ipRules List<String>
- One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- networkRules List<NamespaceNetwork Rule Set Network Rule> 
- One or more network_rulesblocks as defined below.
- publicNetwork BooleanAccess Enabled 
- Whether to allow traffic over public network. Possible values are - trueand- false. Defaults to- true.- Note: To disable public network access, you must also configure the property - public_network_access_enabled.
- trustedServices BooleanAllowed 
- Are Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration? See Trusted Microsoft Services
- defaultAction string
- Specifies the default action for the Network Rule Set. Possible values are AllowandDeny. Defaults toAllow.
- ipRules string[]
- One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- networkRules NamespaceNetwork Rule Set Network Rule[] 
- One or more network_rulesblocks as defined below.
- publicNetwork booleanAccess Enabled 
- Whether to allow traffic over public network. Possible values are - trueand- false. Defaults to- true.- Note: To disable public network access, you must also configure the property - public_network_access_enabled.
- trustedServices booleanAllowed 
- Are 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 Network Rule Set. Possible values are AllowandDeny. 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] 
- One or more network_rulesblocks as defined below.
- public_network_ boolaccess_ enabled 
- Whether to allow traffic over public network. Possible values are - trueand- false. Defaults to- true.- Note: To disable public network access, you must also configure the property - public_network_access_enabled.
- trusted_services_ boolallowed 
- Are Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration? See Trusted Microsoft Services
- defaultAction String
- Specifies the default action for the Network Rule Set. Possible values are AllowandDeny. Defaults toAllow.
- ipRules List<String>
- One or more IP Addresses, or CIDR Blocks which should be able to access the ServiceBus Namespace.
- networkRules List<Property Map>
- One or more network_rulesblocks as defined below.
- publicNetwork BooleanAccess Enabled 
- Whether to allow traffic over public network. Possible values are - trueand- false. Defaults to- true.- Note: To disable public network access, you must also configure the property - public_network_access_enabled.
- trustedServices BooleanAllowed 
- Are Azure Services that are known and trusted for this resource type are allowed to bypass firewall configuration? See Trusted Microsoft Services
NamespaceNetworkRuleSetNetworkRule, NamespaceNetworkRuleSetNetworkRuleArgs            
- SubnetId string
- The Subnet ID which should be able to access this ServiceBus Namespace.
- IgnoreMissing boolVnet Service Endpoint 
- Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to false.
- SubnetId string
- The Subnet ID which should be able to access this ServiceBus Namespace.
- IgnoreMissing boolVnet Service Endpoint 
- Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to false.
- subnetId String
- The Subnet ID which should be able to access this ServiceBus Namespace.
- ignoreMissing BooleanVnet Service Endpoint 
- Should the ServiceBus Namespace Network Rule Set ignore missing Virtual Network Service Endpoint option in the Subnet? Defaults to false.
- subnetId string
- The Subnet ID which should be able to access this ServiceBus Namespace.
- ignoreMissing 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.
- subnetId String
- The Subnet ID which should be able to access this ServiceBus Namespace.
- ignoreMissing 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/namespace:Namespace example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/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 azurermTerraform Provider.