我有一个用例可以将事件中心作为订阅服务器添加到事件网格域主题中。
在这里,事件网格域&事件中心驻留在两个不同的Azure订阅中(由同一个租户保护)
如何创建事件网格域主题订阅以通过az cli命令连接到事件中心?
这是否可以仅用同时访问这些资源的SPN来完成,还是应该使用托管标识?
发布于 2022-10-19 14:28:13
是的,可以使用Azure CLI Cmdlets创建Azure事件网格域主题订阅以连接到事件集线器,而无需托管标识:
下面的cmdlet遵循这个博士女士:
az account set --subscription <my-dev-subscriptionid>
az eventgrid domain create -g KrishDev-RG --name hedomain1 -l westus2 - Done 1
az eventgrid domain topic create -g KrishDev-RG --domain-name hedomain1 --name hedomain1topic1
az account set --subscription <my-prod-subscriptionid>
az eventhubs namespace create --name heventhubns01 --resource-group Krishprod-RG -l westus2
az eventhubs eventhub create --name hevhns01hub --resource-group Krishprod-RG --namespace-name heventhubns01
az eventgrid domain topic event-subscription create --name kes1 \
-g Krishprod-RG --domain-name hedomain1 --domain-topic-name hedomain1topic1 \
--endpoint <eventhub-endpoint>
结果
https://stackoverflow.com/questions/74059635
复制相似问题