You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to disable AutoDeleteOnIdle on the queue when provisioning, Seems there is no option for it. I tried a value -1,which was previously available in ACS SB Topics when creating through a NamespaceManager.
The error message does not have any relevant information on the cause of failure. However only on debug actual error is exposed.
New-AzureRmServiceBusTopic -ResourceGroupName something -Namespace something -Name something -EnablePartitioning $true -AutoDeleteOnIdle -1 -DefaultMessageTimeToLive 2 -DuplicateDetectionHistoryTimeWindow 5 -EnableBatchedOperations $true -MaxSizeInMegabytes 5120 -RequiresDuplicateDetection $true
New-AzureRmServiceBusTopic : Operation returned an invalid status code 'BadRequest'
At line:1 char:1
Body:
{
"error": {
"message": "SubCode=40000. The value supplied must be between 00:05:00 and 10675199.02:48:05.4775807.\r\nParameter name: AutoDeleteOnIdle\r\nActual value was -1.00:00:00.
TrackingId:bc35c4f8-ecf0-40a8-94cf-0fe0112aa117_M4_M4_G22, SystemTracker:meusintegrationrm5.servicebus.windows.net:remotestartqueue, Timestamp:11/30/2017 8:02:59 PM CorrelationId:
5b82c5531-4b3a257dcae8",
"code": "BadRequest"
}
}
Cmdlet(s)
PowerShell Version
New-AzureRmServiceBusTopic
Module Version
5.0.0
OS Version
10.0.14409.1012
Description
I wanted to disable AutoDeleteOnIdle on the queue when provisioning, Seems there is no option for it. I tried a value -1,which was previously available in ACS SB Topics when creating through a NamespaceManager.
The error message does not have any relevant information on the cause of failure. However only on debug actual error is exposed.
New-AzureRmServiceBusTopic -ResourceGroupName something -Namespace something -Name something -EnablePartitioning $true -AutoDeleteOnIdle -1 -DefaultMessageTimeToLive 2 -DuplicateDetectionHistoryTimeWindow 5 -EnableBatchedOperations $true -MaxSizeInMegabytes 5120 -RequiresDuplicateDetection $true
New-AzureRmServiceBusTopic : Operation returned an invalid status code 'BadRequest'
At line:1 char:1
Debug Output
============================ HTTP REQUEST ============================
HTTP Method:
PUT
Absolute Uri:
https://management.azure.com/subscriptions/9536-0b01899fdce2/resourceGroups/something/providers/Microsoft.ServiceBus/namespaces/something/topics/something
eue?api-version=2017-04-01
Headers:
x-ms-client-request-id : 52b921-b5c9e9cf4916
accept-language : en-US
Body:
{
"properties": {
"defaultMessageTimeToLive": "P2D",
"maxSizeInMegabytes": 5120,
"requiresDuplicateDetection": true,
"duplicateDetectionHistoryTimeWindow": "P5D",
"enableBatchedOperations": true,
"autoDeleteOnIdle": "-P1D",
"enablePartitioning": true
}
}
============================ HTTP RESPONSE ============================
Status Code:
BadRequest
Headers:
Pragma : no-cache
x-ms-request-id : bc35c4f8-ecf07_M4_M4
Server-SB : Service-Bus-Resource-Provider/SN1
Cache-Control : no-cache
Server : Service-Bus-Resource-Provider/SN1,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-correlation-request-id : 5b823a257dcae8
x-ms-routing-request-id : EASTUS:20171130T2003881-4b3a257dcae8
Strict-Transport-Security : max-age=31536000; includeSubDomains
Date : Thu, 30 Nov 2017 20:03:00 GMT
Body:
{
"error": {
"message": "SubCode=40000. The value supplied must be between 00:05:00 and 10675199.02:48:05.4775807.\r\nParameter name: AutoDeleteOnIdle\r\nActual value was -1.00:00:00.
TrackingId:bc35c4f8-ecf0-40a8-94cf-0fe0112aa117_M4_M4_G22, SystemTracker:meusintegrationrm5.servicebus.windows.net:remotestartqueue, Timestamp:11/30/2017 8:02:59 PM CorrelationId:
5b82c5531-4b3a257dcae8",
"code": "BadRequest"
}
}
Script/Steps for Reproduction
New-AzureRmServiceBusTopic -ResourceGroupName something -Namespace something -Name something -EnablePartitioning $true -AutoDeleteOnIdle -1 -DefaultMessageTimeToLive 2 -DuplicateDetectionHistoryTimeWindow 5 -EnableBatchedOperations $true -MaxSizeInMegabytes 5120 -RequiresDuplicateDetection $true
The text was updated successfully, but these errors were encountered: