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

System.String

Inputs

-NamespaceName

System.String

Inputs

-TopicName

System.String

Inputs

-TopicObj

Microsoft.Azure.Commands.ServiceBus.Models.TopicAttributes

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.TopicAttributes

Name : SB-Topic_exampl1 Location : West US Id : /subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/SB-Example1/topics/SB- Topic_exampl1 Type : Microsoft.ServiceBus/Topic AccessedAt : 1/20/2017 3:18:54 AM AutoDeleteOnIdle : 10675199.02:48:05.4775807 EntityAvailabilityStatus : CreatedAt : 1/20/2017 3:16:41 AM CountDetails : Microsoft.Azure.Management.ServiceBus.Models.MessageCountDetails DefaultMessageTimeToLive : 10675199.02:48:05.4775807 DuplicateDetectionHistoryTimeWindow : EnableBatchedOperations : True EnableExpress : True EnablePartitioning : True EnableSubscriptionPartitioning : False FilteringMessagesBeforePublishing : False IsAnonymousAccessible : False IsExpress : False MaxSizeInMegabytes : 16384 RequiresDuplicateDetection : False SizeInBytes : 0 Status : Active SubscriptionCount : 1 SupportOrdering : False UpdatedAt : 1/20/2017 7:12:16 PM