Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/azure-cli/azure/cli/command_modules/appservice/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,34 @@ def load_arguments(self, _):
c.argument('strategy_type', options_list=['--type'], arg_type=get_enum_type(UPDATE_STRATEGY_TYPES),
help="The update strategy type. Allowed values: Recreate, RollingUpdate.")

# Add optional 'name' parameter for functionapp SSL commands to support Flex Consumption apps
with self.argument_context('functionapp config ssl list') as c:
c.argument('name', options_list=['--name', '-n'], id_part=None, help='Name of the function app. Required for Flex Consumption apps to list site-scoped certificates.')

with self.argument_context('functionapp config ssl show') as c:
c.argument('name', options_list=['--name', '-n'], help='Name of the function app. Required for Flex Consumption apps to show site-scoped certificates.')

with self.argument_context('functionapp config ssl delete') as c:
c.argument('name', options_list=['--name', '-n'], help='Name of the function app. Required for Flex Consumption apps to delete site-scoped certificates.')

# Add load_to_code parameter for functionapp SSL commands that create/update certificates (Flex Consumption only)
with self.argument_context('functionapp config ssl upload') as c:
c.argument('load_to_code', arg_type=get_three_state_flag(), help='For Flex Consumption apps only. When set to true, the certificate is accessible to app code.')

with self.argument_context('functionapp config ssl import') as c:
c.argument('load_to_code', arg_type=get_three_state_flag(), help='For Flex Consumption apps only. When set to true, the certificate is accessible to app code')
c.argument('enable_using_msi', arg_type=get_three_state_flag(), help='For Flex Consumption apps only. Enable Key Vault access using Managed Service Identity. When set to true, the app will use its managed identity to access Key Vault instead of service principal.')

with self.argument_context('webapp config ssl list') as c:
c.argument('name', arg_type=webapp_name_arg_type, id_part=None)

with self.argument_context('webapp config ssl upload') as c:
c.ignore('load_to_code')

with self.argument_context('webapp config ssl import') as c:
c.ignore('load_to_code')
c.ignore('enable_using_msi')

with self.argument_context('webapp config connection-string list') as c:
c.argument('name', arg_type=webapp_name_arg_type, id_part=None)

Expand Down
Loading
Loading