com.microsoft.azure.CloudException

400 is not a valid polling status code: The request content was invalid and could not be deserialized: 'Error converting value "{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "IotHubs_acceleriteiotphub_name": { "defaultValue": "acceleriteiotphub", "type": "String" } }, "variables": {}, "resources": [ { "comments": "Generalized from resource: '/subscriptions/74a5c44d-7529-41f8-9567-2d7fb7063d06/resourceGroups/acceleriteconcertgroup/providers/Microsoft.Devices/IotHubs/acceleriteiotphub'.", "type": "Microsoft.Devices/IotHubs", "sku": { "name": "F1", "tier": "Free", "capacity": 1 }, "name": "[parameters('IotHubs_acceleriteiotphub_name')]", "apiVersion": "2016-02-03", "location": "eastasia", "tags": {}, "properties": { "eventHubEndpoints": { "events": { "retentionTimeInDays": 1, "partitionCount": 2, "partitionIds": [ "0", "1" ], "path": "iothub-ehub-accelerite-60491-14a99e4b43", "endpoint": "sb://ihsuprodhkres019dednamespace.servicebus.windows.net/" }, "operationsMonitoringEvents": { "retentionTimeInDays": 1, "partitionCount": 2, "partitionIds": [ "0", "1" ], "path": "iothub-ehub-accelerite-60491-69c322cb03", "endpoint": "sb://ihsuprodhkres018dednamespace.servicebus.windows.net/" } }, "storageEndpoints": { "$default": { "sasTtlAsIso8601": "PT1H", "connectionString": "", "containerName": "" } }, "enableFileUploadNotifications": false, "cloudToDevice": { "maxDeliveryCount": 10, "defaultTtlAsIso8601": "PT1H", "feedback": { "lockDurationAsIso8601": "PT1M", "ttlAsIso8601": "PT1H", "maxDeliveryCount": 10 } }, "features": "DeviceManagement" }, "resources": [], "dependsOn": [] } ]}" to type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Templates.Schema.Template'. Path 'properties.template', line 1, position 2817.'.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web12

  • via GitHub by vimukthir
    , 11 months ago
    400 is not a valid polling status code: The request content was invalid and could not be deserialized: 'Error converting value "{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion
  • 400 is not a valid polling status code: stg29849wVM6bb64129086e0 is not a valid storage account name. Storage account name must be between 3 and 24 characters in length and use numbers and lower-case letters only.
  • 400 is not a valid polling status code: The template deployment 'Win-2016-163' is not valid according to the validation procedure. The tracking id is '8f60e8be-fa0b-4fa3-8bc7-da7116d22ea9'. See inner errors for details. Please see https://aka.ms/arm-deploy for usage details.
  • Stack trace

    • com.microsoft.azure.CloudException: 400 is not a valid polling status code: The request content was invalid and could not be deserialized: 'Error converting value "{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "IotHubs_acceleriteiotphub_name": { "defaultValue": "acceleriteiotphub", "type": "String" } }, "variables": {}, "resources": [ { "comments": "Generalized from resource: '/subscriptions/74a5c44d-7529-41f8-9567-2d7fb7063d06/resourceGroups/acceleriteconcertgroup/providers/Microsoft.Devices/IotHubs/acceleriteiotphub'.", "type": "Microsoft.Devices/IotHubs", "sku": { "name": "F1", "tier": "Free", "capacity": 1 }, "name": "[parameters('IotHubs_acceleriteiotphub_name')]", "apiVersion": "2016-02-03", "location": "eastasia", "tags": {}, "properties": { "eventHubEndpoints": { "events": { "retentionTimeInDays": 1, "partitionCount": 2, "partitionIds": [ "0", "1" ], "path": "iothub-ehub-accelerite-60491-14a99e4b43", "endpoint": "sb://ihsuprodhkres019dednamespace.servicebus.windows.net/" }, "operationsMonitoringEvents": { "retentionTimeInDays": 1, "partitionCount": 2, "partitionIds": [ "0", "1" ], "path": "iothub-ehub-accelerite-60491-69c322cb03", "endpoint": "sb://ihsuprodhkres018dednamespace.servicebus.windows.net/" } }, "storageEndpoints": { "$default": { "sasTtlAsIso8601": "PT1H", "connectionString": "", "containerName": "" } }, "enableFileUploadNotifications": false, "cloudToDevice": { "maxDeliveryCount": 10, "defaultTtlAsIso8601": "PT1H", "feedback": { "lockDurationAsIso8601": "PT1M", "ttlAsIso8601": "PT1H", "maxDeliveryCount": 10 } }, "features": "DeviceManagement" }, "resources": [], "dependsOn": [] } ]}" to type 'Microsoft.WindowsAzure.ResourceStack.Frontdoor.Templates.Schema.Template'. Path 'properties.template', line 1, position 2817.'. at com.microsoft.azure.AzureClient.getPutOrPatchResult(AzureClient.java:86) at com.microsoft.azure.management.resources.implementation.DeploymentsInner.createOrUpdate(DeploymentsInner.java:369) at com.microsoft.azure.management.resources.implementation.DeploymentImpl.createResource(DeploymentImpl.java:345) at com.microsoft.azure.management.resources.implementation.DeploymentImpl.create(DeploymentImpl.java:287) at com.microsoft.azure.management.resources.implementation.DeploymentImpl.create(DeploymentImpl.java:38)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.