Get-AzureRmEventGridSubscription
이벤트 구독의 세부 정보를 가져오거나 현재 Azure 구독의 모든 이벤트 구독 목록을 가져옵니다.
Warning
AzureRM PowerShell 모듈은 2024년 2월 29일부터 공식적으로 사용되지 않습니다. 사용자는 지속적인 지원 및 업데이트를 보장하기 위해 AzureRM에서 Az PowerShell 모듈로 마이그레이션하는 것이 좋습니다.
AzureRM 모듈은 여전히 작동할 수 있지만 더 이상 기본 또는 지원되지 않으므로 사용자의 재량에 따라 계속 사용할 수 있습니다. Az 모듈로 전환하는 방법에 대한 지침은 마이그레이션 리소스를 참조하세요.
Syntax
Get-AzureRmEventGridSubscription
[[-EventSubscriptionName] <String>]
[[-ResourceGroupName] <String>]
[[-TopicName] <String>]
[-IncludeFullEndpointUrl]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmEventGridSubscription
[[-EventSubscriptionName] <String>]
[-ResourceId] <String>
[-IncludeFullEndpointUrl]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmEventGridSubscription
[[-ResourceGroupName] <String>]
[[-TopicTypeName] <String>]
[[-Location] <String>]
[-IncludeFullEndpointUrl]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmEventGridSubscription
[-InputObject] <PSTopic>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzureRmEventGridSubscription cmdlet은 지정된 Event Grid 구독의 세부 정보 또는 현재 Azure 구독 또는 리소스 그룹의 모든 Event Grid 구독 목록을 가져옵니다. 이벤트 구독 이름이 제공되면 단일 Event Grid 구독의 세부 정보가 반환됩니다. 이벤트 구독 이름이 제공되지 않으면 모든 이벤트 구독 목록이 반환됩니다.
예제
예 1
PS C:\> Get-AzureRmEventGridSubscription -ResourceGroupName MyResourceGroupName -TopicName Topic1 -EventSubscriptionName EventSubscription1
리소스 그룹 'MyResourceGroupName'의 토픽 'Topic1'에 대해 만든 이벤트 구독 'EventSubscription1'의 세부 정보를 가져옵니다.
예제 2
PS C:\> Get-AzureRmEventGridSubscription -ResourceGroupName MyResourceGroupName -TopicName Topic1 -EventSubscriptionName EventSubscription1 -IncludeFullEndpointUrl
웹후크 기반 이벤트 구독인 경우 전체 엔드포인트 URL을 포함하여 리소스 그룹 'MyResourceGroupName'의 토픽 'Topic1'에 대해 만든 이벤트 구독 'EventSubscription1'의 세부 정보를 가져옵니다.
예 3
PS C:\> Get-AzureRmEventGridSubscription -ResourceGroupName MyResourceGroupName -TopicName Topic1
리소스 그룹 'MyResourceGroupName'에서 토픽 'Topic1'에 대해 만든 모든 이벤트 구독 목록을 가져옵니다.
예시 4
PS C:\> Get-AzureRmEventGridSubscription -ResourceGroupName MyResourceGroupName -EventSubscriptionName EventSubscription1
리소스 그룹 'MyResourceGroupName'에 대해 만든 이벤트 구독 'EventSubscription1'의 세부 정보를 가져옵니다.
예제 5
PS C:\> Get-AzureRmEventGridSubscription -EventSubscriptionName EventSubscription1
현재 선택한 Azure 구독에 대해 만든 이벤트 구독 'EventSubscription1'의 세부 정보를 가져옵니다.
예제 6
PS C:\> Get-AzureRmEventGridSubscription -ResourceGroupName MyResourceGroupName
리소스 그룹 'MyResourceGroupName'에서 만든 모든 전역 이벤트 구독의 목록을 가져옵니다.
예제 7
PS C:\> Get-AzureRmEventGridSubscription
현재 선택한 Azure 구독에서 만든 모든 전역 이벤트 구독의 목록을 가져옵니다.
예제 8
PS C:\> Get-AzureRmEventGridSubscription -ResourceGroupName MyResourceGroupName -Location westus2
지정된 위치 'westus2'의 리소스 그룹 'MyResourceGroupName'에서 만든 모든 지역 이벤트 구독 목록을 가져옵니다.
예제 9
PS C:\> Get-AzureRmEventGridSubscription -ResourceId "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.EventHub/namespaces/$namespaceName"
지정된 EventHub 네임스페이스에 대해 만든 모든 이벤트 구독의 목록을 가져옵니다.
예제 10
PS C:\> Get-AzureRmEventGridSubscription -TopicTypeName "Microsoft.EventHub.Namespaces" -Location $location
지정된 위치에 있는 지정된 토픽 유형(EventHub 네임스페이스)에 대해 생성된 모든 이벤트 구독 목록을 가져옵니다.
예제 11
PS C:\> Get-AzureRmEventGridSubscription -TopicTypeName "Microsoft.Resources.ResourceGroups" -ResourceGroupName MyResourceGroupName
특정 리소스 그룹에 대해 만든 모든 이벤트 구독의 목록을 가져옵니다.
매개 변수
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독
Type: | IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EventSubscriptionName
이벤트 구독의 이름
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-IncludeFullEndpointUrl
이벤트 구독 대상의 전체 엔드포인트 URL을 포함합니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
EventGrid 이벤트 구독 개체입니다.
Type: | PSTopic |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Location
위치
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
리소스 그룹 이름.
Type: | String |
Aliases: | ResourceGroup |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceId
이벤트 구독이 만들어진 리소스의 식별자입니다.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TopicName
EventGrid 토픽 이름입니다.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-TopicTypeName
TopicType 이름
Type: | String |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
입력
매개 변수: InputObject(ByValue)