Wagholikar, Neha Thanks for getting back, so it was working fine in the portal, issues occurs only when you deploy using ARM template. Please try using the below ARM template i tried deploying at my end and it worked as expected.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"serviceBusNamespaceName": {
"type": "String",
"metadata": {
"description": "Name of the Service Bus namespace"
}
},
"location": {
"type": "String",
"metadata": {
"description": "Location for all resources."
}
}
},
"resources": [
{
"type": "Microsoft.ServiceBus/namespaces",
"apiVersion": "2022-10-01-preview",
"name": "[parameters('serviceBusNamespaceName')]",
"location": "[parameters('location')]",
"sku": {
"name": "Premium",
"tier": "Premium",
"capacity": 16
},
"properties": {
"premiumMessagingPartitions": 4
}
}
]
}
do try and let me know incase of further queries, I would be happy to assist you. Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.