Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.6k stars 5.01k forks source link

[BUG] Azure app service certificate order key vault binding is returning the key vault id that's different from the user's input #29446

Open xiaxyi opened 2 months ago

xiaxyi commented 2 months ago

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/web/resource-manager/Microsoft.CertificateRegistration/stable/2023-01-01/AppServiceCertificateOrders.json#L351

API Spec version

2023-01-01

Describe the bug

The key vault id that's passed by the user is /subscriptions/733zzz/resourceGroups/test-cert-order-self/providers/microsoft.keyvault/vaults/testkv-co" however, the api changed the resource group part fromresourceGroupstoresourcegroups, so the key vault id became/subscriptions/733zzz/resourcegroups/test-cert-order-self/providers/microsoft.keyvault/vaults/testkv-co`

Expected behavior

The request body should respect the user's input, not change the format of the id part.

Actual behavior

The id was changed by the api as describe in the issue description

Reproduction Steps

  1. create the app service certificate order key vault binding by using the api /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates
  2. Get the instance and we can find that the key vault id was changed.

Environment

No response

v-jiaodi commented 2 months ago

@naveedaz Please help take a look, thanks.