Azure / Azure/azure-rest-api-specs

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

Open
#38,615 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

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

Contributor guide

Open the contributing guide

Research direction

Start with specification/msi/resource-manager/Microsoft.ManagedIdentity/ManagedIdentity/stable/2023-01-31/ManagedIdentity.json and reproduce the User Assigned Identity request using the tag value shown in the issue. Compare the service response with the API specification and confirm that the exact ISO-8601 string is preserved; the issue is done when the regression has an identified repository or service-level resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, openapi
Domain
api, cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.