Namespace Args
Description of a namespace resource. Uses Azure REST API version 2022-01-01-preview. In version 1.x of the Azure Native provider, it used API version 2017-04-01. Other available API versions: 2022-10-01-preview, 2023-01-01-preview, 2024-01-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/v2"
"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: pulumi.String(servicebus.SkuNameStandard),
Tier: pulumi.String(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 com.pulumi.azurenative.servicebus.inputs.SBSkuArgs;
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(SBSkuArgs.builder()
.name("Standard")
.tier("Standard")
.build())
.tags(Map.ofEntries(
Map.entry("tag1", "value1"),
Map.entry("tag2", "value2")
))
.build());
}
}
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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}
Constructors
Properties
Alternate name for namespace
This property disables SAS authentication for the Service Bus namespace.
Properties of BYOK Encryption description
Properties of BYOK Identity description
The minimum TLS version for the cluster to support, e.g. '1.2'
The namespace name.
List of private endpoint connections. These are also available as standalone resources. Do not mix inline and standalone resource as they will conflict with each other, leading to resources deletion.
This determines if traffic is allowed over public network. By default it is enabled.
Name of the Resource group within the Azure subscription.
Enabling this property creates a Premium Service Bus Namespace in regions supported availability zones.