Azure / Azure/azure-rest-api-specs

The createOrUpdate operation of Key Vault Managed Hardware Security Module should fail when this resource is soft deleted

Open
#18,732 1 comment 6 reactions 0 assignees View on GitHub
KeyVault Service Attention
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.