Azure Cosmos DB for PostgreSQL unique id is mandatory for iac?

40746730 0 Reputation points
2023-06-30T11:16:17.1933333+00:00

Hello team,

I see uniqueid is randomly generated and updated for potsgress url , is there a way to set this up via infrastructure code either terraform or pulumi?
https://learn.microsoft.com/en-us/azure/cosmos-db/postgresql/concepts-node-domain-name

currently we updated our db in qa nad the new unique id has been added and because of that we are not able to create connection to our db , since we use IaC for jdbc url!

Please share any more insights on this?

Azure Database for PostgreSQL
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,542 Reputation points Microsoft Employee Moderator
    2023-06-30T20:37:12.27+00:00

    Hi,@40746730 Welcome to the Microsoft Q&A forum and thanks for reaching out here

    If I understand correctly you are asking if there is a way to set the unique ID for Azure Cosmos DB for PostgreSQL instance via infrastructure code (such as Terraform or Pulumi) instead of having it randomly generated and updated.

    unique ID for Azure Cosmos DB for PostgreSQL is automatically generated and cannot be set via infrastructure code however I am checking with the internal product team and provide you with more details.

    As per the internal team, this ID is randomly generated by the system and we don't have a way to control it

    Regards

    Geetha


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.