Open andreaszeisler opened 1 year ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pjohari-ms, @kushagraThapar, @simplynaveen20.
Author: | andreaszeisler |
---|---|
Assignees: | - |
Labels: | `Cosmos`, `Service Attention`, `bug`, `customer-reported` |
Milestone: | - |
Description
In Module: CosmosDBSqlRestorableResource Line 66
The call with DateTime creates a wrong URI. It is not possible to use this function.
See line: IEnumerable restorableSqlResources = CosmosDBManagementClient.RestorableSqlResources.ListWithHttpMessagesAsync(Location, DatabaseAccountInstanceId, RestoreLocation, dateTimeInUtc.ToString()
ToString musst be formated and used as following ToString(yyyy-MM-ddTHH:mm:ssZ)
Following URI was send. See time parameter at end of URI: https://management.azure.com/subscriptions/xxxxxxxxxxxxxxxxxxxxx/providers/Microsoft.DocumentDB/locations/westeurope/restorableDatabaseAccounts/xxxxxxxxxxxxxxxxxxxxxxxxx/restorableSqlResources?api-version=2022-08-15-preview&restoreLocation=westeurope&restoreTimestampInUtc=07.08.2023 11%3A00%3A00
This is not working as a parameter: restoreTimestampInUtc should be "2023-08-07T11:00:00Z" or "2023-08-07T11%3A00%3A00Z"
Issue script & Debug output
Environment data
Module versions
Error output