Skip to content

az cosmosdb copy changes time values #8749

@mitchell-lucasware

Description

@mitchell-lucasware

Describe the bug

I used the az cosmosdb copy operation to copy items from a container in a nosql database in one cosmos db account to another account. The items in the source container included a /time field with UTC formatted values (e.g. "time": "2023-11-28T15:55:17.000000Z". In the destination container, these fields were written as "time": "2023-11-28T15:55:17Z" instead.

Related command

az cosmosdb copy

Errors

No error occurred.

Issue script & Debug output

I can't re-run this long operation to provide debug output.

Expected behavior

The items should be copied without changing user-inputted fields in any way whatsoever.

Environment Summary

azure-cli 2.71.0 *

core 2.71.0 *
telemetry 1.1.0

Extensions:
cosmosdb-preview 1.2.1

Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botCosmosDBService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions