事件中心命名空间授权规则 [英] Event Hub Namespace Authorization Rules

查看:113
本文介绍了事件中心命名空间授权规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以修改默认的共享访问策略(即 RootManageSharedAccessKey )从管理到发送或收听?

Can we modify the default shared access policy (i.e. RootManageSharedAccessKey) from Manage to Send or Listen?

我试图从门户网站修改它,但操作失败了。  

I tried to modify it from portal, but the operation is getting failed. 

这样可能与否?建议请。 

so is that possible or not? suggestions please. 

谢谢。 

推荐答案

嗨Aakansha,不确定你可以通过Portal修改默认访问策略,但您可以使用PS Set cmdlet进行修改,但我还没有测试过。尝试:

Hi Aakansha, Not sure you can modify the default access policy via Portal but you may be able to use the PS Set cmdlet To Modify this but I haven't tested. Try:

Set-AzureRmEventHubAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName -AuthorizationRuleName MyAuthRuleName -Rights @("Manage")


更改"管理"到"发送"或"收听"

Change 'Manage" to "Send" or "Listen"

您还可以尝试创建具有所需权利的新政策,如下所示

You can also try creating a new Policy with the desired rights as shown below

New-AzureRmEventHubAuthorizationRule -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -AuthorizationRuleName MyAuthRuleName -Rights @("Listen","Send")

参考:   https://docs.microsoft.com/en-us/powershell/module/azurerm.eventhub/set-azurermeventhubauthorizationrule?view=azurermps-4.4.1#description

Reference: https://docs.microsoft.com/en-us/powershell/module/azurerm.eventhub/set-azurermeventhubauthorizationrule?view=azurermps-4.4.1#description


这篇关于事件中心命名空间授权规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆