使用导出的ARM创建服务总线-不允许创建/更新$ Default规则

问题描述 投票:0回答:1

我已经在Azure门户中创建了“标准”层服务总线。我也创建了主题和订阅。我导出了ARM模板。

我使用PowerShell执行,以使用ARM重新创建Service Bus。我改了名字。我确实成功将服务总线创建到了Azure,但是我想知道是否会出现这些错误:

我是否应该删除规则,例如“” type“:” Microsoft.ServiceBus / namespaces / networkRuleSets“,”哪些已自动添加到ARM的导出中?

错误:

New-AzResourceGroupDeployment : 10.02.54 - Resource 
Microsoft.ServiceBus/namespaces/topics/subscriptions/rules 
'digiservicebusdev/newprofiletopic/newprofilesubscription/$Default' fa
iled with message '{
"error": {
"message": "Create/Update of a $Default rule is not allowed. CorrelationId: 6e135ad8-1bf2-4a33-b088- 
ef6003c025be",
"code": "BadRequest"
}
}'
At C:\Azure\ServiceBusARM\SBARM.ps1:12 char:1
+ New-AzResourceGroupDeployment `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : 
Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet

New-AzResourceGroupDeployment : 10.02.55 - Resource Microsoft.ServiceBus/namespaces/networkRuleSet   
s 'servicebusdev/default' failed with message '{
"error": {
"message": "Network Rules are available only on a Premium Messaging namespace. CorrelationId: 
11135ad8-1bf2-4a33-b088-ef6003c025be",
"code": "BadRequest"
 }
}'
At C:\Azure\ServiceBusARM\SBARM.ps1:12 char:1
+ New-AzResourceGroupDeployment `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [New-AzResourceGroupDeployment], Exception
+ FullyQualifiedErrorId : 
Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.NewAzureResourceGroupDeploymentCmdlet
azure-resource-manager
1个回答
0
投票

我在自己的网站上进行了测试,可以重现您的问题。

每个新创建的主题订阅都有一个初始的默认订阅规则。如果您没有为规则明确指定过滤条件,则应用的过滤器是true过滤器,该过滤器使所有消息都可以选择到订阅中。默认规则没有关联的注释操作。

我怀疑这将涉及服务器端更改,以不创建默认规则,因此会后退。有关更多详细信息,您可以参考此issue

© www.soinside.com 2019 - 2024. All rights reserved.