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
11 changes: 7 additions & 4 deletions src/azure-cli/azure/cli/command_modules/appservice/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1357,21 +1357,21 @@

helps['webapp auth'] = """
type: group
short-summary: Manage webapp authentication and authorization. To use v2 auth commands, run "az extension add --name authV2" to add the authV2 CLI extension.
short-summary: Manage webapp authentication and authorization. Supports both v1 and v2 auth configurations. Commands automatically detect and use v2 auth settings when configured.
"""

helps['webapp auth show'] = """
type: command
short-summary: Show the authentification settings for the webapp.
short-summary: Show the authentication settings for the webapp. Automatically returns v2 auth settings if the app is configured with v2 auth.
examples:
- name: Show the authentification settings for the webapp. (autogenerated)
- name: Show the authentication settings for the webapp.
text: az webapp auth show --name MyWebApp --resource-group MyResourceGroup
crafted: true
"""

helps['webapp auth update'] = """
type: command
short-summary: Update the authentication settings for the webapp.
short-summary: Update the authentication settings for the webapp. Automatically uses v2 auth API when the app is configured with v2 auth or when v2-specific parameters are provided.
examples:
- name: Enable AAD by enabling authentication and setting AAD-associated parameters. Default provider is set to AAD. Must have created a AAD service principal beforehand.
text: >
Expand All @@ -1385,6 +1385,9 @@
az webapp auth update -g myResourceGroup -n myUniqueApp --action AllowAnonymous \\
--facebook-app-id my_fb_id --facebook-app-secret my_fb_secret \\
--facebook-oauth-scopes public_profile email
- name: Enable HTTPS requirement for authentication requests (v2 auth)
text: >
az webapp auth update -g myResourceGroup -n myUniqueApp --require-https true
"""

helps['webapp browse'] = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,10 @@ def load_arguments(self, _):
c.argument('microsoft_account_client_secret', arg_group='Microsoft', help='AAD V2 Application client secret')
c.argument('microsoft_account_oauth_scopes', nargs='+',
help="One or more Microsoft authentification scopes (comma-delimited).", arg_group='Microsoft')
c.argument('require_https', options_list=['--require-https'],
arg_type=get_three_state_flag(return_label=True), arg_group='Auth V2',
help='Require HTTPS for authentication requests. When using v2 auth, '
'configures the HTTP settings to require HTTPS.')

with self.argument_context('webapp hybrid-connection') as c:
c.argument('name', arg_type=webapp_name_arg_type, id_part=None)
Expand Down
Loading
Loading