Skip to content

[BUG] The tags property of User Assigned Identity resource shouldn't change the value #38615

@neil-yechenwei

Description

@neil-yechenwei

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/msi/resource-manager/Microsoft.ManagedIdentity/ManagedIdentity/stable/2023-01-31/ManagedIdentity.json

API Spec version

2023-01-31

Describe the bug

When we add tag "CreatedOnDate" with value "2022-07-08T23:50:21Z", service API always returns "2022-07-08 23:50:21". This is a regression issue since previously it wouldn't changed the value.

{
"location": "eastus",
"properties": {},
"tags": {
"CreatedOnDate": "2022-07-08T23:50:21Z"
}
}

The API response on Azure Portal:

Image

Expected behavior

Service API should return "2022-07-08T23:50:21Z" when we add tag "CreatedOnDate" with value "2022-07-08T23:50:21Z".

Actual behavior

Service API returns "2022-07-08 23:50:21" when we add tag "CreatedOnDate" with value "2022-07-08T23:50:21Z".

Reproduction Steps

Create User Assigned Identity with below tag.

{
"location": "eastus",
"properties": {},
"tags": {
"CreatedOnDate": "2022-07-08T23:50:21Z"
}
}

Environment

PROD

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue requires a change to an existing behavior in the product in order to be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions