New-​Azure​Rm​Relay​Namespace

Creates a new Relay namespace.

Syntax

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

Description

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

Examples

Example 1

PS C:\> New-AzureRmRelayNamespace -ResourceGroupName Default-ServiceBus-WestUS -NamespaceName TestNameSpace-Relay1 -Location "West US" -Tag @{Tag1="Tag1Value"}

Creates a new Relay namespace within the specified resource group.

Required Parameters

-Location

Relay Namespace Location.

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

Relay Namespace Name.

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

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
-Tag

Hashtables which 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

-ResourceGroupName

System.String

Inputs

-NamespaceName

System.String

Inputs

-Location

System.String

Inputs

-SkuName

System.String

Inputs

-Tag

System.Collections.Hashtable

Outputs

Microsoft.Azure.Commands.Relay.Models.RelayNamespaceAttributes

ProvisioningState : Succeeded CreatedAt : 4/12/2017 12:38:47 AM UpdatedAt : 4/12/2017 12:39:10 AM ServiceBusEndpoint : https://TestNameSpace-Relay1.servicebus.windows.net:443/ MetricId : 854d368f-1828-428f-8f3c-f2affa9b2f7d:testnamespace-relay1 Location : West US Tags : {[tag1, Tag1Value]} Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.Relay/namespaces/TestNameSpace-Relay1 Name : TestNameSpace-Relay1 Type : Microsoft.Relay/namespaces