Azure / Azure/azure-rest-api-specs

[BUG] Azure Log Analytics - Operations Management - SolutionGet : creationTime, lastModifiedTime

Open
#31,186 2 comments 0 reactions 0 assignees View on GitHub
bug customer-reported Mgmt Operations Management question Service Attention
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/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/OperationsManagement.json

### API Spec version

2015-11-01-preview

### Describe the bug

As example [SolutionGet.json](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/examples/SolutionGet.json) response describing a resource should be without `properties.creationTime` and `properties.lastModifiedTime`.

I found it with ARM template resource definition [Microsoft.OperationsManagement/solutions](https://learn.microsoft.com/en-us/azure/templates/microsoft.operationsmanagement/solutions?pivots=deployment-language-arm-template) and [What-If operation](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/deploy-what-if).

It's valid to (Log Analytics) Operations Management solutions like: AzureActivity, Containers, SecurityCenterFree, SQLAdvancedThreatProtection, SQLVulnerabilityAssessment.

### Expected behavior

```json
{
"id": "/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationsManagement/solutions/Containers(my-log-analytics-workspace)",
"location": "europe",
"name": "Containers(my-log-analytics-workspace)",
"plan": {
"name": "Containers(my-log-analytics-workspace)",
"product": "OMSGallery/Containers",
"promotionCode": "",
"publisher": "Microsoft"
},
"properties": {
"containedResources": [
"/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationalInsights/workspaces/my-log-analytics-workspace/views/Containers(my-log-analytics-workspace)"
],
"provisioningState": "Succeeded",
"workspaceResourceId": "/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationalInsights/workspaces/my-log-analytics-workspace"
},
"tags": {},
"type": "Microsoft.OperationsManagement/solutions"
}
```

### Actual behavior

```json
{
"id": "/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationsManagement/solutions/Containers(my-log-analytics-workspace)",
"location": "europe",
"name": "Containers(my-log-analytics-workspace)",
"plan": {
"name": "Containers(my-log-analytics-workspace)",
"product": "OMSGallery/Containers",
"promotionCode": "",
"publisher": "Microsoft"
},
"properties": {
"containedResources": [
"/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationalInsights/workspaces/my-log-analytics-workspace/views/Containers(my-log-analytics-workspace)"
],
"creationTime": "Fri, 14 Jul 2023 10:47:14 GMT",
"lastModifiedTime": "Mon, 21 Oct 2024 07:11:23 GMT",
"provisioningState": "Succeeded",
"workspaceResourceId": "/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationalInsights/workspaces/my-log-analytics-workspace"
},
"tags": {},
"type": "Microsoft.OperationsManagement/solutions"
}
```

### Reproduction Steps

`az rest --method get --header "Accept=application/json" --url 'https://management.azure.com/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationsManagement/solutions/Containers%28my-log-analytics-workspace%29?api-version=2015-11-01-preview'`
I had to change brackets in `(` and `)` in url due to ASCII encoding to `%28`, `%29`
||
GET `https://management.azure.com/subscriptions/aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb/resourceGroups/my-rg/providers/Microsoft.OperationsManagement/solutions/Containers(my-log-analytics-workspace)?api-version=2015-11-01-preview`

In `az monitor log-analytics solution show --name Containers(my-log-analytics-workspace) --resource-group my-rg` I couldn't clarify a name parameter even though using it after `az monitor log-analytics solution list --resource-group my-rg`.
I couldn't find it in [Azure REST API specification](https://learn.microsoft.com/en-us/rest/api/loganalytics/operation-groups?view=rest-loganalytics-2023-09-01).

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with specification/operationsmanagement/resource-manager/Microsoft.OperationsManagement/preview/2015-11-01-preview/OperationsManagement.json and its examples/SolutionGet.json, comparing the documented response with the reported GET output. Confirm where creationTime and lastModifiedTime are represented, then update the relevant specification or example so SolutionGet matches the expected response and validate the change against the API example.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.