Open renegade968 opened 3 months ago
Is there an cli option or CosmosDB sql container to set the ttl back to "defaultTtl": null
"defaultTtl": null
az cosmosdb sql container update --ttl ""
argument --ttl: invalid int value: ''
az cosmosdb sql container update -g RgName --account-name AccountName --database-name DbName --name containerName --ttl ""
if--ttl "" or --ttl nullset "defaultTtl": null
--ttl ""
--ttl null
azure-cli 2.61.0 core 2.61.0 telemetry 1.1.0
Extensions: application-insights 1.2.1 datafactory 1.0.2 storage-preview 1.0.0b1
Dependencies: msal 1.28.0 azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.61.0/libexec/bin/python' Extensions directory '/Users/adlere1/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
No response
Thank you for opening this issue, we will look into it.
Describe the bug
Is there an cli option or CosmosDB sql container to set the ttl back to
"defaultTtl": null
Related command
az cosmosdb sql container update --ttl ""
Errors
argument --ttl: invalid int value: ''
Issue script & Debug output
az cosmosdb sql container update -g RgName --account-name AccountName --database-name DbName --name containerName --ttl ""
Expected behavior
if
--ttl ""
or--ttl null
set"defaultTtl": null
Environment Summary
azure-cli 2.61.0 core 2.61.0 telemetry 1.1.0
Extensions: application-insights 1.2.1 datafactory 1.0.2 storage-preview 1.0.0b1
Dependencies: msal 1.28.0 azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.61.0/libexec/bin/python' Extensions directory '/Users/adlere1/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Additional context
No response