Skip to content

Instantly share code, notes, and snippets.

@jimsander
Last active January 6, 2017 20:49
Show Gist options
  • Save jimsander/0fe34c13f0269748c1f331acaafdcdc7 to your computer and use it in GitHub Desktop.
Save jimsander/0fe34c13f0269748c1f331acaafdcdc7 to your computer and use it in GitHub Desktop.
AzureRM: Invalid property value for MaxSizeInMegabytes

Using a template file exported from Azure portal, getting an error of invalid size for a topic resource

  ``` {
        "comments": "Generalized from resource: '/subscriptions/26b771e4-52ff-4d34-ab73-8606e48876a7/resourcegroups/charon-services-work/providers/Microsoft.ServiceBus/namespaces/charon-bus/topics/subscriptioncreatedfailures'.",
        "type": "Microsoft.ServiceBus/namespaces/topics",
        "name": "[parameters('topics_subscriptioncreatedfailures_name')]",
        "apiVersion": "2015-08-01",
        "location": "South Central US",
        "properties": {
            "defaultMessageTimeToLive": "14.00:00:00",
            "maxSizeInMegabytes": 16384,
            "requiresDuplicateDetection": false,
            "enableBatchedOperations": true,
            "sizeInBytes": 11986,
            "filteringMessagesBeforePublishing": false,
            "isAnonymousAccessible": false,
            "status": "Active",
            "createdAt": "2016-11-21T14:04:35.527Z",
            "updatedAt": "2016-11-21T14:04:37.917Z",
            "accessedAt": "2016-12-06T17:37:54.41Z",
            "supportOrdering": false,
            "countDetails": {
                "activeMessageCount": 0,
                "deadLetterMessageCount": 0,
                "scheduledMessageCount": 0,
                "transferMessageCount": 0,
                "transferDeadLetterMessageCount": 0
            },
            "subscriptionCount": 1,
            "autoDeleteOnIdle": "10675199.02:48:05.4775807",
            "enablePartitioning": true,
            "isExpress": false,
            "enableSubscriptionPartitioning": false,
            "enableExpress": false
        },
        "resources": [],
        "dependsOn": [
            "[resourceId('Microsoft.ServiceBus/namespaces', parameters('namespaces_charon_bus_name'))]"
        ]
    }
]```

image

# time azure group deployment create -vv --name jdstest3 --resource-group jdstest3 --template-file topic_template.json
error:   SubCode=40000. The specified value 16384 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. TrackingId:b5f0f2a7-3dd1-4897-9b2e-d4d0dda2c23a_M4_M4_G30, SystemTracker:jds-charon-bus:Topic:subscriptioncreatedfailures, Timestamp:1/6/2017 8:08:06 PM
error:   SubCode=40000. The specified value 16384 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. TrackingId:4d398499-f2a8-47b8-ad92-8e79b4fa31b9_M2_M2_G2, SystemTracker:jds-charon-bus:Topic:subscriptioncreated, Timestamp:1/6/2017 8:08:05 PM
error:   The host name charon-services-functions.azurewebsites.net is already assigned to another Azure website.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment