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.'.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by vimukthir
, 1 year 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
via Stack Overflow by Sreehari
, 1 year ago
400 is not a valid polling status code: Parameter 'osProfile' is not allowed.
via GitHub by selvasingh
, 1 year ago
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.
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.