Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.68k stars 5.1k forks source link

Expose `mongoEndpoint` property in the Cosmos DB API #22703

Open joshwright10 opened 1 year ago

joshwright10 commented 1 year ago

When creating Cosmos DB Account of kind MongoDB using terraform, the endpoint https://demo-cosmos-mangodb.documents.azure.com:443 is returned instead of the expected mongoEndpoint https://demo-cosmos-mangodb.mongo.cosmos.azure.com:443/.

The property mongoEndpoint is not currently exposed in the current version of the API.

This needs to be exposed in order for Terraform to provide the correct value as an output. This was initial raised in the terraform Azurerm provider project, but needs to be added to the API first. https://github.com/hashicorp/terraform-provider-azurerm/issues/20306

ghost commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @pjohari-ms, @MehaKaushik, @zfoster, @kushagraThapar, @simorenoh, @simplynaveen20, @abinav2307.

Issue Details
When creating Cosmos DB Account of kind MongoDB using terraform, the endpoint `https://demo-cosmos-mangodb.documents.azure.com:443` is returned instead of the expected `mongoEndpoint` `https://demo-cosmos-mangodb.mongo.cosmos.azure.com:443/`. The property `mongoEndpoint` is not currently exposed in the [current version of the API](https://github.com/Azure/azure-rest-api-specs/blob/41645a4769694a7d63a2514b45146ec369eeb273/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/cosmos-db.json#L6073). This needs to be exposed in order for Terraform to provide the correct value as an output. This was initial raised in the terraform Azurerm provider project, but needs to be added to the API first. https://github.com/hashicorp/terraform-provider-azurerm/issues/20306
Author: joshwright10
Assignees: -
Labels: `question`, `Cosmos`, `Service Attention`, `customer-reported`, `needs-team-attention`
Milestone: -
navba-MSFT commented 1 year ago

Adding service team to look into this.

cc @pjohari-ms, @MehaKaushik, @zfoster, @kushagraThapar, @simorenoh, @simplynaveen20, @abinav2307.