Azure 如何从powershell获取EventHub命名空间SAS密钥

Azure 如何从powershell获取EventHub命名空间SAS密钥,azure,powershell,connection-string,azure-powershell,azure-eventhub,Azure,Powershell,Connection String,Azure Powershell,Azure Eventhub,以前的Powershell模块AzureRm.EventHub具有Get-AzureRmEventHubNamespaceKey,并且很容易获取密钥。现在,它已从powershell v5中删除。现在,我如何获取EventHubNameSpace SAS密钥。以下是我在计算机中找到的powershell Get cmdlet列表 Get-AzureRmEventHub Get-AzureRmEventHubAuthorizationRule Get-AzureRmEventHubConsumer

以前的Powershell模块
AzureRm.EventHub
具有
Get-AzureRmEventHubNamespaceKey
,并且很容易获取密钥。现在,它已从powershell v5中删除。现在,我如何获取EventHubNameSpace SAS密钥。以下是我在计算机中找到的powershell Get cmdlet列表

Get-AzureRmEventHub
Get-AzureRmEventHubAuthorizationRule
Get-AzureRmEventHubConsumerGroup
Get-AzureRmEventHubGeoDRConfiguration
Get-AzureRmEventHubKey
Get-AzureRmEventHubNamespace
Get-AzureRmIotHubEventHubConsumerGroup

谢谢

您可以使用
调用AzureRmResourceAction
来执行以下操作:

Invoke-AzureRmResourceAction -ResourceGroupName rgName -ResourceType Microsoft.EventHub/namespaces/AuthorizationRules -ResourceName eventhubName/RootManageSharedAccessKey -Action listKeys -ApiVersion 2015-08-01 -Force

太棒了,非常感谢!