How to update postgres flexible server private dns zone using azure cli

Mintu 20 Reputation points
2023-05-06T09:29:37.5233333+00:00

I can change the private dns zone of an existing Azure postgres flexible server, however I would like to update the same using azure cli. I don't find an option in

 az postgres flexible-server update 

Isn't this possible?

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

Accepted answer
  1. Rahul Randive 9,176 Reputation points Microsoft Employee
    2023-05-06T13:37:10.5433333+00:00

    Thanks for your question, Mintu

    It appears that modifications to "Network Connection" and "Virtual Network" settings for an Azure Database for PostgreSQL Flexible Server (as of now) cannot be update using Azure CLI or other command-line interfaces.

    These changes can exclusively be performed through the graphical user interface (GUI) of the Azure Portal.

    By the way it can be changed through ARM Rest APIs:

    Reference https://learn.microsoft.com/en-us/rest/api/postgresql/flexibleserver/servers/update

    Please let us know if this help or if you have any additional questions.

    Thank you!

    0 comments No comments

0 additional answers

Sort by: Most helpful