Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
00b9235
{Docs} Remove stale reference in README to closed issue about extensi…
dkmiller Apr 27, 2020
ab16df0
Merge remote-tracking branch 'upstream/release'
azclibot Apr 28, 2020
03436bc
Merge remote-tracking branch 'upstream/release'
azclibot Apr 30, 2020
7d98b1f
Merge remote-tracking branch 'upstream/release'
azclibot May 19, 2020
06f6ec5
Merge remote-tracking branch 'upstream/release'
azclibot Jun 2, 2020
adab2d2
Merge remote-tracking branch 'upstream/release'
azclibot Jun 23, 2020
c7b9f98
Merge remote-tracking branch 'upstream/release'
azclibot Jul 14, 2020
18e8b8d
Merge remote-tracking branch 'upstream/release'
azclibot Jul 16, 2020
1eb5074
Merge remote-tracking branch 'upstream/release'
azclibot Aug 4, 2020
cc3a159
Merge remote-tracking branch 'upstream/release' into master
azclibot Aug 6, 2020
af8f98e
Merge remote-tracking branch 'upstream/release' into master
azclibot Aug 26, 2020
0f904b9
Merge remote-tracking branch 'upstream/release' into master
azclibot Aug 28, 2020
d17a993
Merge remote-tracking branch 'upstream/release' into master
azclibot Sep 22, 2020
331b406
Merge branch 'master' of github.com:Azure/azure-cli into dev
Sep 24, 2020
c98c195
Merge branch 'dev' of github.com:Azure/azure-cli into dev
Sep 25, 2020
ee648a0
Merge branch 'dev' of github.com:Azure/azure-cli into dev
Nov 5, 2020
d2faa9f
Merge branch 'dev' of github.com:Azure/azure-cli into dev
Nov 9, 2020
64d0de4
Merge branch 'dev' of github.com:Azure/azure-cli into dev
Nov 10, 2020
7b250f5
Merge branch 'dev' of github.com:Azure/azure-cli into dev
Nov 18, 2020
03c8785
Merge branch 'dev' of github.com:Azure/azure-cli into dev
Dec 1, 2020
fa706e3
1. Add new parameter --enable-managed-virtual-netowrk for az synapse …
Dec 1, 2020
51b1b63
Fix Test Errors
Dec 1, 2020
b2b9b5f
Address the first iteration comments
Dec 1, 2020
31faff8
Update src/azure-cli/azure/cli/command_modules/synapse/_help.py
Dec 2, 2020
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ def cf_synapse_client_sqlpool_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).sql_pools


def cf_synapse_client_sqlpool_sensitivity_labels_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).sql_pool_sensitivity_labels


def cf_synapse_client_restorable_dropped_sqlpools_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).restorable_dropped_sql_pools


def cf_synapse_client_sqlpool_transparent_data_encryptions_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).sql_pool_transparent_data_encryptions


def cf_synapse_client_sqlpool_security_alert_policies_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).sql_pool_security_alert_policies


def cf_synapse_client_sqlpool_blob_auditing_policies_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).sql_pool_blob_auditing_policies


def cf_synapse_client_ipfirewallrules_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).ip_firewall_rules

Expand Down
232 changes: 226 additions & 6 deletions src/azure-cli/azure/cli/command_modules/synapse/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
examples:
- name: Create a SQL pool.
text: |-
az synapse sql pool create --name sqlpoolcli1 --performance-level "DW1000c" \\
az synapse sql pool create --name sqlpool --performance-level "DW1000c" \\
--workspace-name testsynapseworkspace --resource-group rg
"""

Expand All @@ -180,7 +180,7 @@
examples:
- name: Get a SQL pool.
text: |-
az synapse sql pool show --name sqlpoolcli1 --workspace-name testsynapseworkspace --resource-group rg
az synapse sql pool show --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool list'] = """
Expand All @@ -198,7 +198,7 @@
examples:
- name: Update a SQL pool.
text: |-
az synapse sql pool update --name sqlpoolcli1 --workspace-name testsynapseworkspace --resource-group rg \\
az synapse sql pool update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--tags key1=value1
"""

Expand All @@ -208,7 +208,7 @@
examples:
- name: Pause a SQL pool.
text: |-
az synapse sql pool pause --name sqlpoolcli1 --workspace-name testsynapseworkspace --resource-group rg
az synapse sql pool pause --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool resume'] = """
Expand All @@ -217,7 +217,7 @@
examples:
- name: Resume a SQL pool.
text: |-
az synapse sql pool resume --name sqlpoolcli1 --workspace-name testsynapseworkspace --resource-group rg
az synapse sql pool resume --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool delete'] = """
Expand All @@ -226,14 +226,234 @@
examples:
- name: Delete a SQL pool.
text: |-
az synapse sql pool delete --name sqlpoolcli1 --workspace-name testsynapseworkspace --resource-group rg
az synapse sql pool delete --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool restore'] = """
type: command
short-summary: Create a new SQL pool by restoring from a backup.
examples:
- name: Create a new SQL pool by restoring an existing SQL pool's restore point.
text: |-
az synapse sql pool restore --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--dest-name newsqlpool --time 2020-11-25T02:47:37
"""

helps['synapse sql pool show-connection-string'] = """
type: command
short-summary: Generates a connection string to a SQL pool.
examples:
- name: Generate connection string for ado.net
text: |-
az synapse sql pool show-connection-string --name sqlpool --workspace-name testsynapseworkspace -c ado.net
"""

helps['synapse sql pool list-deleted'] = """
type: command
short-summary: List all deleted SQL pools.
examples:
- name: List deleted SQL pools.
text: |-
az synapse sql pool list-deleted --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of a SQL pool is met.
"""

helps['synapse sql pool classification'] = """
type: group
short-summary: Manage sensitivity classifications.
"""

helps['synapse sql pool classification create'] = """
type: command
short-summary: Create a column's sensitivity classification.
examples:
- name: Create sensitivity classification for a given column.
text: |-
az synapse sql pool classification create --name sqlpool --workspace-name testsynapseworkspace \\
--resource-group rg --schema dbo --table mytable --column mycolumn \\
--information-type Name --label "Confidential - GDPR"
"""

helps['synapse sql pool classification update'] = """
type: command
short-summary: Update a column's sensitivity classification.
examples:
- name: Update sensitivity classification for a given column.
text: |-
az synapse sql pool classification update --name sqlpool --workspace-name testsynapseworkspace \\
--resource-group rg --schema dbo --table mytable --column mycolumn \\
--information-type Name --label "Confidential - GDPR"
"""

helps['synapse sql pool classification list'] = """
type: command
short-summary: Get the sensitivity classifications of a given SQL pool.
examples:
- name: List the sensitivity classification of a given SQL pool.
text: |-
az synapse sql pool classification list --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool classification show'] = """
type: command
short-summary: Get the sensitivity classification of a given column.
examples:
- name: Get the sensitivity classification of a given column.
text: |-
az synapse sql pool classification show --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--schema dbo --table mytable --column mycolumn
"""

helps['synapse sql pool classification delete'] = """
type: command
short-summary: Delete the sensitivity classification of a given column.
examples:
- name: Delete the sensitivity classification of a given column.
text: |-
az synapse sql pool classification delete --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--schema dbo --table mytable --column mycolumn
"""

helps['synapse sql pool classification recommendation'] = """
type: group
short-summary: Manage sensitivity classification recommendations.
"""

helps['synapse sql pool classification recommendation list'] = """
type: command
short-summary: List the recommended sensitivity classifications of a given SQL pool.
examples:
- name: List the recommended sensitivity classifications of a given SQL pool.
text: |-
az synapse sql pool classification recommendation list --name sqlpool --workspace-name testsynapseworkspace \\
--resource-group rg
"""

helps['sql db classification recommendation enable'] = """
type: command
short-summary: Enable sensitivity recommendations for a given column(recommendations are enabled by default on all columns).
examples:
- name: Enable sensitivity recommendations for a given column.
text: |-
az synapse sql pool classification recommendation enable --name sqlpool --workspace-name testsynapseworkspace \\
--resource-group rg --schema dbo --table mytable --column mycolumn
"""

helps['sql db classification recommendation disable'] = """
type: command
short-summary: Disable sensitivity recommendations for a given column(recommendations are enabled by default on all columns).
examples:
- name: Disable sensitivity recommendations for a given column.
text: |-
az synapse sql pool classification recommendation disable --name sqlpool --workspace-name testsynapseworkspace \\
--resource-group rg --schema dbo --table mytable --column mycolumn
"""
Comment on lines +336 to +354
Copy link
Member

@evelyn-ys evelyn-ys Dec 17, 2020

Choose a reason for hiding this comment

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

The help entry name should be synapse sql pool classification ... instead of sql db classification ....
This blocks CI for sql module.


helps['synapse sql pool tde'] = """
type: group
short-summary: Manage a SQL pool's transparent data encryption.
"""

helps['synapse sql pool tde set'] = """
type: command
short-summary: Set a SQL pool's transparent data encryption configuration.
examples:
- name: Set a SQL pool's transparent data encryption configuration. (autogenerated)
text: |-
az synapse sql pool tde set --name sqlpool --workspace-name testsynapseworkspace --resource-group rg --status Enabled
"""

helps['synapse sql pool tde show'] = """
type: command
short-summary: Get a SQL pool's transparent data encryption configuration.
examples:
- name: Get a SQL pool's transparent data encryption configuration. (autogenerated)
text: |-
az synapse sql pool tde show --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool threat-policy'] = """
type: group
short-summary: Manage a SQL pool's threat detection policies.
"""

helps['synapse sql pool threat-policy show'] = """
type: command
short-summary: Get a SQL pool's threat detection policy.
examples:
- name: Get a SQL pool's threat detection policy.
text: |-
az synapse sql pool threat-policy show --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool threat-policy update'] = """
type: command
short-summary: Update a SQL pool's threat detection policy.
long-summary: If the policy is being enabled, storage_account or both storage_endpoint and storage_account_access_key must be specified.
examples:
- name: Enable by storage account name.
text: |-
az synapse sql pool threat-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--state Enabled --storage-account mystorageaccount
- name: Enable by storage endpoint and key.
text: |-
az synapse sql pool threat-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--state Enabled --storage-endpoint https://mystorage.blob.core.windows.net --storage-key MYKEY==
- name: Disable a subset of alert types.
text: |-
az synapse sql pool threat-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--disabled-alerts Sql_Injection_Vulnerability Access_Anomaly
- name: Configure email recipients for a policy.
text: |-
az synapse sql pool threat-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--email-addresses [email protected] [email protected] --email-account-admins true
- name: Disable a threat policy.
text: |-
az synapse sql pool threat-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--state Disabled
"""

helps['synapse sql pool audit-policy'] = """
type: group
short-summary: Manage a SQL pool's auditing policy.
"""

helps['synapse sql pool audit-policy show'] = """
type: command
short-summary: Get a SQL pool's auditing policy.
examples:
- name: Get a SQL pool's auditing policy.
text: |-
az synapse sql pool audit-policy show --name sqlpool --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse sql pool audit-policy update'] = """
type: command
short-summary: Update a SQL pool's auditing policy.
long-summary: If the policy is being enabled, `--storage-account` or both `--storage-endpoint` and `--storage-key` must be specified.
examples:
- name: Enable by storage account name.
text: |-
az synapse sql pool audit-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--state Enabled --storage-account mystorageaccount
- name: Enable by storage endpoint and key.
text: |-
az synapse sql pool audit-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--state Enabled --storage-endpoint https://mystorage.blob.core.windows.net --storage-key MYKEY==
- name: Set the list of audit actions.
text: |
az synapse sql pool audit-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--actions FAILED_DATABASE_AUTHENTICATION_GROUP 'UPDATE on database::mydb by public'
- name: Disable an auditing policy.
text: |-
az synapse sql pool audit-policy update --name sqlpool --workspace-name testsynapseworkspace --resource-group rg \\
--state Disabled
"""

helps['synapse workspace firewall-rule'] = """
type: group
short-summary: Manage a workspace's firewall rules.
Expand Down
Loading