From ee47c859b29c2404d96d43617192cab0eb479f93 Mon Sep 17 00:00:00 2001 From: Amit Brahma Date: Thu, 11 May 2023 19:54:25 +0530 Subject: [PATCH 1/2] Allow entwork property to be updated during PG flexible server update --- .../stable/2022-12-01/FlexibleServers.json | 25 ++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json index f7540655495..197f1ba9950 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json @@ -459,11 +459,7 @@ "network": { "$ref": "#/definitions/Network", "default": null, - "description": "Network properties of a server.", - "x-ms-mutability": [ - "create", - "read" - ] + "description": "Network properties of a server." }, "highAvailability": { "$ref": "#/definitions/HighAvailability", @@ -639,6 +635,11 @@ "replicationRole": { "$ref": "#/definitions/ReplicationRole", "description": "Replication role of the server" + }, + "network": { + "$ref": "#/definitions/Network", + "default": null, + "description": "Network properties of a server." } } }, @@ -905,12 +906,7 @@ } ] }, - "default": "", - "description": "delegated subnet arm resource id.", - "x-ms-mutability": [ - "create", - "read" - ] + "description": "delegated subnet arm resource id." }, "privateDnsZoneArmResourceId": { "type": "string", @@ -921,12 +917,7 @@ } ] }, - "default": "", - "description": "private dns zone arm resource id.", - "x-ms-mutability": [ - "create", - "read" - ] + "description": "private dns zone arm resource id." } }, "description": "Network properties of a server" From b27295de54181ddbe8e0ce7c25c4dc301fbc7383 Mon Sep 17 00:00:00 2001 From: Amit Brahma Date: Wed, 17 May 2023 09:20:25 +0530 Subject: [PATCH 2/2] Updated description to explicitly specify when delegatedSubnetResourceId and privateDnsZoneArmResourceId are required --- .../stable/2022-12-01/FlexibleServers.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json index 197f1ba9950..d2ae9ea298b 100644 --- a/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json +++ b/specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json @@ -459,7 +459,7 @@ "network": { "$ref": "#/definitions/Network", "default": null, - "description": "Network properties of a server." + "description": "Network properties of a server. This Network property is required to be passed only in case you want the server to be Private access server." }, "highAvailability": { "$ref": "#/definitions/HighAvailability", @@ -639,7 +639,7 @@ "network": { "$ref": "#/definitions/Network", "default": null, - "description": "Network properties of a server." + "description": "Network properties of a server. These are required to be passed only in case if server is a private access server." } } }, @@ -906,7 +906,7 @@ } ] }, - "description": "delegated subnet arm resource id." + "description": "Delegated subnet arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone." }, "privateDnsZoneArmResourceId": { "type": "string", @@ -917,10 +917,10 @@ } ] }, - "description": "private dns zone arm resource id." + "description": "Private dns zone arm resource id. This is required to be passed during create, in case we want the server to be VNET injected, i.e. Private access server. During update, pass this only if we want to update the value for Private DNS zone." } }, - "description": "Network properties of a server" + "description": "Network properties of a server." }, "HighAvailability": { "type": "object",