Enabling partitions in premium service bus

Wagholikar, Neha 5 Reputation points
2024-01-10T16:28:01.9766667+00:00

We are tying to add partitions - 4 and capacity 16, but in overview tab it shows partition only as 1 and messagingunits as 16

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
653 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 29,191 Reputation points
    2024-01-12T16:46:39.12+00:00

    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
                }
            }
        ]
    }
    
    
    

    User's image

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.