New-​Azure​Rm​Service​Bus​Namespace

Creates a new Service Bus namespace.

Syntax

New-AzureRmServiceBusNamespace
   [-ResourceGroupName] <String>
   [-Location] <String>
   [-NamespaceName] <String>
   [-SkuName <String>]
   [-Tag <Hashtable>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmServiceBusNamespace cmdlet creates a new Service Bus namespace. Once created, the namespace resource manifest is immutable. This operation is idempotent.

Examples

Example 1

PS C:\> New-AzureRmServiceBusNamespace -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -Location WestUS -SkuName "Standard" -Tag @{Tag1="Tag1Value"}

Creates a new Service Bus namespace within the specified resource group.

Required Parameters

-Location

The Service Bus namespace location.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NamespaceName

The Service Bus namespace name.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

The resource group name.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-SkuName

The Service Bus namespace SKU name.

Type:String
Parameter Sets:Basic, Standard, Premium
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Tag

Hashtable that represents resource tags.

Type:Hashtable
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

-ResourceGroup

System.String

Inputs

-NamespaceName

System.String

Inputs

-Location

System.String

Inputs

-SkuName

System.String

Inputs

-Tag

System.Collections.Hashtable

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.NamespaceAttributes

Name : SB-Example2 Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/SB-Example2 Location : West US Sku : Name : Standard , Capacity : 1 , Tier : Standard ProvisioningState : Succeeded Status : Active CreatedAt : 1/20/2017 2:07:33 AM UpdatedAt : 1/20/2017 2:07:56 AM ServiceBusEndpoint : https://SB-Example2.servicebus.windows.net:443/ Enabled : True