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

We recommend using Azure Native.

Azure Classic v5.52.0 published on Monday, Oct 2, 2023 by Pulumi

azure.servicebus.Namespace

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.52.0 published on Monday, Oct 2, 2023 by Pulumi

    Manages a ServiceBus Namespace.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var exampleNamespace = new Azure.ServiceBus.Namespace("exampleNamespace", new()
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            Sku = "Standard",
            Tags = 
            {
                { "source", "example" },
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/servicebus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		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
    	})
    }
    
    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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
                .location("West Europe")
                .build());
    
            var exampleNamespace = new Namespace("exampleNamespace", NamespaceArgs.builder()        
                .location(exampleResourceGroup.location())
                .resourceGroupName(exampleResourceGroup.name())
                .sku("Standard")
                .tags(Map.of("source", "example"))
                .build());
    
        }
    }
    
    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",
        })
    
    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",
        },
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      exampleNamespace:
        type: azure:servicebus:Namespace
        properties:
          location: ${exampleResourceGroup.location}
          resourceGroupName: ${exampleResourceGroup.name}
          sku: Standard
          tags:
            source: example
    

    Create Namespace Resource

    new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def Namespace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  capacity: Optional[int] = None,
                  customer_managed_key: Optional[NamespaceCustomerManagedKeyArgs] = 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,
                  public_network_access_enabled: Optional[bool] = None,
                  resource_group_name: Optional[str] = None,
                  sku: Optional[str] = None,
                  tags: Optional[Mapping[str, str]] = None,
                  zone_redundant: Optional[bool] = None)
    @overload
    def Namespace(resource_name: str,
                  args: NamespaceArgs,
                  opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The Namespace resource accepts the following input properties:

    ResourceGroupName string

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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.

    CustomerManagedKey NamespaceCustomerManagedKey

    An customer_managed_key block as defined below.

    Identity NamespaceIdentity

    An identity block as defined below.

    LocalAuthEnabled bool

    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.

    MinimumTlsVersion string

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    Name string

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    NetworkRuleSet NamespaceNetworkRuleSet

    An network_rule_set block as defined below.

    PublicNetworkAccessEnabled bool

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    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. Changing this forces a new resource to be created.

    ResourceGroupName string

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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.

    CustomerManagedKey NamespaceCustomerManagedKeyArgs

    An customer_managed_key block as defined below.

    Identity NamespaceIdentityArgs

    An identity block as defined below.

    LocalAuthEnabled bool

    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.

    MinimumTlsVersion string

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    Name string

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    NetworkRuleSet NamespaceNetworkRuleSetTypeArgs

    An network_rule_set block as defined below.

    PublicNetworkAccessEnabled bool

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    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. Changing this forces a new resource to be created.

    resourceGroupName String

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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.

    customerManagedKey NamespaceCustomerManagedKey

    An customer_managed_key block as defined below.

    identity NamespaceIdentity

    An identity block as defined below.

    localAuthEnabled Boolean

    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.

    minimumTlsVersion String

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name String

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    networkRuleSet NamespaceNetworkRuleSet

    An network_rule_set block as defined below.

    publicNetworkAccessEnabled Boolean

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    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. Changing this forces a new resource to be created.

    resourceGroupName string

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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.

    customerManagedKey NamespaceCustomerManagedKey

    An customer_managed_key block as defined below.

    identity NamespaceIdentity

    An identity block as defined below.

    localAuthEnabled boolean

    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.

    minimumTlsVersion string

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name string

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    networkRuleSet NamespaceNetworkRuleSet

    An network_rule_set block as defined below.

    publicNetworkAccessEnabled boolean

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    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. Changing this forces a new resource to be created.

    resource_group_name str

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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.

    customer_managed_key NamespaceCustomerManagedKeyArgs

    An customer_managed_key block as defined below.

    identity NamespaceIdentityArgs

    An identity block as defined below.

    local_auth_enabled bool

    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_version str

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name str

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    network_rule_set NamespaceNetworkRuleSetArgs

    An network_rule_set block as defined below.

    public_network_access_enabled bool

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    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. Changing this forces a new resource to be created.

    resourceGroupName String

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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.

    customerManagedKey Property Map

    An customer_managed_key block as defined below.

    identity Property Map

    An identity block as defined below.

    localAuthEnabled Boolean

    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.

    minimumTlsVersion String

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name String

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    networkRuleSet Property Map

    An network_rule_set block as defined below.

    publicNetworkAccessEnabled Boolean

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    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. Changing this forces a new resource to be created.

    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.

    Endpoint string

    The URL to access the ServiceBus Namespace.

    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.

    Endpoint string

    The URL to access the ServiceBus Namespace.

    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.

    endpoint String

    The URL to access the ServiceBus Namespace.

    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.

    endpoint string

    The URL to access the ServiceBus Namespace.

    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.

    endpoint str

    The URL to access the ServiceBus Namespace.

    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.

    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,
            public_network_access_enabled: Optional[bool] = 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    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.

    CustomerManagedKey NamespaceCustomerManagedKey

    An customer_managed_key block as defined below.

    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.

    Endpoint string

    The URL to access the ServiceBus Namespace.

    Identity NamespaceIdentity

    An identity block as defined below.

    LocalAuthEnabled bool

    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.

    MinimumTlsVersion string

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    Name string

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    NetworkRuleSet NamespaceNetworkRuleSet

    An network_rule_set block as defined below.

    PublicNetworkAccessEnabled bool

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    ResourceGroupName string

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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. 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.

    CustomerManagedKey NamespaceCustomerManagedKeyArgs

    An customer_managed_key block as defined below.

    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.

    Endpoint string

    The URL to access the ServiceBus Namespace.

    Identity NamespaceIdentityArgs

    An identity block as defined below.

    LocalAuthEnabled bool

    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.

    MinimumTlsVersion string

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    Name string

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    NetworkRuleSet NamespaceNetworkRuleSetTypeArgs

    An network_rule_set block as defined below.

    PublicNetworkAccessEnabled bool

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    ResourceGroupName string

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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. 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.

    customerManagedKey NamespaceCustomerManagedKey

    An customer_managed_key block as defined below.

    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.

    endpoint String

    The URL to access the ServiceBus Namespace.

    identity NamespaceIdentity

    An identity block as defined below.

    localAuthEnabled Boolean

    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.

    minimumTlsVersion String

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name String

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    networkRuleSet NamespaceNetworkRuleSet

    An network_rule_set block as defined below.

    publicNetworkAccessEnabled Boolean

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    resourceGroupName String

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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. 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.

    customerManagedKey NamespaceCustomerManagedKey

    An customer_managed_key block as defined below.

    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.

    endpoint string

    The URL to access the ServiceBus Namespace.

    identity NamespaceIdentity

    An identity block as defined below.

    localAuthEnabled boolean

    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.

    minimumTlsVersion string

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name string

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    networkRuleSet NamespaceNetworkRuleSet

    An network_rule_set block as defined below.

    publicNetworkAccessEnabled boolean

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    resourceGroupName string

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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. 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.

    customer_managed_key NamespaceCustomerManagedKeyArgs

    An customer_managed_key block as defined below.

    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.

    endpoint str

    The URL to access the ServiceBus Namespace.

    identity NamespaceIdentityArgs

    An identity block as defined below.

    local_auth_enabled bool

    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_version str

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name str

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    network_rule_set NamespaceNetworkRuleSetArgs

    An network_rule_set block as defined below.

    public_network_access_enabled bool

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    resource_group_name str

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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. 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.

    customerManagedKey Property Map

    An customer_managed_key block as defined below.

    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.

    endpoint String

    The URL to access the ServiceBus Namespace.

    identity Property Map

    An identity block as defined below.

    localAuthEnabled Boolean

    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.

    minimumTlsVersion String

    The minimum supported TLS version for this Service Bus Namespace. Valid values are: 1.0, 1.1 and 1.2. The current default minimum TLS version is 1.2.

    name String

    Specifies the name of the ServiceBus Namespace resource . Changing this forces a new resource to be created.

    networkRuleSet Property Map

    An network_rule_set block as defined below.

    publicNetworkAccessEnabled Boolean

    Is public network access enabled for the Service Bus Namespace? Defaults to true.

    resourceGroupName String

    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, Standard or Premium. Please note that setting this field to Premium will force the creation of a new resource.

    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. Changing this forces a new resource to be created.

    Supporting Types

    NamespaceCustomerManagedKey, NamespaceCustomerManagedKeyArgs

    IdentityId string

    The ID of the User Assigned Identity that has access to the key.

    KeyVaultKeyId string

    The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.

    InfrastructureEncryptionEnabled bool

    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.

    KeyVaultKeyId string

    The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.

    InfrastructureEncryptionEnabled bool

    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.

    keyVaultKeyId String

    The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.

    infrastructureEncryptionEnabled Boolean

    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.

    keyVaultKeyId string

    The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.

    infrastructureEncryptionEnabled boolean

    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_key_id str

    The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.

    infrastructure_encryption_enabled bool

    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.

    keyVaultKeyId String

    The ID of the Key Vault Key which should be used to Encrypt the data in this ServiceBus Namespace.

    infrastructureEncryptionEnabled Boolean

    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 type is set to UserAssigned or 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 type is set to UserAssigned or 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 type is set to UserAssigned or 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 type is set to UserAssigned or 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 type is set to UserAssigned or 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 type is set to UserAssigned or 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 Allow and Deny. Defaults to Deny.

    IpRules List<string>

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

    NetworkRules List<NamespaceNetworkRuleSetNetworkRule>

    One or more network_rules blocks as defined below.

    PublicNetworkAccessEnabled bool

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

    TrustedServicesAllowed bool

    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 Allow and Deny. Defaults to Deny.

    IpRules []string

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

    NetworkRules []NamespaceNetworkRuleSetNetworkRule

    One or more network_rules blocks as defined below.

    PublicNetworkAccessEnabled bool

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

    TrustedServicesAllowed bool

    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 Allow and Deny. Defaults to Deny.

    ipRules List<String>

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

    networkRules List<NamespaceNetworkRuleSetNetworkRule>

    One or more network_rules blocks as defined below.

    publicNetworkAccessEnabled Boolean

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

    trustedServicesAllowed Boolean

    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 Allow and Deny. Defaults to Deny.

    ipRules string[]

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

    networkRules NamespaceNetworkRuleSetNetworkRule[]

    One or more network_rules blocks as defined below.

    publicNetworkAccessEnabled boolean

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

    trustedServicesAllowed boolean

    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 Allow and Deny. Defaults to Deny.

    ip_rules Sequence[str]

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

    network_rules Sequence[NamespaceNetworkRuleSetNetworkRule]

    One or more network_rules blocks as defined below.

    public_network_access_enabled bool

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

    trusted_services_allowed bool

    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 Allow and Deny. Defaults to Deny.

    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_rules blocks as defined below.

    publicNetworkAccessEnabled Boolean

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

    trustedServicesAllowed Boolean

    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.

    IgnoreMissingVnetServiceEndpoint bool

    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.

    IgnoreMissingVnetServiceEndpoint bool

    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.

    ignoreMissingVnetServiceEndpoint Boolean

    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.

    ignoreMissingVnetServiceEndpoint boolean

    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_vnet_service_endpoint bool

    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.

    ignoreMissingVnetServiceEndpoint Boolean

    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
    

    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.

    Azure Classic v5.52.0 published on Monday, Oct 2, 2023 by Pulumi