-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[SQL] az sql server create/update: Add --enable-public-network to support PublicNetworkAccess #12382
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
[SQL] az sql server create/update: Add --enable-public-network to support PublicNetworkAccess #12382
Changes from 4 commits
5d752a9
9c0c2c7
0e8a1e5
67e14af
5f7020a
edae27d
de7d89c
ed08b39
cf0ec55
33e6acb
835d9dc
7402c18
b11fbb0
99f273f
3d1aab3
2640f91
4178389
b1c319e
7e39fb9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1039,6 +1039,14 @@ def _configure_security_policy_storage_params(arg_ctx): | |
| help='Generate and assign an Azure Active Directory Identity for this server' | ||
| 'for use with key management services like Azure KeyVault.') | ||
|
|
||
| c.argument('public_network_access', | ||
| options_list=['--public-network-access', '-a'], | ||
| arg_type=get_three_state_flag(positive_label='Enabled', | ||
| negative_label='Disabled', | ||
| return_label=True), | ||
| help='Sets whether public network access to server is allowed or not. When disabled,' | ||
| 'only connections made through Private Links can reach this server.') | ||
|
|
||
| with self.argument_context('sql server create') as c: | ||
| c.argument('location', | ||
| arg_type=get_location_type_with_default_from_resource_group(self.cli_ctx)) | ||
|
|
@@ -1062,6 +1070,14 @@ def _configure_security_policy_storage_params(arg_ctx): | |
| help='Generate and assign an Azure Active Directory Identity for this server' | ||
| 'for use with key management services like Azure KeyVault.') | ||
|
|
||
| c.argument('public_network_access', | ||
emgu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| options_list=['--public-network-access', '-a'], | ||
|
||
| arg_type=get_three_state_flag(positive_label='Enabled', | ||
| negative_label='Disabled', | ||
| return_label=True), | ||
| help='Sets whether public network access to server is allowed or not. When disabled,' | ||
emgu-ms marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'only connections made through Private Links can reach this server.') | ||
|
|
||
| with self.argument_context('sql server update') as c: | ||
| c.argument('administrator_login_password', | ||
| help='The administrator login password.') | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.