Skip to content

Commit 995bbd7

Browse files
authored
{Network} az network vnet subnet: Update the short summary of --default-outbound-access (#31175)
* chore: short summary * chore: remove breaking info
1 parent 7263793 commit 995bbd7

File tree

3 files changed

+6
-15
lines changed

3 files changed

+6
-15
lines changed

src/azure-cli/azure/cli/command_modules/network/_breaking_change.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
5-
from azure.cli.core.breaking_change import register_argument_deprecate
6-
7-
8-
register_argument_deprecate('az network vnet subnet create', '--default-outbound', target_version='2.73.0')
9-
register_argument_deprecate('az network vnet subnet update', '--default-outbound', target_version='2.73.0')

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/vnet/subnet/_create.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
7171
)
7272
_args_schema.default_outbound_access = AAZBoolArg(
7373
options=["--default-outbound", "--default-outbound-access"],
74-
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.",
74+
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet.",
7575
)
7676
_args_schema.delegated_services = AAZListArg(
7777
options=["--delegated-services"],
@@ -1562,7 +1562,7 @@ def _build_schema_network_security_group_read(cls, _schema):
15621562
flags={"read_only": True},
15631563
)
15641564
_element.id = AAZStrType()
1565-
_element.identity = AAZObjectType()
1565+
_element.identity = AAZIdentityObjectType()
15661566
_element.location = AAZStrType()
15671567
_element.name = AAZStrType(
15681568
flags={"read_only": True},
@@ -2495,6 +2495,7 @@ def _build_schema_subnet_read(cls, _schema):
24952495
)
24962496
properties.has_bgp_override = AAZBoolType(
24972497
serialized_name="hasBgpOverride",
2498+
flags={"read_only": True},
24982499
)
24992500
properties.next_hop_ip_address = AAZStrType(
25002501
serialized_name="nextHopIpAddress",

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/vnet/subnet/_update.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
8383
)
8484
_args_schema.default_outbound_access = AAZBoolArg(
8585
options=["--default-outbound", "--default-outbound-access"],
86-
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet.",
86+
help="Set this property to false to disable default outbound connectivity for all VMs in the subnet.",
8787
nullable=True,
8888
)
8989
_args_schema.delegated_services = AAZListArg(
@@ -191,9 +191,6 @@ def _build_arguments_schema(cls, *args, **kwargs):
191191
options=["l", "location"],
192192
help="Resource location.",
193193
nullable=True,
194-
fmt=AAZResourceLocationArgFormat(
195-
resource_group_arg="resource_group",
196-
),
197194
)
198195
_element.contextual_service_endpoint_policies = AAZListArg(
199196
options=["contextual-service-endpoint-policies"],
@@ -325,9 +322,6 @@ def _build_args_application_security_group_update(cls, _schema):
325322
options=["l", "location"],
326323
help="Resource location.",
327324
nullable=True,
328-
fmt=AAZResourceLocationArgFormat(
329-
resource_group_arg="resource_group",
330-
),
331325
)
332326
application_security_group_update.tags = AAZDictArg(
333327
options=["tags"],
@@ -1749,7 +1743,7 @@ def _build_schema_network_security_group_read(cls, _schema):
17491743
flags={"read_only": True},
17501744
)
17511745
_element.id = AAZStrType()
1752-
_element.identity = AAZObjectType()
1746+
_element.identity = AAZIdentityObjectType()
17531747
_element.location = AAZStrType()
17541748
_element.name = AAZStrType(
17551749
flags={"read_only": True},
@@ -2682,6 +2676,7 @@ def _build_schema_subnet_read(cls, _schema):
26822676
)
26832677
properties.has_bgp_override = AAZBoolType(
26842678
serialized_name="hasBgpOverride",
2679+
flags={"read_only": True},
26852680
)
26862681
properties.next_hop_ip_address = AAZStrType(
26872682
serialized_name="nextHopIpAddress",

0 commit comments

Comments
 (0)