@@ -39,7 +39,30 @@ The **Set-AzSynapseLinkConnectionLinkTables** cmdlet edits link tables under a l
3939
4040### Example 1
4141``` powershell
42- Set-AzSynapseLinkConnectionLinkTable -WorkspaceName ContosoWorkspace -LinkConnectionName ContosoLinkConnection -EditTablesRequestFile "C:\\samples\\edittables.json"
42+ <#
43+ edittables.json
44+ {
45+ "linkTables": [
46+ {
47+ "id": "00000000000000000000000000000000", // please change to your link table Id: a uuid
48+ "source": {
49+ "tableName": "sampleSourceTable", // please change to your source table name
50+ "schemaName": "sampleSourceSchema" // please change to your source database schema name
51+ },
52+ "target": {
53+ "tableName": "sampleTargetTable", // please change to your target table name
54+ "schemaName": "sampleTargetSchema", // please change to your target database schema name
55+ "distributionOptions": {
56+ "type": "Round_RoBin", // please choose a type from Hash, Round_RoBin, Replicate
57+ "distributionColumn": "sampleColumn" // please change to the column name
58+ }
59+ },
60+ "operationType": "add" // please choose a value from add, update, remove
61+ }
62+ ]
63+ }
64+ #>
65+ Set-AzSynapseLinkConnectionLinkTable -WorkspaceName ContosoWorkspace -LinkConnectionName ContosoLinkConnection -EditTablesRequestFile "C:\samples\edittables.json"
4366```
4467
4568This command edits link tables under link connection ContosoLinkConnection in workspace ContosoWorkspace.
@@ -49,7 +72,7 @@ This file includes information about edited link table.
4972### Example 2
5073``` powershell
5174$ws = Get-AzSynapseWorkspace -Name ContosoWorkspace
52- $ws | Set-AzSynapseLinkConnectionLinkTable -LinkConnectionName ContosoLinkConnection -EditTablesRequestFile "C:\\ samples\ \edittables.json"
75+ $ws | Set-AzSynapseLinkConnectionLinkTable -LinkConnectionName ContosoLinkConnection -EditTablesRequestFile "C:\samples\edittables.json"
5376```
5477
5578This command edits link tables under link connection ContosoLinkConnection in workspace ContosoWorkspace through pipeline.
@@ -59,7 +82,7 @@ This file includes information about edited link table.
5982### Example 3
6083``` powershell
6184$lc = Get-AzSynapseLinkConnection -WorkspaceName ContosoWorkspace -Name ContosoLinkConnection
62- $lc | Set-AzSynapseLinkConnectionLinkTable -EditTablesRequestFile "C:\\ samples\ \edittables.json"
85+ $lc | Set-AzSynapseLinkConnectionLinkTable -EditTablesRequestFile "C:\samples\edittables.json"
6386```
6487
6588This command edits link tables under a link connection through pipeline.
0 commit comments