azure - 从 "Get-AzureRmEventHubKey "命令 power-shell 中提取事件中心 Microsoft-azure 的主键

标签 azure azure-powershell azure-eventhub

我想从“Get-AzureRmEventHubKey”的输出中获取主键并将其存储在变量中,如何通过 powershell 执行此操作?

最佳答案

您可以尝试以下 PowerShell cmdlet 从 Even-hub 中提取主键:

$PrimaryKey = Get-AzureRmEventHubKey -ResourceGroupName myResourceGroup -NamespaceName namespace_name -Name RootManageSharedAccessKey |Select -ExpandProperty "PrimaryKey"

关于azure - 从 "Get-AzureRmEventHubKey "命令 power-shell 中提取事件中心 Microsoft-azure 的主键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52160219/

相关文章:

azure - 从 Azure 获取 'An existing connection was forcibly closed by the remote host.'

azure - 将字符串值液体转换为日期格式

azure - 如何使用 powershell 脚本在 App Insights 上正确设置连续导出?

powershell - 调用 New-AzureStorageTable cmdlet 时 VSTS 发布 Azure Powershell 任务失败

powershell - 添加-AzureRmAccount : Sequence contains no elements

azure - 如何检查 Azure 事件中心中收到的事件

azure - Azure 事件中心是否有任何方法可以计算出在指定时间使用了多少吞吐量单位?

Azure Graph API 无法在 userPrincipalAccount 中创建没有域的本地帐户

azure - 从 Azure Blob 存储下载 parquet 文件。同名的文件和文件夹

Azure 通知中心注册生效时间(90 天限制)