Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Network] Update application gateway #22489

Merged
merged 16 commits into from
May 19, 2022
Merged

Conversation

ZengTaoxu
Copy link
Contributor

@ZengTaoxu ZengTaoxu commented May 17, 2022

Resolves: #21165

Related command

Description

'az application gateway create' : add parameter --priority,
'az network application-gateway probe' : add parameter --host-name-from-settings
add command 'az network application-gateway settings','az network application-gateway listener','az network application-gateway routing-rule'

Testing Guide

History Notes

[Network] az network application-gateway: Add settings, listener and routing-rule command groups
[Network] az network application-gateway create: Add parameter --priority
[Network] az network application-gateway probe: Add parameter --host-name-from-settings


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost requested a review from yonzhan May 17, 2022 07:29
@ghost ghost added the Auto-Assign Auto assign by bot label May 17, 2022
@ghost ghost assigned necusjz May 17, 2022
@ghost ghost added this to the May 2022 (2022-05-24) - For Build milestone May 17, 2022
@ghost ghost added the Network az network vnet/lb/nic/dns/etc... label May 17, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented May 17, 2022

Network

Comment on lines 549 to 556
- name: Update settings. (autogenerated)
text: |
az network application-gateway settings update --gateway-name MyAppGateway --name MySettings --probe MyNewProbe --resource-group MyResourceGroup
crafted: true
- name: Update settings. (autogenerated)
text: |
az network application-gateway settings update --gateway-name MyAppGateway --host-name-from-backend-pool true --name MySettings --port 80 --probe MyNewProbe --resource-group MyResourceGroup
crafted: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why these two examples have the same name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will revise it.

@@ -139,6 +139,7 @@ def load_arguments(self, _):
c.argument('zones', zones_type)
c.argument('custom_error_pages', min_api='2018-08-01', nargs='+', help='Space-separated list of custom error pages in `STATUS_CODE=URL` format.', validator=validate_custom_error_pages)
c.argument('firewall_policy', options_list='--waf-policy', min_api='2018-12-01', help='Name or ID of a web application firewall (WAF) policy.', validator=validate_waf_policy)
c.argument('priority', min_api='2021-08-01', type=int, help='Priority of the request routing rule. Supported SKU tiers are Standard_v2,WAF_v2')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to add a space:

Suggested change
c.argument('priority', min_api='2021-08-01', type=int, help='Priority of the request routing rule. Supported SKU tiers are Standard_v2,WAF_v2')
c.argument('priority', min_api='2021-08-01', type=int, help='Priority of the request routing rule. Supported SKU tiers are Standard_v2, WAF_v2.')

path, interval=30, timeout=120, threshold=8, no_wait=False, host_name_from_http_settings=None,
min_servers=None, match_body=None, match_status_codes=None, port=None):
def create_ag_probe(cmd, resource_group_name, application_gateway_name, item_name, protocol, host, path, interval=30,
timeout=120, threshold=8, no_wait=False, host_name_from_http_settings=None, min_servers=None,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
timeout=120, threshold=8, no_wait=False, host_name_from_http_settings=None, min_servers=None,
timeout=120, threshold=8, no_wait=False, host_name_from_http_settings=None, min_servers=None,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Network az network vnet/lb/nic/dns/etc...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI cmdlets for application gateway L4 properties
3 participants