< Back

New-AzureRmServiceBusNamespace

Tue Jan 29, 2019 10:07 pm

NAME New-AzureRmServiceBusNamespace



SYNOPSIS

Creates a new Service Bus namespace.





SYNTAX

New-AzureRmServiceBusNamespace [-ResourceGroupName] <String> [-Location] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>]

[-SkuName {Basic | Standard | Premium}] [-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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Location <String>

The Service Bus namespace location.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

ServiceBus Namespace Name.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

The resource group name.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-SkuName <String>

The Service Bus namespace SKU name.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Tag <Hashtable>

Key-value pairs in the form of a hash table set as tags on the server. For example:



@{key0="value0";key1=$null;key2="value2"}



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

-ResourceGroup

System.String



-NamespaceName

System.String



-Location

System.String



-SkuName

System.String



-Tag

System.Collections.Hashtable





OUTPUTS

Microsoft.Azure.Commands.ServiceBus.Models.PSNamespaceAttributes







NOTES









Example 1



PS C:\\> New-AzureRmServiceBusNamespace -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -Location WestUS -SkuName "Standard"

-Tag @{Tag1="Tag1Value"}



Name : SB-Example1

Id :

/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/SB-Example1

Location : West US

Sku : Name : Standard , Capacity : 1 , Tier : Standard

ProvisioningState : Succeeded

CreatedAt : 1/20/2017 2:07:33 AM

UpdatedAt : 1/20/2017 2:07:56 AM

ServiceBusEndpoint : https://SB-Example1.servicebus.windows.net:443/



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







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... snamespace