< Back

Get-AzureRmServiceBusSubscription

Tue Jan 29, 2019 10:07 pm

NAME Get-AzureRmServiceBusSubscription



SYNOPSIS

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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Subscription Name.



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Namespace <String>

Namespace Name.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

The name of the resource group



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Topic <String>

Topic Name.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

-ResourceGroup

System.String



-NamespaceName

System.String



-TopicName

System.String



-SubscriptionName

System.String





OUTPUTS

Microsoft.Azure.Commands.ServiceBus.Models.PSSubscriptionAttributes







NOTES









Example 1



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

-SubscriptionName SB-TopicSubscription-Example1



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



Returns a subscription description for the specified Service Bus topic.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... bscription