2424 AuthenticationMode ,
2525 PublicNetworkAccess ,
2626 PrivateLinkDelegation ,
27- DataPlaneProxyProperties )
27+ DataPlaneProxyProperties ,
28+ AzureFrontDoorProperties )
2829from knack .log import get_logger
2930from ._utils import resolve_store_metadata , resolve_deleted_store_metadata
3031from ._constants import ARMAuthenticationMode , ProvisioningStatus
@@ -54,7 +55,8 @@ def create_configstore(cmd, # pylint: disable=too-many-locals
5455 no_replica = None , # pylint: disable=unused-argument
5556 arm_auth_mode = None ,
5657 enable_arm_private_network_access = None ,
57- kv_revision_retention_period = None ):
58+ kv_revision_retention_period = None ,
59+ azure_front_door_profile = None ):
5860 if assign_identity is not None and not assign_identity :
5961 assign_identity = [SYSTEM_ASSIGNED_IDENTITY ]
6062
@@ -70,6 +72,10 @@ def create_configstore(cmd, # pylint: disable=too-many-locals
7072 if arm_auth_mode is not None :
7173 arm_authentication_mode = AuthenticationMode .LOCAL if arm_auth_mode == ARMAuthenticationMode .LOCAL else AuthenticationMode .PASS_THROUGH
7274
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+
7379 configstore_params = ConfigurationStore (location = location .lower (),
7480 identity = __get_resource_identity (assign_identity ) if assign_identity else None ,
7581 sku = Sku (name = sku ),
@@ -82,7 +88,8 @@ def create_configstore(cmd, # pylint: disable=too-many-locals
8288 default_key_value_revision_retention_period_in_seconds = kv_revision_retention_period ,
8389 data_plane_proxy = DataPlaneProxyProperties (
8490 authentication_mode = arm_authentication_mode ,
85- private_link_delegation = arm_private_link_delegation ))
91+ private_link_delegation = arm_private_link_delegation ),
92+ azure_front_door = azure_front_door )
8693
8794 progress = IndeterminateStandardOut ()
8895
@@ -183,7 +190,8 @@ def update_configstore(cmd, # pylint: disable=too-many-locals
183190 enable_purge_protection = None ,
184191 arm_auth_mode = None ,
185192 enable_arm_private_network_access = None ,
186- kv_revision_retention_period = None ):
193+ kv_revision_retention_period = None ,
194+ azure_front_door_profile = None ):
187195 __validate_cmk (encryption_key_name , encryption_key_vault , encryption_key_version , identity_client_id )
188196 if resource_group_name is None :
189197 resource_group_name , _ = resolve_store_metadata (cmd , name )
@@ -200,6 +208,10 @@ def update_configstore(cmd, # pylint: disable=too-many-locals
200208 if arm_auth_mode is not None :
201209 arm_authentication_mode = AuthenticationMode .LOCAL if arm_auth_mode == ARMAuthenticationMode .LOCAL else AuthenticationMode .PASS_THROUGH
202210
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+
203215 update_params = ConfigurationStoreUpdateParameters (tags = tags ,
204216 sku = Sku (name = sku ) if sku else None ,
205217 public_network_access = public_network_access ,
@@ -208,7 +220,8 @@ def update_configstore(cmd, # pylint: disable=too-many-locals
208220 default_key_value_revision_retention_period_in_seconds = kv_revision_retention_period ,
209221 data_plane_proxy = DataPlaneProxyProperties (
210222 authentication_mode = arm_authentication_mode ,
211- private_link_delegation = arm_private_link_delegation ))
223+ private_link_delegation = arm_private_link_delegation ),
224+ azure_front_door = azure_front_door )
212225
213226 if encryption_key_name is not None :
214227 key_vault_properties = KeyVaultProperties ()
0 commit comments