Get-AzEventGridTopicKey
Mendapatkan kunci akses bersama yang digunakan untuk menerbitkan peristiwa ke topik Event Grid.
Sintaks
Get-AzEventGridTopicKey
[-ResourceGroupName] <String>
[-Name] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzEventGridTopicKey
[-InputObject] <PSTopic>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzEventGridTopicKey
[-ResourceId] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Mendapatkan kunci akses bersama yang digunakan untuk menerbitkan peristiwa ke topik Event Grid.
Contoh
Contoh 1
Get-AzEventGridTopicKey -ResourceGroup MyResourceGroupName -Name Topic1
Mendapatkan kunci akses bersama topik Event Grid 'Topic1' di grup sumber daya 'MyResourceGroupName'.
Contoh 2
Get-AzEventGridTopic -ResourceGroup MyResourceGroupName -Name Topic1 | Get-AzEventGridTopicKey
Mendapatkan kunci akses bersama topik Event Grid 'Topic1' di grup sumber daya 'MyResourceGroupName'.
Parameter
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Objek Topik EventGrid.
| Type: | PSTopic |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Nama Topik EventGrid.
| Type: | String |
| Aliases: | TopicName |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Nama Grup Sumber Daya.
| Type: | String |
| Aliases: | ResourceGroup |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Pengidentifikasi Sumber Daya yang mewakili Topik Event Grid.
| Type: | String |
| Position: | 0 |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Input
Output
Saran dan Komentar
Kirim dan lihat umpan balik untuk