Skip to content

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

Open
@krupakar1329

Description

@krupakar1329

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    MgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions