Azure / Azure/azure-rest-api-specs
The createOrUpdate operation of Key Vault Managed Hardware Security Module should fail when this resource is soft deleted
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
After tested, I found the createOrUpdate operation of Key Vault Managed Hardware Security Module would always succeed even if this resource is soft deleted. Per my understanding, this operation should fail and throw error message like below this or others when this resource is soft deleted. So could you help take a look this issue? Thanks.
The example of the error:
```
{
"error": {
"code": "ConflictError",
"message": "A KV MHSM with the same name already exists in deleted state. You need to either recover or purge existing KV MHSM."
}
}
```
Contributor guide
Research direction
Begin with the Key Vault Managed Hardware Security Module createOrUpdate operation in the REST API specifications. Use the reported soft-deleted scenario and ConflictError example to determine the expected response contract; the issue names no file or test, so locating the relevant specification and validation coverage is part of the work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- api, security
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100