我想从"Get-AzureRmEventHubKey“的输出中获取主键,并将其存储在变量中,如何通过powershell实现?
发布于 2018-09-04 07:40:34
您可以尝试使用以下PowerShell cmdlet从偶数-集线器提取主密钥:
$PrimaryKey = Get-AzureRmEventHubKey -ResourceGroupName myResourceGroup -NamespaceName namespace_name -Name RootManageSharedAccessKey |Select -ExpandProperty "PrimaryKey"https://stackoverflow.com/questions/52160219
复制相似问题