Set-AzureRmServiceBusTopic

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

Syntax

Set-AzureRmServiceBusTopic
   [-ResourceGroupName] <String>
   [-Namespace] <String>
   [-Name] <String>
   [-InputObject] <TopicAttributes>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<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

-InputObject

ServiceBus Topic definition.

Type:Microsoft.Azure.Commands.ServiceBus.Models.TopicAttributes
Aliases:TopicObj
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Topic Name.

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

Namespace Name.

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

The name of the resource group

Type:String
Aliases:ResourceGroup
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:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:System.Management.Automation.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 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 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 MaxSizeInMegabytes : 16384 RequiresDuplicateDetection : False SizeInBytes : 0 Status : Active SubscriptionCount : 1 SupportOrdering : False UpdatedAt : 1/20/2017 7:12:16 PM