Azure / Azure/azure-rest-api-specs
Elastic Stack API deletes resource group during deletion
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
:wave:
* Service: `Elastic`
* API Version: `2020-07-01`
* Method: `DELETE`
* Endpoint: `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Elastic/monitors/{name}`
We've noticed an issue in the Elastic Stack API where deleting the Elastic Stack will also (with no confirmation) delete the Resource Group that it is contained within.
This differs from the behaviour of every other Azure API where the parent resource is left alone - and as such this is an API bug.
It may be the case that this API is only deleting the parent Resource Group if the Elastic Stack is the only thing in the Resource Group - but I haven't tested this.
---
As such - can this API be updated to not delete the parent Resource Group during deletion, like other Azure API's do?
Thanks!
Contributor guide
Research direction
Start by locating the Elastic Stack API specification for version 2020-07-01 and its DELETE operation at the reported resource-group endpoint. Compare its deletion behavior with other Azure resource specifications; done requires confirming where the resource-group deletion is defined and documenting or routing the required correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, elasticsearch
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100