Set-​Azure​Rm​Service​Bus​Topic

Updates the description of a Service Bus topic in the specified Service Bus namespace.

Syntax

Set-AzureRmServiceBusTopic
   [-ResourceGroup] <String>
   [-NamespaceName] <String>
   [-TopicName] <String>
   [-TopicObj] <TopicAttributes>
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Set-AzureRmServiceBusTopic cmdlet updates a description object for a Service Bus topic in the specified Service Bus namespace.

Examples

Example 1

PS C:\> $topicObj = Get-AzureRmServiceBusTopic -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -TopicName SB-Topic_exampl1

PS C:\> $topicObj.EnableExpress = $True

PS C:\> Set-AzureRmServiceBusTopic -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -TopicName SB-Topic_exampl1 -TopicObj $topicObj

Updates the specified topic with a new description in the specified namespace. This example updates the EnableExpress property to true.

Required Parameters

-NamespaceName

The Service Bus namespace name.

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

The name of the resource group.

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

The Service Bus topic name.

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

The Service Bus topic definition.

Type:TopicAttributes
Position:3
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
-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

Inputs

-NamespaceName

Inputs

-TopicName

Inputs

-TopicObj

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.TopicAttributes