1. Packages
  2. Azure Native v1
  3. API Docs
  4. servicebus
  5. Namespace
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.servicebus.Namespace

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Description of a namespace resource. API Version: 2017-04-01.

    Example Usage

    NameSpaceCreate

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var @namespace = new AzureNative.ServiceBus.Namespace("namespace", new()
        {
            Location = "South Central US",
            NamespaceName = "sdk-Namespace2924",
            ResourceGroupName = "ArunMonocle",
            Sku = new AzureNative.ServiceBus.Inputs.SBSkuArgs
            {
                Name = AzureNative.ServiceBus.SkuName.Standard,
                Tier = AzureNative.ServiceBus.SkuTier.Standard,
            },
            Tags = 
            {
                { "tag1", "value1" },
                { "tag2", "value2" },
            },
        });
    
    });
    
    package main
    
    import (
    	servicebus "github.com/pulumi/pulumi-azure-native-sdk/servicebus"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := servicebus.NewNamespace(ctx, "namespace", &servicebus.NamespaceArgs{
    			Location:          pulumi.String("South Central US"),
    			NamespaceName:     pulumi.String("sdk-Namespace2924"),
    			ResourceGroupName: pulumi.String("ArunMonocle"),
    			Sku: &servicebus.SBSkuArgs{
    				Name: servicebus.SkuNameStandard,
    				Tier: servicebus.SkuTierStandard,
    			},
    			Tags: pulumi.StringMap{
    				"tag1": pulumi.String("value1"),
    				"tag2": pulumi.String("value2"),
    			},
    		})
    		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.azurenative.servicebus.Namespace;
    import com.pulumi.azurenative.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 namespace = new Namespace("namespace", NamespaceArgs.builder()        
                .location("South Central US")
                .namespaceName("sdk-Namespace2924")
                .resourceGroupName("ArunMonocle")
                .sku(Map.ofEntries(
                    Map.entry("name", "Standard"),
                    Map.entry("tier", "Standard")
                ))
                .tags(Map.ofEntries(
                    Map.entry("tag1", "value1"),
                    Map.entry("tag2", "value2")
                ))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    namespace = azure_native.servicebus.Namespace("namespace",
        location="South Central US",
        namespace_name="sdk-Namespace2924",
        resource_group_name="ArunMonocle",
        sku=azure_native.servicebus.SBSkuArgs(
            name=azure_native.servicebus.SkuName.STANDARD,
            tier=azure_native.servicebus.SkuTier.STANDARD,
        ),
        tags={
            "tag1": "value1",
            "tag2": "value2",
        })
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const namespace = new azure_native.servicebus.Namespace("namespace", {
        location: "South Central US",
        namespaceName: "sdk-Namespace2924",
        resourceGroupName: "ArunMonocle",
        sku: {
            name: azure_native.servicebus.SkuName.Standard,
            tier: azure_native.servicebus.SkuTier.Standard,
        },
        tags: {
            tag1: "value1",
            tag2: "value2",
        },
    });
    
    resources:
      namespace:
        type: azure-native:servicebus:Namespace
        properties:
          location: South Central US
          namespaceName: sdk-Namespace2924
          resourceGroupName: ArunMonocle
          sku:
            name: Standard
            tier: Standard
          tags:
            tag1: value1
            tag2: value2
    

    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,
                  location: Optional[str] = None,
                  namespace_name: Optional[str] = None,
                  sku: Optional[SBSkuArgs] = 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-native: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 examplenamespaceResourceResourceFromServicebus = new AzureNative.Servicebus.Namespace("examplenamespaceResourceResourceFromServicebus", new()
    {
        ResourceGroupName = "string",
        Location = "string",
        NamespaceName = "string",
        Sku = 
        {
            { "name", "Basic" },
            { "capacity", 0 },
            { "tier", "Basic" },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := servicebus.NewNamespace(ctx, "examplenamespaceResourceResourceFromServicebus", &servicebus.NamespaceArgs{
    	ResourceGroupName: "string",
    	Location:          "string",
    	NamespaceName:     "string",
    	Sku: map[string]interface{}{
    		"name":     "Basic",
    		"capacity": 0,
    		"tier":     "Basic",
    	},
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    })
    
    var examplenamespaceResourceResourceFromServicebus = new Namespace("examplenamespaceResourceResourceFromServicebus", NamespaceArgs.builder()
        .resourceGroupName("string")
        .location("string")
        .namespaceName("string")
        .sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    examplenamespace_resource_resource_from_servicebus = azure_native.servicebus.Namespace("examplenamespaceResourceResourceFromServicebus",
        resource_group_name=string,
        location=string,
        namespace_name=string,
        sku={
            name: Basic,
            capacity: 0,
            tier: Basic,
        },
        tags={
            string: string,
        })
    
    const examplenamespaceResourceResourceFromServicebus = new azure_native.servicebus.Namespace("examplenamespaceResourceResourceFromServicebus", {
        resourceGroupName: "string",
        location: "string",
        namespaceName: "string",
        sku: {
            name: "Basic",
            capacity: 0,
            tier: "Basic",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:servicebus:Namespace
    properties:
        location: string
        namespaceName: string
        resourceGroupName: string
        sku:
            capacity: 0
            name: Basic
            tier: Basic
        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

    The Namespace resource accepts the following input properties:

    ResourceGroupName string
    Name of the Resource group within the Azure subscription.
    Location string
    The Geo-location where the resource lives
    NamespaceName string
    The namespace name.
    Sku Pulumi.AzureNative.ServiceBus.Inputs.SBSku
    Properties of Sku
    Tags Dictionary<string, string>
    Resource tags
    ResourceGroupName string
    Name of the Resource group within the Azure subscription.
    Location string
    The Geo-location where the resource lives
    NamespaceName string
    The namespace name.
    Sku SBSkuArgs
    Properties of Sku
    Tags map[string]string
    Resource tags
    resourceGroupName String
    Name of the Resource group within the Azure subscription.
    location String
    The Geo-location where the resource lives
    namespaceName String
    The namespace name.
    sku SBSku
    Properties of Sku
    tags Map<String,String>
    Resource tags
    resourceGroupName string
    Name of the Resource group within the Azure subscription.
    location string
    The Geo-location where the resource lives
    namespaceName string
    The namespace name.
    sku SBSku
    Properties of Sku
    tags {[key: string]: string}
    Resource tags
    resource_group_name str
    Name of the Resource group within the Azure subscription.
    location str
    The Geo-location where the resource lives
    namespace_name str
    The namespace name.
    sku SBSkuArgs
    Properties of Sku
    tags Mapping[str, str]
    Resource tags
    resourceGroupName String
    Name of the Resource group within the Azure subscription.
    location String
    The Geo-location where the resource lives
    namespaceName String
    The namespace name.
    sku Property Map
    Properties of Sku
    tags Map<String>
    Resource tags

    Outputs

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

    CreatedAt string
    The time the namespace was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetricId string
    Identifier for Azure Insights metrics
    Name string
    Resource name
    ProvisioningState string
    Provisioning state of the namespace.
    ServiceBusEndpoint string
    Endpoint you can use to perform Service Bus operations.
    Type string
    Resource type
    UpdatedAt string
    The time the namespace was updated.
    CreatedAt string
    The time the namespace was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    MetricId string
    Identifier for Azure Insights metrics
    Name string
    Resource name
    ProvisioningState string
    Provisioning state of the namespace.
    ServiceBusEndpoint string
    Endpoint you can use to perform Service Bus operations.
    Type string
    Resource type
    UpdatedAt string
    The time the namespace was updated.
    createdAt String
    The time the namespace was created.
    id String
    The provider-assigned unique ID for this managed resource.
    metricId String
    Identifier for Azure Insights metrics
    name String
    Resource name
    provisioningState String
    Provisioning state of the namespace.
    serviceBusEndpoint String
    Endpoint you can use to perform Service Bus operations.
    type String
    Resource type
    updatedAt String
    The time the namespace was updated.
    createdAt string
    The time the namespace was created.
    id string
    The provider-assigned unique ID for this managed resource.
    metricId string
    Identifier for Azure Insights metrics
    name string
    Resource name
    provisioningState string
    Provisioning state of the namespace.
    serviceBusEndpoint string
    Endpoint you can use to perform Service Bus operations.
    type string
    Resource type
    updatedAt string
    The time the namespace was updated.
    created_at str
    The time the namespace was created.
    id str
    The provider-assigned unique ID for this managed resource.
    metric_id str
    Identifier for Azure Insights metrics
    name str
    Resource name
    provisioning_state str
    Provisioning state of the namespace.
    service_bus_endpoint str
    Endpoint you can use to perform Service Bus operations.
    type str
    Resource type
    updated_at str
    The time the namespace was updated.
    createdAt String
    The time the namespace was created.
    id String
    The provider-assigned unique ID for this managed resource.
    metricId String
    Identifier for Azure Insights metrics
    name String
    Resource name
    provisioningState String
    Provisioning state of the namespace.
    serviceBusEndpoint String
    Endpoint you can use to perform Service Bus operations.
    type String
    Resource type
    updatedAt String
    The time the namespace was updated.

    Supporting Types

    SBSku, SBSkuArgs

    Name Pulumi.AzureNative.ServiceBus.SkuName
    Name of this SKU.
    Capacity int
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    Tier Pulumi.AzureNative.ServiceBus.SkuTier
    The billing tier of this particular SKU.
    Name SkuName
    Name of this SKU.
    Capacity int
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    Tier SkuTier
    The billing tier of this particular SKU.
    name SkuName
    Name of this SKU.
    capacity Integer
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier SkuTier
    The billing tier of this particular SKU.
    name SkuName
    Name of this SKU.
    capacity number
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier SkuTier
    The billing tier of this particular SKU.
    name SkuName
    Name of this SKU.
    capacity int
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier SkuTier
    The billing tier of this particular SKU.
    name "Basic" | "Standard" | "Premium"
    Name of this SKU.
    capacity Number
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier "Basic" | "Standard" | "Premium"
    The billing tier of this particular SKU.

    SBSkuResponse, SBSkuResponseArgs

    Name string
    Name of this SKU.
    Capacity int
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    Tier string
    The billing tier of this particular SKU.
    Name string
    Name of this SKU.
    Capacity int
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    Tier string
    The billing tier of this particular SKU.
    name String
    Name of this SKU.
    capacity Integer
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier String
    The billing tier of this particular SKU.
    name string
    Name of this SKU.
    capacity number
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier string
    The billing tier of this particular SKU.
    name str
    Name of this SKU.
    capacity int
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier str
    The billing tier of this particular SKU.
    name String
    Name of this SKU.
    capacity Number
    The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4.
    tier String
    The billing tier of this particular SKU.

    SkuName, SkuNameArgs

    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    SkuNameBasic
    Basic
    SkuNameStandard
    Standard
    SkuNamePremium
    Premium
    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    BASIC
    Basic
    STANDARD
    Standard
    PREMIUM
    Premium
    "Basic"
    Basic
    "Standard"
    Standard
    "Premium"
    Premium

    SkuTier, SkuTierArgs

    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    SkuTierBasic
    Basic
    SkuTierStandard
    Standard
    SkuTierPremium
    Premium
    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    Basic
    Basic
    Standard
    Standard
    Premium
    Premium
    BASIC
    Basic
    STANDARD
    Standard
    PREMIUM
    Premium
    "Basic"
    Basic
    "Standard"
    Standard
    "Premium"
    Premium

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:servicebus:Namespace sdk-Namespace-2924 /subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-2924 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi