Azure 引用事件中心地理恢复DR别名作为命名空间

Azure 引用事件中心地理恢复DR别名作为命名空间,azure,azure-eventhub,azure-monitoring,azure-policy,bastion-host,Azure,Azure Eventhub,Azure Monitoring,Azure Policy,Bastion Host,我们有一个DeployIfNotExists策略,该策略在环境中的资源上创建诊断设置。策略包含诊断设置的ARM模板,该模板在评估资源上不存在该设置时触发。请参见以下内容:(这是Azure Bastion主机的一个示例设置) 事件中心授权规则ID有一行,我们传入一个参数。早些时候,我们刚刚传递了主要活动中心的信息。但是,位于不同区域的某些资源将失败,因为它们无法跨区域写入事件中心。因此,现在我们使用的是地理恢复别名 我们有一个Geo Recovery DR别名,用于连接两个不同地区的主/辅助事件中

我们有一个DeployIfNotExists策略,该策略在环境中的资源上创建诊断设置。策略包含诊断设置的ARM模板,该模板在评估资源上不存在该设置时触发。请参见以下内容:(这是Azure Bastion主机的一个示例设置)

事件中心授权规则ID有一行,我们传入一个参数。早些时候,我们刚刚传递了主要活动中心的信息。但是,位于不同区域的某些资源将失败,因为它们无法跨区域写入事件中心。因此,现在我们使用的是地理恢复别名

我们有一个Geo Recovery DR别名,用于连接两个不同地区的主/辅助事件中心。我希望传递此DR别名的EventHubAuthorizationRuleID,但是在传递时存在以下问题:

    Resource type 'microsoft.eventhub/namespaces/disasterrecoveryconfigs/authorizationrules' is invalid for property 'properties.eventHubAuthorizationRuleId'. Expected types are 'microsoft.servicebus/namespaces/authorizationrules', 'microsoft.eventhub/namespaces/authorizationrules
我们使用以下Powershell命令获取DR别名的授权规则:

    PS: Get-AzEventHubAuthorizationRule -AliasName xxxxxxxxxxxxxx -Namespace xxxxxxxxxxxx -ResourceGroupName xxxxxxxxxxxxxxxx


    Id       : /subscriptions/xxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxx/providers/Microsoft.EventHub/namespaces/xxxxxxxxxxx/disasterRecoveryConfigs/xxxxxxxxxxxxxxx/AuthorizationRules/RootManageSharedAccessKey
    Type     : Microsoft.EventHub/Namespaces/AuthorizationRules
    Name     : RootManageSharedAccessKey
    Location : 
    Tags     : 
    Rights   : {Listen, Manage, Send}
上面的ID是我们作为参数传入的,是导致失败的原因。Powershell响应中的类型为“Microsoft.EventHub/Namespaces/AuthorizationRules”,尽管它显然包含“disasterRecoveryConfigs”部分


问题:我们如何引用DR别名,使其作为常规名称空间读取?

您是否也可以标记Azure Monitor?它们似乎不支持EH alias authz规则。完成后,它们已被添加。您也可以标记Azure Monitor吗?它们似乎不支持EH alias authz规则。完成后,它们已被添加
    PS: Get-AzEventHubAuthorizationRule -AliasName xxxxxxxxxxxxxx -Namespace xxxxxxxxxxxx -ResourceGroupName xxxxxxxxxxxxxxxx


    Id       : /subscriptions/xxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxx/providers/Microsoft.EventHub/namespaces/xxxxxxxxxxx/disasterRecoveryConfigs/xxxxxxxxxxxxxxx/AuthorizationRules/RootManageSharedAccessKey
    Type     : Microsoft.EventHub/Namespaces/AuthorizationRules
    Name     : RootManageSharedAccessKey
    Location : 
    Tags     : 
    Rights   : {Listen, Manage, Send}