I have created "Standard" tier Service Bus in Azure Portal. I Created Topic and subscription as well. I exported ARM template.
I execute with PowerShell to re-create Service Bus with ARM. I have changed name. I do get Service Bus succesfully created to Azure, but I'm wondering I do I get these errors:
Should I remove rules like ""type": "Microsoft.ServiceBus/namespaces/networkRuleSets"," which were automatically added to Export of ARM?
ERROR:
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