Azure / Azure/azure-rest-api-specs

[BUG] PUT operation for privateendpoint connection approval is not idempotent

Open
#30,308 3 comments 0 reactions 0 assignees View on GitHub
bug customer-reported Mgmt question Service Attention Storage
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

### API Spec link

https://learn.microsoft.com/en-us/rest/api/storagerp/private-endpoint-connections/put?view=rest-storagerp-2023-05-01&tabs=HTTP

### API Spec version

2023-05-01

### Describe the bug

Trying to approve the private endpoint connection , which is in Approved state shouldnt throw error for idempotent operations.
But getting

```
│ {
│ "error": {
│ "code": "InvalidValuesForRequestParameters",
│ "message": "Values for request parameters are invalid: privateLinkServiceConnectionState.status."
│ }

```

### Expected behavior

Api can be hit any number of times for PUT operation

### Actual behavior

```
│ {
│ "error": {
│ "code": "InvalidValuesForRequestParameters",
│ "message": "Values for request parameters are invalid: privateLinkServiceConnectionState.status."
│ }

```

### Reproduction Steps

1) Create a manual approval private endpoint
2) Use https://learn.microsoft.com/en-us/rest/api/storagerp/private-endpoint-connections/put?view=rest-storagerp-2023-05-01&tabs=HTTP to approve private endpoint
3) Run step2 again , it shouldn't throw error. but it giving error

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the linked Microsoft REST API specification for the private-endpoint-connections PUT operation, using API version 2023-05-01. Reproduce the approval request from the listed steps, then repeat it for an already Approved connection and compare the response with the expected idempotent behavior. Done means repeated approval requests no longer return the InvalidValuesForRequestParameters error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, cloud
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.