New-AzureSBNamespace

Creates a namespace.

Syntax

New-AzureSBNamespace [-Name] <String> [[-Location] <String>] [[-CreateACSNamespace] <Boolean>]
 [-NamespaceType] <NamespaceType> [-Profile <AzureSMProfile>] [<CommonParameters>]

Description

powershell_prelim

The New-AzureSBNamespace cmdlet creates a service namespace for use with Service Bus in Azure.

Examples

1: Create a service namespace

PS C:\> New-AzureSBNamespace -name myNameSpace -Location East US PS C:\> New-AzureSBNamespace myNameSpace 'East US'

The following examples create a service namespace for use with Service Bus in Azure. Both examples include the required parameter values, but only the first includes the parameter names. The second example can be used because both parameters are positional and their values are given in the required order.

Parameters

-Name

Specifies a name for the new namespace.

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

Specifies a region for the new namespace.

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

Specifies whether to create an associated ACS namespace in addition to the service namespace.

Type:Boolean
Required:False
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NamespaceType

Specify a whether to use the namespace for Messaging or Notification Hubs.

Type:NamespaceType
Required:True
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Profile

In-memory profile.

Type:AzureSMProfile
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False