Get-AzureRmServiceBusSubscription

Returns a subscription description for the specified topic.

Syntax

Get-AzureRmServiceBusSubscription
   [-ResourceGroupName] <String>
   [-Namespace] <String>
   [-Topic] <String>
   [[-Name] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzureRmServiceBusSubscription cmdlet returns a subscription description for the specified Service Bus topic.

Examples

Example 1

PS C:\> Get-AzureRmServiceBusSubscription -ResourceGroup Default-ServiceBus-WestUS -NamespaceName SB-Example1 -TopicName SB-Topic_exampl1 -SubscriptionName SB-TopicSubscription-Example1

Returns a subscription description for the specified Service Bus topic.

Required Parameters

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

Topic Name.

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

Optional Parameters

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

Subscription Name.

Type:String
Aliases:SubscriptionName
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

-ResourceGroup

System.String

Inputs

-NamespaceName

System.String

Inputs

-TopicName

System.String

Inputs

-SubscriptionName

System.String

Outputs

Microsoft.Azure.Commands.ServiceBus.Models.SubscriptionAttributes

Name : SB-TopicSubscription-Example1 AccessedAt : 1/20/2017 3:18:54 AM AutoDeleteOnIdle : 10675199.02:48:05.4775807 CountDetails : Microsoft.Azure.Management.ServiceBus.Models.MessageCountDetails CreatedAt : 1/20/2017 3:18:52 AM DefaultMessageTimeToLive : 10675199.02:48:05.4775807 DeadLetteringOnMessageExpiration : False EnableBatchedOperations : True LockDuration : 00:01:00 MaxDeliveryCount : 10 MessageCount : 0 RequiresSession : False Status : Active UpdatedAt : 1/20/2017 3:18:54 AM