Azure / Azure/azure-rest-api-specs

[BUG] `Microsoft.Insights/diagnosticSettings@2021-05-01-preview` returns undefined property "location"

Open
#29,198 1 comment 1 reaction 1 assignee Claimed by @ruowan View on GitHub
bug Mgmt
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/monitor/resource-manager/Microsoft.Insights/preview/2021-05-01-preview/diagnosticsSettings_API.json#L330

### API Spec version

2021-05-01-preview

### Describe the bug

In the GET response, the `location` field is returned but not defined in the swagger.

### Expected behavior

In the GET response, the `location` should not be returned, or should be defined in the swagger.

### Actual behavior

In the GET response, the `location` field is returned but not defined in the swagger.

### Reproduction Steps

1. Create the resource.
2. Call GET API and check the response.

### Environment

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