Azure/azure-rest-api-specs

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

ms-henglu opened this issue · 1 comments

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

@ruowan Please help have a look, thank you.