Azure / Azure/azure-cli-extensions

az cosmosdb copy changes time values

Open
#8,749 2 comments 0 reactions 0 assignees View on GitHub
Auto-Assign bug CosmosDB customer-reported Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.