New-AzServiceBusKey
Meregenerasi SASKey namespace ServiceBus, antrean, atau topik.
Sintaks
New-AzServiceBusKey
-Name <String>
-NamespaceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-KeyType <String>
[-KeyValue <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzServiceBusKey
-Name <String>
-NamespaceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-TopicName <String>
-KeyType <String>
[-KeyValue <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzServiceBusKey
-Name <String>
-NamespaceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-QueueName <String>
-KeyType <String>
[-KeyValue <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Deskripsi
Meregenerasi SASKey namespace ServiceBus, antrean, atau topik.
Contoh
Contoh 1: Meregenerasi Kunci Utama Namespace ServiceBus
New-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name rootmanagesharedaccesskey -KeyType PrimaryKey
KeyName : RootManageSharedAccessKey
PrimaryConnectionString : {primaryConnectionString}
PrimaryKey : {primaryKey}
SecondaryConnectionString : {secondaryConnectionString}
SecondaryKey : {secondaryKey}
Regenerasi kunci utama aturan rootmanagesharedaccesskey
otorisasi pada ServiceBus Namespace myNamespace
.
Contoh 2: Meregenerasi Kunci Sekunder dari antrean ServiceBus
New-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -QueueName myQueue -Name rootmanagesharedaccesskey -KeyType SecondaryKey
KeyName : RootManageSharedAccessKey
PrimaryConnectionString : {primaryConnectionString}
PrimaryKey : {primaryKey}
SecondaryConnectionString : {secondaryConnectionString}
SecondaryKey : {secondaryKey}
Regenerasi kunci sekunder aturan rootmanagesharedaccesskey
otorisasi pada antrean myQueue
ServiceBus dari ServiceBus Namespace myNamespace
.
Contoh 3: Meregenerasi Kunci Sekunder dari topik ServiceBus
New-AzServiceBusKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -TopicName myTopic -Name rootmanagesharedaccesskey -KeyType SecondaryKey
KeyName : RootManageSharedAccessKey
PrimaryConnectionString : {primaryConnectionString}
PrimaryKey : {primaryKey}
SecondaryConnectionString : {secondaryConnectionString}
SecondaryKey : {secondaryKey}
Regenerasi kunci sekunder aturan rootmanagesharedaccesskey
otorisasi pada topik myTopic
ServiceBus dari ServiceBus Namespace myNamespace
.
Parameter
-AsJob
Jalankan perintah sebagai pekerjaan
Jenis: | SwitchParameter |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Confirm
Meminta Anda mengonfirmasi sebelum menjalankan cmdlet.
Jenis: | SwitchParameter |
Alias: | cf |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.
Jenis: | PSObject |
Alias: | AzureRMContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-KeyType
Kunci akses untuk meregenerasi.
Jenis: | String |
Alias: | RegenerateKey |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-KeyValue
Opsional, jika nilai kunci yang disediakan, diatur untuk KeyType atau nilai Kunci yang dibuat secara otomatis yang ditetapkan untuk keyType
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-Name
Nama Aturan Otorisasi
Jenis: | String |
Alias: | AuthorizationRuleName |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-NamespaceName
Nama namespace ServiceBus
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-NoWait
Jalankan perintah secara asinkron
Jenis: | SwitchParameter |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-QueueName
Nama antrean ServiceBus.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceGroupName
Nama grup sumber daya. Nama tidak peka huruf besar/kecil.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-SubscriptionId
ID langganan target.
Jenis: | String |
Position: | Named |
Nilai default: | (Get-AzContext).Subscription.Id |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-TopicName
Nama topik ServiceBus.
Jenis: | String |
Position: | Named |
Nilai default: | None |
Diperlukan: | True |
Terima input alur: | False |
Terima karakter wildcard: | False |
-WhatIf
Menunjukkan apa yang akan terjadi jika cmdlet berjalan. Cmdlet tidak dijalankan.
Jenis: | SwitchParameter |
Alias: | wi |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
Output
Azure PowerShell