Skip to content

Commit 6e63293

Browse files
committed
Revert "Merge branch 'dev' into release"
This reverts commit 2d99677, reversing changes made to 6043dca.
1 parent 2d99677 commit 6e63293

File tree

54 files changed

+505060
-745507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+505060
-745507
lines changed

src/azure-cli/azure/cli/command_modules/appconfig/_help.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
text: az appconfig create -g MyResourceGroup -n MyAppConfiguration -l westus --arm-auth-mode pass-through --enable-arm-private-network-access true
3737
- name: Create an App Configuration store with a key-value revision retention period of one day (in seconds).
3838
text: az appconfig create -g MyResourceGroup -n MyAppConfiguration -l westus --sku Standard --kv-revision-retention-period 86400
39-
- name: Create an App Configuration store linked to an Azure Front Door profile.
40-
text: az appconfig create -g MyResourceGroup -n MyAppConfiguration -l westus --sku Standard --azure-front-door-profile /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.Cdn/profiles/<PROFILE_NAME>
4139
"""
4240

4341
helps['appconfig list-deleted'] = """
@@ -416,10 +414,6 @@
416414
text: az appconfig update -g MyResourceGroup -n MyAppConfiguration --arm-auth-mode pass-through --enable-arm-private-network-access true
417415
- name: Update an App Configuration store to set a key-value revision retention period of one day (in seconds).
418416
text: az appconfig update -g MyResourceGroup -n MyAppConfiguration --kv-revision-retention-period 86400
419-
- name: Update an App Configuration store to link an Azure Front Door profile.
420-
text: az appconfig update -g MyResourceGroup -n MyAppConfiguration --azure-front-door-profile /subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.Cdn/profiles/<PROFILE_NAME>
421-
- name: Update an App Configuration store to unlink an Azure Front Door profile.
422-
text: az appconfig update -g MyResourceGroup -n MyAppConfiguration --azure-front-door-profile ""
423417
"""
424418

425419
helps['appconfig feature'] = """

src/azure-cli/azure/cli/command_modules/appconfig/_params.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ def load_arguments(self, _):
190190
c.argument('arm_auth_mode', arg_type=arm_auth_mode_arg_type)
191191
c.argument('enable_arm_private_network_access', arg_type=enable_arm_private_network_access_arg_type)
192192
c.argument('kv_revision_retention_period', arg_type=kv_revision_retention_period_arg_type)
193-
c.argument('azure_front_door_profile', help='Resource ID of an Azure Front Door profile to link to this App Configuration store.', is_preview=True)
194193

195194
with self.argument_context('appconfig update') as c:
196195
c.argument('sku', help='The sku of the App Configuration store', arg_type=get_enum_type(['Free', 'Developer', 'Premium', 'Standard']))
@@ -202,7 +201,6 @@ def load_arguments(self, _):
202201
c.argument('arm_auth_mode', arg_type=arm_auth_mode_arg_type)
203202
c.argument('enable_arm_private_network_access', arg_type=enable_arm_private_network_access_arg_type)
204203
c.argument('kv_revision_retention_period', arg_type=kv_revision_retention_period_arg_type)
205-
c.argument('azure_front_door_profile', help='Resource ID of an Azure Front Door profile to link to this App Configuration store. Pass "" to unlink a Front Door profile.', is_preview=True)
206204

207205
with self.argument_context('appconfig recover') as c:
208206
c.argument('location', arg_type=get_location_type(self.cli_ctx), help='Location of the deleted App Configuration store. Can be viewed using command `az appconfig show-deleted`.')

src/azure-cli/azure/cli/command_modules/appconfig/custom.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
AuthenticationMode,
2525
PublicNetworkAccess,
2626
PrivateLinkDelegation,
27-
DataPlaneProxyProperties,
28-
AzureFrontDoorProperties)
27+
DataPlaneProxyProperties)
2928
from knack.log import get_logger
3029
from ._utils import resolve_store_metadata, resolve_deleted_store_metadata
3130
from ._constants import ARMAuthenticationMode, ProvisioningStatus
@@ -55,8 +54,7 @@ def create_configstore(cmd, # pylint: disable=too-many-locals
5554
no_replica=None, # pylint: disable=unused-argument
5655
arm_auth_mode=None,
5756
enable_arm_private_network_access=None,
58-
kv_revision_retention_period=None,
59-
azure_front_door_profile=None):
57+
kv_revision_retention_period=None):
6058
if assign_identity is not None and not assign_identity:
6159
assign_identity = [SYSTEM_ASSIGNED_IDENTITY]
6260

@@ -72,10 +70,6 @@ def create_configstore(cmd, # pylint: disable=too-many-locals
7270
if arm_auth_mode is not None:
7371
arm_authentication_mode = AuthenticationMode.LOCAL if arm_auth_mode == ARMAuthenticationMode.LOCAL else AuthenticationMode.PASS_THROUGH
7472

75-
azure_front_door = None
76-
if azure_front_door_profile is not None:
77-
azure_front_door = AzureFrontDoorProperties(resource_id=azure_front_door_profile if azure_front_door_profile else None)
78-
7973
configstore_params = ConfigurationStore(location=location.lower(),
8074
identity=__get_resource_identity(assign_identity) if assign_identity else None,
8175
sku=Sku(name=sku),
@@ -88,8 +82,7 @@ def create_configstore(cmd, # pylint: disable=too-many-locals
8882
default_key_value_revision_retention_period_in_seconds=kv_revision_retention_period,
8983
data_plane_proxy=DataPlaneProxyProperties(
9084
authentication_mode=arm_authentication_mode,
91-
private_link_delegation=arm_private_link_delegation),
92-
azure_front_door=azure_front_door)
85+
private_link_delegation=arm_private_link_delegation))
9386

9487
progress = IndeterminateStandardOut()
9588

@@ -190,8 +183,7 @@ def update_configstore(cmd, # pylint: disable=too-many-locals
190183
enable_purge_protection=None,
191184
arm_auth_mode=None,
192185
enable_arm_private_network_access=None,
193-
kv_revision_retention_period=None,
194-
azure_front_door_profile=None):
186+
kv_revision_retention_period=None):
195187
__validate_cmk(encryption_key_name, encryption_key_vault, encryption_key_version, identity_client_id)
196188
if resource_group_name is None:
197189
resource_group_name, _ = resolve_store_metadata(cmd, name)
@@ -208,10 +200,6 @@ def update_configstore(cmd, # pylint: disable=too-many-locals
208200
if arm_auth_mode is not None:
209201
arm_authentication_mode = AuthenticationMode.LOCAL if arm_auth_mode == ARMAuthenticationMode.LOCAL else AuthenticationMode.PASS_THROUGH
210202

211-
azure_front_door = None
212-
if azure_front_door_profile is not None:
213-
azure_front_door = AzureFrontDoorProperties(resource_id=azure_front_door_profile if azure_front_door_profile else None)
214-
215203
update_params = ConfigurationStoreUpdateParameters(tags=tags,
216204
sku=Sku(name=sku) if sku else None,
217205
public_network_access=public_network_access,
@@ -220,8 +208,7 @@ def update_configstore(cmd, # pylint: disable=too-many-locals
220208
default_key_value_revision_retention_period_in_seconds=kv_revision_retention_period,
221209
data_plane_proxy=DataPlaneProxyProperties(
222210
authentication_mode=arm_authentication_mode,
223-
private_link_delegation=arm_private_link_delegation),
224-
azure_front_door=azure_front_door)
211+
private_link_delegation=arm_private_link_delegation))
225212

226213
if encryption_key_name is not None:
227214
key_vault_properties = KeyVaultProperties()

src/azure-cli/azure/cli/command_modules/appconfig/linter_exclusions.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ appconfig create:
66
kv_revision_retention_period:
77
rule_exclusions:
88
- option_length_too_long
9-
azure_front_door_profile:
10-
rule_exclusions:
11-
- option_length_too_long
129
appconfig update:
1310
parameters:
1411
kv_revision_retention_period:
15-
rule_exclusions:
16-
- option_length_too_long
17-
azure_front_door_profile:
1812
rule_exclusions:
1913
- option_length_too_long

0 commit comments

Comments
 (0)