-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Synapse] Support synapse sql dw cmdlets and update az synapse workspace create cmdlet #16095
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
Merged
Merged
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 ab16df0
Merge remote-tracking branch 'upstream/release'
azclibot 03436bc
Merge remote-tracking branch 'upstream/release'
azclibot 7d98b1f
Merge remote-tracking branch 'upstream/release'
azclibot 06f6ec5
Merge remote-tracking branch 'upstream/release'
azclibot adab2d2
Merge remote-tracking branch 'upstream/release'
azclibot c7b9f98
Merge remote-tracking branch 'upstream/release'
azclibot 18e8b8d
Merge remote-tracking branch 'upstream/release'
azclibot 1eb5074
Merge remote-tracking branch 'upstream/release'
azclibot cc3a159
Merge remote-tracking branch 'upstream/release' into master
azclibot af8f98e
Merge remote-tracking branch 'upstream/release' into master
azclibot 0f904b9
Merge remote-tracking branch 'upstream/release' into master
azclibot d17a993
Merge remote-tracking branch 'upstream/release' into master
azclibot 331b406
Merge branch 'master' of github.com:Azure/azure-cli into dev
c98c195
Merge branch 'dev' of github.com:Azure/azure-cli into dev
ee648a0
Merge branch 'dev' of github.com:Azure/azure-cli into dev
d2faa9f
Merge branch 'dev' of github.com:Azure/azure-cli into dev
64d0de4
Merge branch 'dev' of github.com:Azure/azure-cli into dev
7b250f5
Merge branch 'dev' of github.com:Azure/azure-cli into dev
03c8785
Merge branch 'dev' of github.com:Azure/azure-cli into dev
fa706e3
1. Add new parameter --enable-managed-virtual-netowrk for az synapse …
51b1b63
Fix Test Errors
b2b9b5f
Address the first iteration comments
31faff8
Update src/azure-cli/azure/cli/command_modules/synapse/_help.py
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
| """ | ||
|
|
||
|
|
@@ -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'] = """ | ||
|
|
@@ -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 | ||
| """ | ||
|
|
||
|
|
@@ -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'] = """ | ||
|
|
@@ -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'] = """ | ||
|
|
@@ -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
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The help entry name should be |
||
|
|
||
| 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. | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.