Skip to content

Commit d27233c

Browse files
authored
[PostgreSQL] Allow network property to be updated during PG flexible server update (#23929)
* Allow entwork property to be updated during PG flexible server update * Updated description to explicitly specify when delegatedSubnetResourceId and privateDnsZoneArmResourceId are required
1 parent ec1dd63 commit d27233c

File tree

1 file changed

+9
-18
lines changed
  • specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01

1 file changed

+9
-18
lines changed

specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/FlexibleServers.json

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -459,11 +459,7 @@
459459
"network": {
460460
"$ref": "#/definitions/Network",
461461
"default": null,
462-
"description": "Network properties of a server.",
463-
"x-ms-mutability": [
464-
"create",
465-
"read"
466-
]
462+
"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."
467463
},
468464
"highAvailability": {
469465
"$ref": "#/definitions/HighAvailability",
@@ -639,6 +635,11 @@
639635
"replicationRole": {
640636
"$ref": "#/definitions/ReplicationRole",
641637
"description": "Replication role of the server"
638+
},
639+
"network": {
640+
"$ref": "#/definitions/Network",
641+
"default": null,
642+
"description": "Network properties of a server. These are required to be passed only in case if server is a private access server."
642643
}
643644
}
644645
},
@@ -905,12 +906,7 @@
905906
}
906907
]
907908
},
908-
"default": "",
909-
"description": "delegated subnet arm resource id.",
910-
"x-ms-mutability": [
911-
"create",
912-
"read"
913-
]
909+
"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."
914910
},
915911
"privateDnsZoneArmResourceId": {
916912
"type": "string",
@@ -921,15 +917,10 @@
921917
}
922918
]
923919
},
924-
"default": "",
925-
"description": "private dns zone arm resource id.",
926-
"x-ms-mutability": [
927-
"create",
928-
"read"
929-
]
920+
"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."
930921
}
931922
},
932-
"description": "Network properties of a server"
923+
"description": "Network properties of a server."
933924
},
934925
"HighAvailability": {
935926
"type": "object",

0 commit comments

Comments
 (0)