1. Packages
  2. Azure Classic
  3. API Docs
  4. servicebus
  5. Namespace

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a ServiceBus Namespace.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleNamespace = new Azure.ServiceBus.Namespace("exampleNamespace", new Azure.ServiceBus.NamespaceArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                Sku = "Standard",
                Tags = 
                {
                    { "source", "example" },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/servicebus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = servicebus.NewNamespace(ctx, "exampleNamespace", &servicebus.NamespaceArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			Sku:               pulumi.String("Standard"),
    			Tags: pulumi.StringMap{
    				"source": pulumi.String("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleNamespace = new azure.servicebus.Namespace("exampleNamespace", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        sku: "Standard",
        tags: {
            source: "example",
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_namespace = azure.servicebus.Namespace("exampleNamespace",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        sku="Standard",
        tags={
            "source": "example",
        })
    

    Example coming soon!

    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,
                  capacity: Optional[int] = None,
                  identity: Optional[NamespaceIdentityArgs] = None,
                  location: Optional[str] = None,
                  name: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  zone_redundant: Optional[bool] = 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",
        Capacity = 0,
        Identity = new Azure.ServiceBus.Inputs.NamespaceIdentityArgs
        {
            Type = "string",
            IdentityIds = new[]
            {
                "string",
            },
            PrincipalId = "string",
            TenantId = "string",
        },
        Location = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
        ZoneRedundant = false,
    });
    
    example, err := servicebus.NewNamespace(ctx, "examplenamespaceResourceResourceFromServicebusnamespace", &servicebus.NamespaceArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Sku:               pulumi.String("string"),
    	Capacity:          pulumi.Int(0),
    	Identity: &servicebus.NamespaceIdentityArgs{
    		Type: pulumi.String("string"),
    		IdentityIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	Name:     pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ZoneRedundant: pulumi.Bool(false),
    })
    
    var examplenamespaceResourceResourceFromServicebusnamespace = new com.pulumi.azure.servicebus.Namespace("examplenamespaceResourceResourceFromServicebusnamespace", com.pulumi.azure.servicebus.NamespaceArgs.builder()
        .resourceGroupName("string")
        .sku("string")
        .capacity(0)
        .identity(NamespaceIdentityArgs.builder()
            .type("string")
            .identityIds("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .location("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .zoneRedundant(false)
        .build());
    
    examplenamespace_resource_resource_from_servicebusnamespace = azure.servicebus.Namespace("examplenamespaceResourceResourceFromServicebusnamespace",
        resource_group_name="string",
        sku="string",
        capacity=0,
        identity={
            "type": "string",
            "identity_ids": ["string"],
            "principal_id": "string",
            "tenant_id": "string",
        },
        location="string",
        name="string",
        tags={
            "string": "string",
        },
        zone_redundant=False)
    
    const examplenamespaceResourceResourceFromServicebusnamespace = new azure.servicebus.Namespace("examplenamespaceResourceResourceFromServicebusnamespace", {
        resourceGroupName: "string",
        sku: "string",
        capacity: 0,
        identity: {
            type: "string",
            identityIds: ["string"],
            principalId: "string",
            tenantId: "string",
        },
        location: "string",
        name: "string",
        tags: {
            string: "string",
        },
        zoneRedundant: false,
    });
    
    type: azure:servicebus:Namespace
    properties:
        capacity: 0
        identity:
            identityIds:
                - string
            principalId: string
            tenantId: string
            type: string
        location: string
        name: string
        resourceGroupName: string
        sku: string
        tags:
            string: string
        zoneRedundant: false
    

    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:

    ResourceGroupName string
    The name of the resource group in which to create the namespace.
    Sku string
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    Capacity int
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    Identity NamespaceIdentity
    An identity block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ZoneRedundant bool
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    ResourceGroupName string
    The name of the resource group in which to create the namespace.
    Sku string
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    Capacity int
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    Identity NamespaceIdentityArgs
    An identity block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    ZoneRedundant bool
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    resourceGroupName String
    The name of the resource group in which to create the namespace.
    sku String
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    capacity Integer
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    identity NamespaceIdentity
    An identity block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    zoneRedundant Boolean
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    resourceGroupName string
    The name of the resource group in which to create the namespace.
    sku string
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    capacity number
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    identity NamespaceIdentity
    An identity block as defined below.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    zoneRedundant boolean
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    resource_group_name str
    The name of the resource group in which to create the namespace.
    sku str
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    capacity int
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    identity NamespaceIdentityArgs
    An identity block as defined below.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    zone_redundant bool
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    resourceGroupName String
    The name of the resource group in which to create the namespace.
    sku String
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    capacity Number
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    identity Property Map
    An identity block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.
    zoneRedundant Boolean
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Namespace resource produces the following output properties:

    DefaultPrimaryConnectionString string
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultPrimaryKey string
    The primary access key for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryConnectionString string
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryKey string
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    Id string
    The provider-assigned unique ID for this managed resource.
    DefaultPrimaryConnectionString string
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultPrimaryKey string
    The primary access key for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryConnectionString string
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryKey string
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    Id string
    The provider-assigned unique ID for this managed resource.
    defaultPrimaryConnectionString String
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    defaultPrimaryKey String
    The primary access key for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryConnectionString String
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryKey String
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    id String
    The provider-assigned unique ID for this managed resource.
    defaultPrimaryConnectionString string
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    defaultPrimaryKey string
    The primary access key for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryConnectionString string
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryKey string
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    id string
    The provider-assigned unique ID for this managed resource.
    default_primary_connection_string str
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    default_primary_key str
    The primary access key for the authorization rule RootManageSharedAccessKey.
    default_secondary_connection_string str
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    default_secondary_key str
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    id str
    The provider-assigned unique ID for this managed resource.
    defaultPrimaryConnectionString String
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    defaultPrimaryKey String
    The primary access key for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryConnectionString String
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryKey String
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    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,
            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,
            identity: Optional[NamespaceIdentityArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            sku: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            zone_redundant: Optional[bool] = None) -> Namespace
    func 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.
    The following state arguments are supported:
    Capacity int
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    DefaultPrimaryConnectionString string
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultPrimaryKey string
    The primary access key for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryConnectionString string
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryKey string
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    Identity NamespaceIdentity
    An identity block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the namespace.
    Sku string
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ZoneRedundant bool
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    Capacity int
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    DefaultPrimaryConnectionString string
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultPrimaryKey string
    The primary access key for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryConnectionString string
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    DefaultSecondaryKey string
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    Identity NamespaceIdentityArgs
    An identity block as defined below.
    Location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    Name string
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    ResourceGroupName string
    The name of the resource group in which to create the namespace.
    Sku string
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    ZoneRedundant bool
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    capacity Integer
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    defaultPrimaryConnectionString String
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    defaultPrimaryKey String
    The primary access key for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryConnectionString String
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryKey String
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    identity NamespaceIdentity
    An identity block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the namespace.
    sku String
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    zoneRedundant Boolean
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    capacity number
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    defaultPrimaryConnectionString string
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    defaultPrimaryKey string
    The primary access key for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryConnectionString string
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryKey string
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    identity NamespaceIdentity
    An identity block as defined below.
    location string
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name string
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    resourceGroupName string
    The name of the resource group in which to create the namespace.
    sku string
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    zoneRedundant boolean
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    capacity int
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    default_primary_connection_string str
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    default_primary_key str
    The primary access key for the authorization rule RootManageSharedAccessKey.
    default_secondary_connection_string str
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    default_secondary_key str
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    identity NamespaceIdentityArgs
    An identity block as defined below.
    location str
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name str
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    resource_group_name str
    The name of the resource group in which to create the namespace.
    sku str
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    zone_redundant bool
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.
    capacity Number
    Specifies the capacity. When sku is Premium, capacity can be 1, 2, 4, 8 or 16. When sku is Basic or Standard, capacity can be 0 only.
    defaultPrimaryConnectionString String
    The primary connection string for the authorization rule RootManageSharedAccessKey.
    defaultPrimaryKey String
    The primary access key for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryConnectionString String
    The secondary connection string for the authorization rule RootManageSharedAccessKey.
    defaultSecondaryKey String
    The secondary access key for the authorization rule RootManageSharedAccessKey.
    identity Property Map
    An identity block as defined below.
    location String
    Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
    name String
    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.
    resourceGroupName String
    The name of the resource group in which to create the namespace.
    sku String
    Defines which tier to use. Options are basic, standard or premium. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.
    zoneRedundant Boolean
    Whether or not this resource is zone redundant. sku needs to be Premium. Defaults to false.

    Supporting Types

    NamespaceIdentity, NamespaceIdentityArgs

    Type string
    The Type of Identity which should be used for this ServiceBus Namespace. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    IdentityIds List<string>
    A list of User Managed Identity ID's which should be assigned to the ServiceBus Namespace.
    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
    The Type of Identity which should be used for this ServiceBus Namespace. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    IdentityIds []string
    A list of User Managed Identity ID's which should be assigned to the ServiceBus Namespace.
    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
    The Type of Identity which should be used for this ServiceBus Namespace. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identityIds List<String>
    A list of User Managed Identity ID's which should be assigned to the ServiceBus Namespace.
    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
    The Type of Identity which should be used for this ServiceBus Namespace. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identityIds string[]
    A list of User Managed Identity ID's which should be assigned to the ServiceBus Namespace.
    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
    The Type of Identity which should be used for this ServiceBus Namespace. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identity_ids Sequence[str]
    A list of User Managed Identity ID's which should be assigned to the ServiceBus Namespace.
    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
    The Type of Identity which should be used for this ServiceBus Namespace. Possible values are SystemAssigned, UserAssigned and SystemAssigned, UserAssigned.
    identityIds List<String>
    A list of User Managed Identity ID's which should be assigned to the ServiceBus Namespace.
    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.

    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 azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.