-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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] Add support for setting identity in Application-Gateway #10119
[Network] Add support for setting identity in Application-Gateway #10119
Conversation
ManagedIdentity cannot be created by CLI so I don't add test code. I manually tested the command. Meanwhile, due to the service limitation, I don't expose the |
3a5f6ef
to
83f987b
Compare
5a3d4be
to
9326987
Compare
@@ -328,6 +328,26 @@ | |||
-n MyHttpSettings --probe MyNewProbe | |||
""" | |||
|
|||
helps['network application-gateway identity'] = """ | |||
type: group | |||
short-summary: Manage the identity information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need a long summary like vm identity ‘This is required to authenticate and interact with other Azure services using bearer tokens.'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need confirm with service team. For know, the identity is used to access the key vault.
9326987
to
cd2ea30
Compare
Can you try to resolve conflicts first? |
7837275
to
0041ada
Compare
@@ -138,6 +143,7 @@ def load_arguments(self, _): | |||
c.argument('cert_password', help='The certificate password') | |||
c.argument('http_settings_port', help='The HTTP settings port.') | |||
c.argument('servers', ag_servers_type) | |||
c.argument('key_vault_secret_id', help="Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate' object stored in Azure KeyVault. You need enable soft delete for keyvault to use this feature.", is_preview=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What kind of message does server return when no identity assigned or no access policy set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
identity should be set. The server will check the existence of the identity
adb12db
to
928c668
Compare
@@ -428,6 +428,11 @@ def _make_singular(value): | |||
g.custom_command('set', 'set_ag_waf_config_2016_09_01', max_api='2016-09-01', supports_no_wait=True) | |||
g.custom_show_command('show', 'show_ag_waf_config') | |||
g.custom_command('list-rule-sets', 'list_ag_waf_rule_sets', min_api='2017-03-01', client_factory=cf_application_gateways, table_transformer=transform_waf_rule_sets_table_output) | |||
|
|||
with self.command_group('network application-gateway identity', command_type=network_ag_sdk, min_api='2018-12-01') as g: | |||
g.custom_command('assign', 'assign_ag_identity', supports_no_wait=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you want to make it support --no-wait? It is a long-running operation?
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR has modified HISTORY.rst describing any customer-facing, functional changes. Note that this does not include changes only to help content. (see Modifying change log).
I adhere to the Command Guidelines.